svn up Segmentation Fault with sasl enabled repositories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subversion (Debian) |
Fix Released
|
Unknown
|
|||
subversion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[impact]
svn crashes often when doing basic commands (checkout, update, ...) on repositories which use sasl authentification served with svnserve
[Development Fix]
the issue was fixed in 1.6.17dfsg-2ubuntu1 avaiable in precise by picking a patch from upstream vcs
[Stable Fix]
the same patch applies to the version in oneiric, according to upstream vcs no further corrections for this issue where applied between the version in oneiric and precise.
[Test Case]
create a repository with sasl authentification.
svnadm create repo
relevant contents of svnserve.conf:
[general]
anon-access = none
realm = test
[sasl]
use-sasl = true
min-encryption = 128
max-encryption = 256
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: DIGEST-MD5
create sasl account:
sudo saslpasswd2 -c -u test username
start svnserve:
sudo svnserve --daemon --root /path/to/repo
checkout and update:
svn co svn://repo wc
cd wc
svn up
expected result:
successful checkout and update
result:
sometimes segmentation faults.
if it does not crash run the checkout under valgrind and one will see many "Invalid read of size X" errors.
the patch fixes the crashes and the valgrind errors.
[regression impact]
low, the patch is small and simple. It has been released in precise and debian since a while with no regressions.
svn has a quite large testsuite which stillsucceeds with the patch.
original report:
after upgrade to ubuntu 11.10 svn up is segfaulting after updating local copy (svn up)
in one case the working copy was left in unclean state (some files locked) after svn up
everything was working fine in ubuntu 10.04
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: subversion 1.6.12dfsg-4ubuntu5
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 26 10:30:52 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: subversion
UpgradeStatus: Upgraded to oneiric on 2011-10-24 (1 days ago)
Related branches
- Serge Hallyn: Approve
- Micah Gersten (community): Needs Fixing
- Ubuntu branches: Pending requested
-
Diff: 62 lines (+42/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/sasl-mem-handling (+34/-0)
debian/patches/series (+1/-0)
Changed in subversion (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in subversion (Debian): | |
status: | Unknown → Fix Released |
Changed in subversion (Ubuntu): | |
status: | Triaged → Fix Released |
description: | updated |
summary: |
- svn up Segmentation Fault + svn up Segmentation Fault with sasl enabled repositories |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Problem only appears in sasl-protected remote repositories served through svnserve.
It has something to do with libsasl2 on the client side.
I first tried by manually compiled form source subversion 1.6.17 and got same problem
then I managed to solve the issue: sasl=/usr/ local/lib/ sasl2
- manually compiled from source cyrus-sasl-2.1.25, then recompiled subversion
- manually compiled form source subversion 1.6.17 using ./configure --with-
nothing changed on server side (where I run subversion 1.6.17)