develooper Front page | perl.perl5.porters | Postings from April 2014

[perl #121676] Memory leak in backticks and system

Thread Previous
From:
Tony Cook via RT
Date:
April 22, 2014 06:33
Subject:
[perl #121676] Memory leak in backticks and system
Message ID:
rt-4.0.18-4371-1398148396-906.121676-15-0@perl.org
On Wed Apr 16 23:37:39 2014, bulk88 wrote:
> There is a mem leak in system and `` on Win32 on 5.19 and 5.18 (tested
> by me and others), see
> https://rt.cpan.org/Public/Bug/Display.html?id=94138 and
> http://www.nntp.perl.org/group/perl.perl5.porters/2014/04/msg214390.html
> . This ticket is so the issue doesnt get lost.

I tried to fudge the build (and added some extra code) to build perl with MSVCRT's debug version memory leak reporting[1], which reported only a single leak, which appears with perl -e0 or perl -e "`dir` for 1..100`".

I don't see a leak if I build perl with PERL_MALLOC defined (which requires disabling USE_IMP_SYS).

I don't see a leak with all of PERL_MALLOC, USE_MULTI, USE_ITHREADS, USE_IMP_SYS undefined.

No leak with just USE_MULTI re-enabled out of those.

Right now I suspect something in the USE_IMP_SYS layer.

Tony

[1] http://msdn.microsoft.com/en-us/library/e5ewb1h3%28v=vs.90%29.aspx

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=121676

Thread Previous


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