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

Issue 2732 (was Unhandled exception when stopping apache)

From: D.J. Heap <djheap_at_gmail.com>
Date: 2007-04-01 01:09:19 CEST

On 3/24/07, D.J. Heap <djheap@gmail.com> wrote:
[snip]
>
> Thanks, it looks good. It appears to be a shutdown/cleanup ordering
> problem in the bdb stuff after a quick first glance. I know there was
> a lot of pain and work on that issue a while ago -- should be fun to
> figure out. I'll try to work on it as soon as I can but it's not very
> high on my list at the moment.

I've been debugging this and narrowed it down quite a bit. I'm
puzzled how it works on other OS' at all, though, so I think I'm
mis-understanding something.

In libsvn_fs_base\bdb\env.c the bdb_init_cb function allocates the bdb
cache stuff in the global pool (I think?) and registers a cleanup
callback to clear_cache.

Then in final process termination (after unloading modules) when
Apache cleans out the global pool
(apr\memory\unix\apr_pools.c:apr_pool_terminate), it tries to call the
clear_cache function -- but it's already been unloaded by then and so
goes boom.

Am I mis-understanding the sequence of things or does it work
differently on unixy OS'?

The crash goes away if I comment out the clear_cache cleanup registration.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 1 01:09:32 2007

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.