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

RE: Python bindings + Windows + svn_error_t = Exception

From: Leeuw van der, Tim <tim.leeuwvander_at_nl.unisys.com>
Date: 2003-05-05 12:23:19 CEST

Hi,

Not that I have any experiece, but this is exactly what I read some months
ago in previous threads...

-----Original Message-----
From: cmpilato@collab.net [mailto:cmpilato@collab.net]
Sent: zaterdag 3 mei 2003 11:10
To: Subversion Developers
Subject: Python bindings + Windows + svn_error_t = Exception

I took some time to get Python bindings compiling and such on Win2k
tonight (for the third time, because every time I get them working on
one machine, I forget to put the diff somewhere I can reach from other
machines).

Anyway, was doing some testing, and I ran into an interesting problem
I'd not hit before.

First, I'll explain my setup.

Of course, Subversion itself builds in the most brain-dead fashion on
Windows. Oh, no, wait, that's right -- it *doesn't* build on
Windows. I should mention that I have, as local mods, the reversion
of gstein's DSP-dispose-all commit. So, that in place, we're back to
brain-dead compilation of a bunch of .libs and then some massing svn,
svnadmin, and svnlook binaries.

I have swigutil_py.lib as well.

And finally, I have a bunch of DLLs -- _client, _fs, _wc, etc.

Things work really well until Subversion's make_error_internal()
function gets called. I was quite puzzled, at first. Now, note that
make_error_internal() is probably the only place in Subversion's
librarized code where a new subpool is created from APR's global
uberparent pool. I was able to debug the crash, and found that when
make_error_internal() goes to make this subpool, the global_pool is
NULL.

What?!

Oh.

Duh (or so I'm thinking).

Yeah. I called util.apr_initialize() at the beginning of my Python
app, which initializes the APR global_pool. But that init is only
good for the current DLL's statically linked APR instantiation. In
other words, the other Python modules also have copies of APR compiled
into them, but those copies haven't been init'ed.

At least, that's what thinking at 4:00am has yielded. Am I just
completely off-base here?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 5 12:24:14 2003

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.