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

Re: BDB-4.4 and automatic database recovery

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-01-17 22:35:13 CET

Branko ╚ibej <brane@xbc.nu> writes:

> For the past several weeks, I've been adding support for BDB-4.4 and
> automatic recovery on the bdb-fixes branch. This work (sponsored by
> Sleepycat) is now 99% done. You can test it by switching the
> libsvn_fs_base directory to this branch -- all changes are localised
> there.

ra_local is giving lots of valgrind errors, lots of them are when a
pool that was passed to svn_ra_local__split_URL gets cleared. Perhaps
something is getting cached when svn_ra_local__split_URL opens the
database? Here's a typical failure using r18125:

$ rm -rf repo && svnadmin create repo --fs-type bdb
$ valgrind -q --num-callers=20 svn import Makefile file://`pwd`/repo/foo
==19876== Invalid read of size 4
==19876== at 0x1BFFFA99: svn_fs_bdb__wrap_db (bdb-err.c:93)
==19876== by 0x1C00AD06: open_databases (fs.c:569)
==19876== by 0x1C00B28E: base_open (fs.c:685)
==19876== by 0x1BD3FE34: svn_fs_open (fs-loader.c:367)
==19876== by 0x1BD2FAFC: get_repos (repos.c:1795)
==19876== by 0x1BD2FC2C: svn_repos_open (repos.c:1837)
==19876== by 0x1BD14FFE: svn_ra_local__split_URL (split_url.c:130)
==19876== by 0x1BD1254C: svn_ra_local__open (ra_plugin.c:280)
==19876== by 0x1B971BAB: svn_ra_open2 (ra_loader.c:295)
==19876== by 0x1B92DA81: svn_client__open_ra_session_internal (ra.c:290)
==19876== by 0x1B916A7B: get_ra_editor (commit.c:589)
==19876== by 0x1B916F08: svn_client_import2 (commit.c:707)
==19876== by 0x804DF45: svn_cl__import (import-cmd.c:109)
==19876== by 0x8052A9F: main (main.c:1374)
==19876== Address 0x1C092308 is 0 bytes inside a block of size 8 free'd
==19876== at 0x1B906B04: free (vg_replace_malloc.c:152)
==19876== by 0x1BAF70CD: pool_clear_debug (apr_pools.c:1390)
==19876== by 0x1BAF7230: pool_destroy_debug (apr_pools.c:1450)
==19876== by 0x1BAF6F46: pool_clear_debug (apr_pools.c:1367)
==19876== by 0x1BAF7230: pool_destroy_debug (apr_pools.c:1450)
==19876== by 0x1C001A9A: bdb_close (env.c:515)
==19876== by 0x1C001BCE: svn_fs_bdb__close (env.c:551)
==19876== by 0x1C00A7C7: cleanup_fs (fs.c:190)
==19876== by 0x1C00A7F6: cleanup_fs_apr (fs.c:288)
==19876== by 0x1BAF6F7C: pool_clear_debug (apr_pools.c:2027)
==19876== by 0x1BAF7372: apr_pool_clear_debug (apr_pools.c:1425)
==19876== by 0x1B916DF7: svn_client_import2 (commit.c:684)
==19876== by 0x804DF45: svn_cl__import (import-cmd.c:109)
==19876== by 0x8052A9F: main (main.c:1374)
==19876==

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 18 00:39:37 2006

This is an archived mail posted to the Subversion Dev mailing list.