[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: Max Bowsher <maxb_at_ukf.net>
Date: 2005-09-30 17:20:46 CEST

David James wrote:
> 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.
> ]]]

Yes, it does, thanks.

I'm very confused as to why this affected Cygwin but not Linux.

Max.

---------------------------------------------------------------------
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:24:06 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.