bug-bash
[Top][All Lists]
Advanced

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

**/ directory wildcards leak file descriptors and memory


From: Serge van den Boom
Subject: **/ directory wildcards leak file descriptors and memory
Date: Wed, 20 Jun 2012 20:50:17 +0200 (CEST)
User-agent: Alpine 2.00 (BSF 1167 2008-08-23)

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/opt/bash-4.2/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I. -I/opt/readline/include -I. -I./include -I./lib  
-I/opt/ncurses/include -g -O2
Machine Type: i686-pc-linux-gnu

Bash Version: 4.2
Patch Level: 29
Release Status: release

Description:
        If you interrupt the evaluation of **/ wildcard expansion, the file
        descriptors which were opened will not be closed.
        Also, memory used will not be released.

Repeat-By:
        ls /**/*.txt
        # Wait 10 seconds, then press CTRL-C.
        ls -la /proc/$$/fd/
        # To see the memory leak, run 'top' while you do this. The memory
        # usage will grow, and will not return to normal values when the
        # operation is interrupted.
        # I have also seen out of memory and out of file descriptors errors
        # after waiting for a long time before interrupting the process.




reply via email to

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