apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin von Gagern <Martin.vGag...@gmx.net>
Subject apr cleanup unloads neon library too soon in git-svn
Date Mon, 26 May 2008 21:49:56 GMT
Hi!

For the full details and several stack traces, please refer to 
https://bugs.gentoo.org/show_bug.cgi?id=223747

The problem is that in some cases (running git-svn) when the APR cleanup 
(apr_terminate) cleans its pools (apr_pool_destroy), it will unload 
shared libraries (libsvn_ra_neon-1.so.0) while there are still neon 
objects around. When the cleanup tries to clean those, their cleanup 
function (cleanup_session) is no longer available, which causes a 
segmentation fault.

I see two possible solutions. One is to have the APR cleanup code ensure 
that libraries get unloaded only after all other objects from the 
current part of the pool hierarchy have been cleaned. The other would be 
to have subversion pool management restructured in some way, such that 
the DSO pool gets cleared after the other objects.

As I don't know which solution would be the better one, I post to both 
lists, APR and Subversion. Please also have a look at the corresponding 
discussion on the other list. I'll try to attach links to the threads in 
both mail archives to the Gentoo bug report stated above. Stay tuned.

Greetings,
  Martin von Gagern

Mime
View raw message