[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem freeing references in perl bindings

From: John Peacock <jpeacock_at_rowman.com>
Date: 2007-06-29 05:02:35 CEST

Guillaume Rousse wrote:
> When executed, the attached test case produce the following warning:
> [guillaume@oberkampf 2.0]$ perl testcase.t
> Attempt to free unreferenced scalar: SV 0xa71e80 at testcase.t line 18.

`perl -v` would be very helpful to know; there are a couple of distros
*cough*RedHat*cough* that ship with non-standard 5.8.x releases of relatively
ancient origins.

But I can replicate with v5.8.8 and Subversion 1.4.2. That's a classic refcount
mistake (and it is actually the mkdir() on line 16 that is throwing the free
error, regardless). The odds are good that it is the error message itself that
isn't being decremented properly:

Filesystem has no item: File not found: transaction '0-1', path '/foo/bar' at
testcase.t line 15

which is being hidden by the eval{}. I'll try to take a deeper look in the
morning...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 29 05:02:18 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.