You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Guillaume Rousse <gu...@zarb.org> on 2009/05/20 21:09:16 UTC

problem freeing references in perl bindings

Hello.

I once reported this issue with perl bindings, with subversion 1.4:
http://svn.haxx.se/dev/archive-2007-06/0774.shtml

Unfortunatly, current subversion version is now 1.6.2, and the problem 
is still there:
[guillaume@oberkampf ~]$ perl Desktop/testcase.t
Attempt to free unreferenced scalar: SV 0xd127f8, Perl interpreter: 
0xce1010 at Desktop/testcase.t line 18.

This happens with perl 5.10.0, on a x86_64 host:
[guillaume@oberkampf ~]$ perl -v

This is perl, v5.10.0 built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)
-- 
BOFH excuse #436:

Daemon escaped from pentagram

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2335265

Re: problem freeing references in perl bindings

Posted by John Peacock <jo...@havurah-software.org>.
Guillaume Rousse wrote:
> Unfortunatly, current subversion version is now 1.6.2, and the problem 
> is still there:
> [guillaume@oberkampf ~]$ perl Desktop/testcase.t
> Attempt to free unreferenced scalar: SV 0xd127f8, Perl interpreter: 
> 0xce1010 at Desktop/testcase.t line 18.

This is a double-free in the Subversion bindings build against Perl 
5.10.0.  It doesn't have anything to do with Subversion per se; Perl 
5.10.0 included a lot of changes and the SWIG bindings haven't been 
updated.  The Subversion bindings work fine when built with Perl 5.8.9, 
however, and is the workaround I personally have to use.

At some point, I'll revive my perl_bindings_improvements branch and fix 
this (as well as lots of other limitations).

John

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2350018