gutsy: svn crashed with SIGSEGV in abort_trail() (libdb4.4 related)

Bug #182974 reported by Daniel Hahler
16
Affects Status Importance Assigned to Milestone
subversion (Ubuntu)
Fix Released
Undecided
Unassigned
Gutsy
Won't Fix
High
Unassigned

Bug Description

Binary package hint: subversion

The update of libdb4.4 in gutsy-updates now causes a segmentation fault when trying to checkout a bdb subversion repository.

This happens on this code in abort_trail():
      SVN_ERR(BDB_WRAP(fs, "aborting Berkeley DB transaction",
                       trail->db_txn->abort(trail->db_txn)));

So, while bdb repositories where not working in Gutsy before this update (4.4.20-8.1ubuntu3), they are now broken differently.

I've investigated a bit (and found it strange that libdb4.2 is listed in the dependencies in the apport report), but removing the libdb4.2 package still caused it to fail in the same way.

TEST CASE:
1. cd /tmp
2. svnadmin create --fs-type bdb test-repo
3. svn co file:///tmp/test-repo wc

EXPECTED RESULT:
checked out revision 0

ACTUAL RESULT:
Segmentation fault (core dumped)

This appears not to be a problem in Hardy or Feisty.

ProblemType: Crash
Architecture: i386
Date: Mon Jan 14 22:27:51 2008
Disassembly: 0x0:
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/svn
NonfreeKernelModules: cdrom
Package: subversion 1.4.4dfsg1-1ubuntu3
PackageArchitecture: i386
ProcCmdline: svn co file:///tmp/test-repo/ wc1
ProcCwd: /tmp
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: subversion
StacktraceTop:
 ?? ()
 abort_trail (trail=0x808f2f0) at /build/buildd/subversion-1.4.4dfsg1/subversion/libsvn_fs_base/trail.c:156
 do_retry (fs=0x808eff0, txn_body=0xb7aa9c80 <txn_body_youngest_rev>, baton=0xbfc4d6b8, use_txn=1, pool=0x808c9b0,
 svn_fs_base__retry_txn (fs=0x808eff0, txn_body=0xb7aa9c80 <txn_body_youngest_rev>, baton=0xbfc4d6b8, pool=0x808c9b0)
 svn_fs_base__youngest_rev (youngest_p=0xbfc4d81c, fs=0x808eff0, pool=0x808c9b0)
Title: svn crashed with SIGSEGV in abort_trail()
Uname: Linux kubuntu-gutsy-vm 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:?? ()
abort_trail (trail=0x808f2f0)
do_retry (fs=0x808eff0,
svn_fs_base__retry_txn (fs=0x808eff0,
svn_fs_base__youngest_rev (youngest_p=0xbfc4d81c,

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Daniel Hahler (blueyed)
description: updated
Revision history for this message
Gerv (gerv) wrote :

This totally breaks svn for me, and I keep all my stuff in it :-( I can't do any ops without a segfault.

I tried installing libdb-4.4 from hardy
http://packages.ubuntu.com/cgi-bin/download.pl?arch=i386&file=pool%2Funiverse%2Fd%2Fdb4.4%2Flibdb4.4_4.4.20-11_i386.deb&md5sum=1c888de7e2ee70758df3e6bf2bebecf5&arch=i386&type=main
but that didn't help.

Please let me know if I can help debug this at all.

Gerv

Revision history for this message
Gerv (gerv) wrote :

CCing Martin Pitt, as he fixed Bug #153996.

Gerv

Revision history for this message
Gerv (gerv) wrote :

I worked around this by switching my repository format to fsfs. But that may well not be possible for some people.

Gerv

Revision history for this message
Martin Pitt (pitti) wrote :

Not a problem in Hardy.

Changed in subversion:
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

I just tried the test case in a gutsy chroot, and it works for me. Do I need to install anything in addition? Or create the svn repo with a different set of files?

Changed in subversion:
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Gutsy Gibbon 7.10 has reached its end of life -
http://www.ubuntu.com/news/ubuntu-7.10-eol . As a result, we are closing the
Gutsy task.

Changed in subversion (Ubuntu Gutsy):
status: Incomplete → Won't Fix
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.