bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Named fifo's causing hanging bash scripts


From: Chet Ramey
Subject: Re: Named fifo's causing hanging bash scripts
Date: Mon, 12 Jan 2015 11:50:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 1/12/15 9:55 AM, werner@linux-8jdz.site wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.3 
> -L/home/abuild/rpmbuild/BUILD/bash-4.3/../readline-6.3
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-suse-linux-gnu' 
> -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
> -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -fmessage-length=0 
> -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
> -funwind-tables -fasynchronous-unwind-tables -g  -D_GNU_SOURCE 
> -DRECYCLES_PIDS -Wall -g -Wuninitialized -Wextra -Wno-unprototyped-calls 
> -Wno-switch-enum -Wno-unused-variable -Wno-unused-parameter -Wno-parentheses 
> -ftree-loop-linear -pipe -DBNC382214=0 -DMUST_UNBLOCK_CHLD=1 
> -DIMPORT_FUNCTIONS_DEF=0 -fprofile-use
> uname output: Linux d136 3.15.0-rc7-3-desktop #1 SMP PREEMPT Wed May 28 
> 15:39:51 UTC 2014 (96f5b60) x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-suse-linux-gnu
> 
> Bash Version: 4.3
> Patch Level: 33
> Release Status: release
> 
> Description:
>         Named fifo's causing hanging bash scripts like
> 
>         while IFS="|" read a b c ; do
>           [shell code]
>         done < <(shell code)
> 
>         can cause random hangs of the bash.    An strace shows that the bash
>         stays in wait4()

And when you attach to one of the hanging bash processes using gdb, what
does the stack traceback look like?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]