bug-bash
[Top][All Lists]
Advanced

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

Mixing process substitution and redirections causes crash


From: wapiflapi
Subject: Mixing process substitution and redirections causes crash
Date: Fri, 5 Feb 2016 10:23:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux [HOSTNAME] 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8
15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 42
Release Status: release

Description:

It seems that mixing process substitution interacting with the terminal
and redirections has undesired effects on bash's own sighandlers. Any
'crashing' command with a redirection like: `< <( cat - )` will cause
bash to crash. This happens *only* when bash is run directly in the
terminal (or tty), when running bash under bash (or under anything else)
doesn't seem to allow to replicate the bug.

Repeat-By:

# THIS IS INTENDED TO CAUSE BASH TO CRASH. Run with care.
sleep 10 < <( cat - ) & killall sleep

# In general:
./a.out < <( cat - ) # when a.out crashes.



reply via email to

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