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:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-31 chet StatusNone => Done
    2016-10-05 andriyp Carbon-Copy- => Added andriyp

    Back to the top


    Powered by Savane 3.3