Public bug reported:

Binary package hint: subversion

I am using the ext4 filesystem, and Jaunty Desktop Alpha.

If the system freezes (I assume due to independent reasons) while doing
an "svn update", then various branches of the working copy are left
inoperable after restart because many of the "./svn/entires" files are
truncated.  That is, they exist, but are zero length.

I assume this bug is caused by precisely this reason: 
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781
for which Theodore Ts'o suggests what application programmers should be doing 
when *overwriting* important files here: 
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/54

How to reproduce:
1) Working copy checked out on an ext4 file system with default settings.
2) $ svn up
3) Pull the power out of your machine (assuming a normal Desktop) before the 
previous command exits.  This is obviously too extreme, but the *kernel* needs 
to be crashed uncleanly.
4) Restart
5) $ svn up 
       svn: Working copy '.' locked
       svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for 
details)
6) $ svn cleanup
       svn: Can't read file 'foo/bar/aaa/.svn/entries': End of file found

Find shows 39 zero length entries files in my working copy (of 52000 files):
$ find -size 0c | grep  ".svn/entries" | wc -l
  39
$ find | wc -l
  52363

There are many other zero length files, so other SVN metadata files may
be affected.


What I expect to happen:
If and upgrade is interrupted, then I expect that, running "svn cleanup && svn 
update" in the WC should finish doing what I originally started.


More info:

$ apt-cache policy  subversion 
subversion:
  Installed: 1.5.4dfsg1-1ubuntu2
  Candidate: 1.5.4dfsg1-1ubuntu2
  Version table:
 *** 1.5.4dfsg1-1ubuntu2 0
        500 http://za.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: subversion 1.5.4dfsg1-1ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
SourcePackage: subversion
Uname: Linux 2.6.28-9-generic i686

** Affects: subversion (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
".svn/entries" files truncated if system crashes while "svn up" on ext4 
filesytem: working copy inoperable
https://bugs.launchpad.net/bugs/342164
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to