bug-bash
[Top][All Lists]
Advanced

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

Descriptor leak


From: schwab
Subject: Descriptor leak
Date: Wed, 19 Nov 2008 17:34:31 +0100 (CET)

Configuration Information [Automatically generated, do not change]:
Machine: ia64
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 
-L/usr/src/packages/BUILD/bash-3.2/../readline-5.2
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='ia64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='ia64-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 -O2 -Wall 
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
-fasynchronous-unwind-tables -g -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g 
-std=gnu89 -Wextra -Wno-unprototyped-calls -Wno-switch-enum -pipe -fPIE 
-fprofile-use
uname output: Linux sykes 2.6.27.4-2.1-default #1 SMP Thu Oct 30 13:17:42 UTC 
2008 ia64 ia64 ia64 GNU/Linux
Machine Type: ia64-suse-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        Bash leaks a descriptor to its children when executing a brace
        enclosed compound list with a redirection that closes a
        non-standard descriptor.

Repeat-By:
        $ exec 4>&1
        $ { /bin/ls /proc/self/fd/*; } 4<&- 
        /bin/ls: cannot access /proc/self/fd/255: No such file or directory
        /bin/ls: cannot access /proc/self/fd/3: No such file or directory
        /proc/self/fd/0  /proc/self/fd/1  /proc/self/fd/10  /proc/self/fd/2

        /proc/self/fd/10 should not be open in the child.




reply via email to

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