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

Re: Apparent BerkeleyDB problem accessing repo with ra_local

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-12-10 18:45:50 CET

On Wed, 2003-12-10 at 12:05, Art Haas wrote:
> Well, that sort-of worked. The '__db' files were recreated, then
> subversion can read them, but the program ends with an 'Aborted' message
> like so:
> $ svn ls file:///path/to/svnrepo
> pythoncad/
> Aborted

> Maybe this error is just a bug in the current code that will be fixed in
> a day or two.

More likely, BDB doesn't like something about your database and called
abort(). gdb might shed some light on the situation.

> My Debian box has an NPTL based libc, so if the problem is
> LinuxThreads/NPTL in origin I would think it would show up here as well.

So, what I meant by a LinuxThreads/NTPL issue is this: BDB maps a shared
memory region in the __db files and treats the resulting memory as
containing a mutex, among other things. If you copy the DB from one
platform to another and the representations of pthread_mutex_t are
different, then attempting to open the database will fail in a cryptic
manner. As I said, very brittle.

So, if one of your machines uses LinuxThreads and the other uses NPTL,
you can't copy databases between them (although recovery might help).
The same might apply to different versions of LinuxThreads and NPTL.

> A look at the 'changelog.Debian.gz' file shows that the libdb4.0
> package has a "patch to allow db_recover to recover a wedged db_env".
> I don't think this patch is in the remote machine's libdb, but that
> machine may have other patches not on this machine.

A brief look at Debian's and Red Hat's patches to db 4.0 does not
suggest that they have changed the shared memory region representation
from stock BDB, but they may still have different mutex representations.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 10 18:46:36 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.