Re: memory leak in read builtin

2007-11-12 Thread Chet Ramey
> > That code is quite different in bash-3.2, and the memory leak is gone. > > Definitely neither. Oh, there's no question there's a leak. It just doesn't appear to have any consequences on my systems. It will get fixed. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: memory leak in read builtin

2007-11-09 Thread Andreas Schwab
Chet Ramey <[EMAIL PROTECTED]> writes: > That code is quite different in bash-3.2, and the memory leak is gone. Definitely neither. --- builtins/read.def |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) Index: builtins/read.def =

Re: memory leak in read builtin

2007-11-09 Thread Andreas Schwab
Chet Ramey <[EMAIL PROTECTED]> writes: > Chet Ramey wrote: >> Andreas Schwab wrote: >> >>> I can still reproduce it with 3.2.25, where the code is identical. >> >> Really? I let the loop run for 45 minutes last night before killing it, >> without a memory allocation error. I'll check again. >

Re: memory leak in read builtin

2007-11-09 Thread Chet Ramey
Chet Ramey wrote: > Andreas Schwab wrote: > >> I can still reproduce it with 3.2.25, where the code is identical. > > Really? I let the loop run for 45 minutes last night before killing it, > without a memory allocation error. I'll check again. And today it ran for more than an hour. I'm not

Re: memory leak in read builtin

2007-11-09 Thread Chet Ramey
Andreas Schwab wrote: > I can still reproduce it with 3.2.25, where the code is identical. Really? I let the loop run for 45 minutes last night before killing it, without a memory allocation error. I'll check again. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: memory leak in read builtin

2007-11-09 Thread Andreas Schwab
Chet Ramey <[EMAIL PROTECTED]> writes: > That code is quite different in bash-3.2, and the memory leak is gone. I can still reproduce it with 3.2.25, where the code is identical. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg,

Re: memory leak in read builtin

2007-11-08 Thread Chet Ramey
Lars Ellenberg wrote: > Bash Version: 3.1 > Patch Level: 17 > Release Status: release > > (debian etch, bash 3.1dfsg-8) > > Description: > aparently I hit a memory leak in the read builtin. > > Repeat-By: > yes | bash -c 'ulimit -v 1000; while read a ; do :; done' > > bash: x

memory leak in read builtin

2007-11-07 Thread Lars Ellenberg
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='ba

Re: [patch] memory leak in read builtin

2006-02-13 Thread Tim Waugh
Hi, I posted two patches for memory leaks in bash-3.0. One of them has made it into bash-3.1, but the other has not. Here is the missing one: On Wed, Dec 07, 2005 at 06:10:07PM +, Tim Waugh wrote: > There is at least one memory leak in the read builtin in bash-3.0. To > demonstrate it, tr

[patch] memory leak in read builtin

2005-12-07 Thread Tim Waugh
There is at least one memory leak in the read builtin in bash-3.0. To demonstrate it, try this test case: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173283#c10 There is a link to a file, nonblock.c, which you should compile like 'make nonblock'. Then run the short script to see the