Subject: | Memory corruption with Perl 5.10.0 |
Hi,
as seen in the CPAN test reports
<http://cpantesters.perl.org/show/SVK.html> and Debian bug #476968
<http://bugs.debian.org/479698>, the svk test suite is failing badly
with Perl 5.10.0 due to memory corruption that leads to segmentation
faults and the like.
The logs are full of 'Attempt to free unreferenced scalar' messages,
which I have traced into the PerlIO-via-dynamic module. The messages
also show up in the module's own test suite, although it still passes.
I have reported the messages as [perl #54934]
<http://rt.perl.org/rt3/Public/Bug/Display.html?id=54934>,and they are
apparently caused by this Perl change:
Change 24966 by nicholas@ship-in-a-bottle on 2005/06/23 21:30:33
Remove the reference loop between symbol tables and typeglobs. Typeglobs
now have a weak reference onto their symbol table.
The attached patch to dynamic.pm removes the messages and makes the
whole svk test suite pass here (while not breaking the module's own test
suite, of course). Both of the changes are required;
I don't feel qualified to say if this a viable workaround, but it seems
to help.
Many thanks for your work on free software,
--
Niko Tyni
ntyni@debian.org