develooper Front page | perl.perl5.porters | Postings from September 2003

Re: [perl #24061] shared array memory leak in 5.8.1

From:
Elizabeth Mattijsen
Date:
September 29, 2003 00:40
Subject:
Re: [perl #24061] shared array memory leak in 5.8.1
Message ID:
p05111b01bb9d90edecba@[192.168.56.4]
At 16:27 +0000 9/28/03, Eric Garland (via RT) wrote:
>-----------------------------------------------------------------
>[Please enter your report here]
>This program will make perl 5.8.1 expand to using 350 mb on my linux
>machine within 60 seconds:

It takes a bit longer on my slower machines, but I have confirmed 
this on both Mac OS X and Linux   ;-(  ;-(  ;-(


>Am I doing someting wrong or is this a real bug?  If it's a bug
>are there any patches that I could try that could fix it?

<plug mode="hopefully helpful">
Until this bug is fixed, use forks.pm (from CPAN).  It is a drop-in 
replacement for threads.  Which should allow you to get something 
working now without leaks (at the expense of CPU and latency) and 
allow you to go back to the real thing once the bug is fixed.
</plug>


Liz



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About