bug-bash
[Top][All Lists]
Advanced

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

Re: Memory leak when using ${!prefix@} in a loop


From: Chet Ramey
Subject: Re: Memory leak when using ${!prefix@} in a loop
Date: Wed, 26 Aug 2009 23:10:01 -0400
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

muszi@muszi.kite.hu wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
> -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
> uname output: Linux muszi.kite.hu 2.6.28.10 #2 PREEMPT Fri Jun 12 14:13:54 
> CEST 2009 i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
> 
> Bash Version: 3.1
> Patch Level: 17
> Release Status: release
> 
> Description:
>       Looks like we have a memory leak when using ${!prefix@} in a loop
> 
> Repeat-By:
>       It can be reproduced by running this little script:
> 
>       while true; do
>         echo "${!prefix@}"
>       done

Thanks for the report.  This will be fixed in the next version of bash.

-- 
``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]