subversion broken by libdb changes

Bug #154555 reported by Gerv
4
Affects Status Importance Assigned to Milestone
subversion
New
Undecided
Unassigned
db4.4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Subversion is broken for me in released Gutsy:

gerv@otter:bin$ svn update
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///var/svn/bin/trunk'
svn: Berkeley DB error for filesystem '/var/svn/db' while opening environment:

svn: Cannot allocate memory
svn: bdb: unable to allocate memory for mutex; resize mutex region
gerv@otter:bin$

The following Debian bug seems to be it:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441544

The fix is in upstream libdb-4.4.20-10, but Gutsy ships with -8. I suggest you need to ship a patch...

Revision history for this message
Sam (sam-halliday) wrote :

This is a really bad bug which results in the death of SVN servers! Please mark as URGENT.

If anybody has a fix, please post it here.

Changed in db4.4:
status: New → Confirmed
Revision history for this message
Sam (sam-halliday) wrote :

WORKAROUND: run `svnadmin recover /path/to/repository`

I also had to fiddle with the permissions after doing this to deal with our group-based permissions over ssh setup.

Revision history for this message
Sam (sam-halliday) wrote :

I can't confirm if the offending code was in the BerkeleyDB backend or in svn itself... so please consider this a bug report against both.

Revision history for this message
Daniel Hahler (blueyed) wrote : RECIPE

I could reproduce the bug using the following recipe:
In Feisty:
svnadmin create --fs-type bdb test-svn
svn co file:///$PWD/test-svn foo-svn
cd foo-svn/
touch foo
svn add foo
svn ci -m 'bar'

In Gutsy then:
$ LANG=C svn co file:///$PWD/test-svn foo-svn
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///home/daniel/test-svn'
svn: Berkeley DB error for filesystem '/home/daniel/test-svn/db' while opening environment:

svn: Cannot allocate memory
svn: bdb: unable to allocate memory for mutex; resize mutex region

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.