This was reproduced on Ubuntu 14.04 in VirtualBox. But I guess that issue exists on other distros. It is very timing dependent issue. Using Gdb or strace easily hide it.
Our kernel has custom LSM. so open() syscall timing might be little bit changed some time. It has same effect as on slow devices I guess. On Monday, October 10, 2016, Chet Ramey <chet.ra...@case.edu <javascript:_e(%7B%7D,'cvml','chet.ra...@case.edu');>> wrote: > On 10/5/16 9:04 AM, Andriy Prystupa wrote: > > Hi, > > > > > > Error: > > > > */bash: /etc/bash.bashrc: Interrupted system call /* > > > > Reproduced on bash-4.4 via *gnome-terminal* or *terminator* terminal. > > This is interesting. On what version of Unix/Linux is open(2) on a regular > file from the local file system interrupted? Traditional behavior is that > open can be interrupted when used on a `slow' device, but not otherwise. > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~ch > et/ > -- Andriy Prystupa | SW Engineer GlobalLogic M +38.097.330.9412 S prandriy www.globallogic.com <http://www.globallogic.com/> http://www.globallogic.com/email_disclaimer.txt