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

Re: Inexcusable BDB upgrade triple blunder

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2006-02-28 20:18:05 CET

On Tue, 2006-02-28 at 06:47 +0100, Branko Èibej wrote:
> The consequence is that, when we hit apr_terminate, the cache's pool can
> be destroyed before the pool that contains the svn_fs_t that refers to
> the cache; that's because APR destroys its (global) pools in LIFO order.
> Unfortunately that means that during destruction of the svn_fs_t, we try
> to access memory that's already been freed.

Here's my brilliant idea: set bdb_cache to NULL in a pool cleanup for
bdb_cache_pool. In the svn_fs_destroy handler, check if bdb_cache is
NULL and don't touch the underlying environment handle if so.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 28 20:25:09 2006

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.