helpThe GNU Bourne-Again SHell - Support: sr #109159, Bug: Failed to read initial...

 
 

sr #109159: Bug: Failed to read initial configuration, open() syscall might be interrupted.

Submitted by:  Andriy Prystupa <andriyp>
Submitted on:  Wed 05 Oct 2016 11:15:23 AM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 31 Dec 2016 09:27:17 PM UTC, comment #1:

We'll try it provisionally, but there are not supposed to be any circumstances under which a signal will interrupt open(2) from the local file system. For example, on Linux, open will only return -1/EINTR "[w]hile blocked waiting to complete an open of a slow device".

Chet Ramey <chet>
Project Administrator
Wed 05 Oct 2016 11:15:23 AM UTC, original submission:

Error:
bash: /etc/bash.bashrc: Interrupted system call

Reproduced on bash-4.4 via gnome-terminal or terminator terminal.

Description:

traces attached, issue on line 42065

Correct scenario, P - parent, C - child:
(P) terminator does clone()
(C) SIGWINCH(terminal resized) is configured with SA_RESTART (do not interrupt syscalls on this signal)
(C) execve(/bin/bash)
(P) terminator send SIGWINCH
(C) SIGWINCH handled by bash
(C) bash reconfigures SIGWINCH without SA_RESTART (syscalls will be interrupted)
(C) bash opens bashrc file
Some time parent gets control little bit later, different timing:
(P) terminator does clone()
(C) SIGWINCH(terminal resized) is configured with SA_RESTART (do not interrupt syscalls on this signal)
(C) execve(/bin/bash)
(C) bash reconfigures SIGWINCH without SA_RESTART (syscalls will be interrupted)
(C) bash opens bashrc file (is not finished yet)
(P) terminator send SIGWINCH
(C) SIGWINCH handled by bash and interrupts open(bashrc)
(C) open(bashrc) failed with -EINTR, configuration read failed

Andriy Prystupa <andriyp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by chet (Posted a comment)
  • -unavailable- added by andriyp (Submitted the item)
  • -unavailable- added by andriyp
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 31 Dec 2016 09:27:17 PM UTCchetStatusNone=>Done
    Wed 05 Oct 2016 11:15:23 AM UTCandriypCarbon-Copy-=>Added andriyp

    Back to the top


    Powered by Savane 3.1-cleanup1