develooper Front page | perl.perl5.porters | Postings from January 2011

Re: How best to debug this?

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
January 24, 2011 13:20
Subject:
Re: How best to debug this?
Message ID:
20110124212014.GE24189@plum.flirble.org
On Mon, Jan 24, 2011 at 08:10:20PM +0100, Torsten Förtsch wrote:
> Hi,
> 
> with perl 5.13.9 modperl generates these lines in the error_log (STDERR):
> 
> Attempt to free unreferenced scalar: SV 0xd12d98 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd12de0 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd822b8 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd9e450 during global destruction.
> Attempt to free unreferenced scalar: SV 0xdd6458 during global destruction.
> Attempt to free unreferenced scalar: SV 0x1f347c8 during global destruction.
> Attempt to free unreferenced scalar: SV 0xe01ed0 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd82390 during global destruction.
> Attempt to free unreferenced scalar: SV 0x1f2b1e8 during global destruction.
> Attempt to free unreferenced scalar: SV 0xdd64d0 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd12d98 during global destruction.
> Attempt to free unreferenced scalar: SV 0xd12de0 during global destruction.
> 
> What is the best way to debug them?

Recompiling libperl with DEBUG_LEAKING_SCALARS, (and maybe
DEBUG_LEAKING_SCALARS_FORK_DUMP and maybe DEBUG_LEAKING_SCALARS_ABORT) may
give you some more information about where the problem is coming from.

There's some documentation on them in pod/perlhack.pod

If you can automate the compile and build of perl and modperl, and running
your test program, you might also get somewhere by using `git bisect run` to
try to locate the change in the core that caused this to start happening.

Nicholas Clark

Thread Previous | Thread Next


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