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

Re: Seg fault, Perl bindings, "perl -c"

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-09-12 13:21:11 CEST

On Tue, Sep 12, 2006 at 12:00:05PM +0100, Nik Clayton wrote:
> The first chunk of code in SVN::Core.pm looks like this:
>
> -----
> BEGIN {
> SVN::_Core::apr_initialize();
> }
>
> our $gpool = SVN::Pool->new_default;
> SVN::Core::utf_initialize($gpool);
>
> END {
> SVN::_Core::apr_terminate();
> }
> -----
>
> That line "our $gpool = SVN::Pool->new_default;" is going to be executed
> when SVN::Core is 'used' (either with 'use SVN::Core;' or the -M command
> line option. Which creates an SVN::Pool object. Which is then cleaned
> up, and the DESTROY method fires, which tries to use something that's
> already been cleaned up.
>

I'm happy to say that I didn't understand that at all :-). Hopefully
someone with more knowledge of the Perl bindings can pick this up now.

(Particularly, I'm confused as to why the pool would be created if you
run Perl with the -c option - I thought you said that that only executed
BEGIN blocks?)

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 12 13:22:17 2006

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.