Bug#650675: mod_perl 2.0.5 -> Attempt to free unreferenced scalar on startup
Niko Tyni
ntyni at debian.org
Sat Dec 17 07:28:17 UTC 2011
On Wed, Dec 14, 2011 at 11:30:54PM +0200, Niko Tyni wrote:
> On Sat, Aug 06, 2011 at 08:02:20PM +0200, richter at ecos.de wrote:
>
> > while trying to get Embperl ready with Perl 5.14.1, I found an the
> > following message in the error log:
>
> > Attempt to free unreferenced scalar: SV 0x7fc218, Perl interpreter:
> > 0x7cfdb0 during global destruction.
>
> We're also seeing this in Debian now that we've switched to Perl 5.14,
> (see http://bugs.debian.org/650675 [cc'd.])
> The warnings only seem to happen with -Dusethreads, and I've bisected that
> they started with 5.13.6 - specifically
>
> http://perl5.git.perl.org/perl.git/commit/ca556bcdca736b2f85c11650c70b2371169c0225
> [perl #40389] perl_destruct() leaks PL_defstash
> My limited understanding is that the CV pointer needs its refcount
> incremented along with the GvCV_set() call. See the attached proposed
> patch which fixes this for me (but feel free to tell me if I got it all
> wrong :)
Here's another patch in a similar vein. This fixes all the remaining 24
warnings in t/logs/error_log after running the whole test suite.
--
Niko Tyni ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-another-reference-counting-bug-uncovered-by-Perl.patch
Type: text/x-diff
Size: 1230 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20111217/b4955b03/attachment.patch>
More information about the pkg-perl-maintainers
mailing list