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

Re: How do the Python bindings call apr_initialize() ?

From: David James <james82_at_gmail.com>
Date: 2005-09-30 17:10:50 CEST

On 9/30/05, Max Bowsher <maxb@ukf.net> wrote:
> I am having a problem getting the new Python bindings to function on Cygwin.
>
> The following sequence of events occurs:
>
> $ python -c 'import svn.core'
> svn.core then does:
> from libsvn.core import *
> import libsvn.core as _core
> Pool = svn_pool_create
> Pool()
>
> and that last line then causes a segfault, because apr has not been
> initialized.
> When was apr supposed to have been initialized?
It's supposed to be initialized in swig/proxy/proxy_apr.swg, but it's
initialized at the wrong time.

Does the attached patch fix the problem?

[[[

* swig/proxy/proxy_apr.swg: Call apr_initialize() at import time.

]]]

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Sep 30 17:12:10 2005

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.