bug-bash
[Top][All Lists]
Advanced

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

Re: Mixing process substitution and redirections causes crash


From: Piotr Grzybowski
Subject: Re: Mixing process substitution and redirections causes crash
Date: Fri, 5 Feb 2016 22:18:58 +0100

hello,

 it is no longer existent in the recent devel:

GNU bash, version 4.4.0(3)-rc1 (i686-pc-linux-gnu)

while it is reproducible in the version you file the report for.

sincerely,
pg



On Fri, Feb 5, 2016 at 10:23 AM, wapiflapi <wapiflapi@yahoo.fr> wrote:
> 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]