Locking error when aborting with Ctrl-C

Bug #254896 reported by Nicholas Allen
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Because of the memory leaks the only way to branch from subversion for a project of any reasonable size is to interrupt it with Ctrl-C and then restart. However, sometimes this causes a problem the next time it is run:

bzr branch svn://path/to/project
using experimental bzr-svn mappings; may break existing branches in the most horrible ways
bzr: ERROR: Must end write group before releasing write lock on KnitPackRepository('file:///home/nia/repo/.bzr/repository/')

 bzr version
Bazaar (bzr) 1.6b4
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/nia/.bazaar
  Bazaar log file: /home/nia/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

nia@nia-desktop:~/repo$ bzr plugins
launchpad
    Launchpad.net integration plugin for Bazaar.

svn 0.4.11exp0
    Support for Subversion branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 254896] [NEW] Locking error when aborting with Ctrl-C

Thanks for taking the time to report this bug.

Am Dienstag, den 05.08.2008, 08:56 +0000 schrieb Nicholas Allen:
> Public bug reported:
>
> Because of the memory leaks the only way to branch from subversion for a
> project of any reasonable size is to interrupt it with Ctrl-C and then
> restart. However, sometimes this causes a problem the next time it is
> run:
>
> bzr branch svn://path/to/project
> using experimental bzr-svn mappings; may break existing branches in the most horrible ways
> bzr: ERROR: Must end write group before releasing write lock on KnitPackRepository('file:///home/nia/repo/.bzr/repository/')
>
  status incomplete

Please paste the backtrace from ~/.bzr.log.

Cheers,

Jelmer
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
James McKaskill (jmckaskill) wrote :

I've been trying to checkout a rather large svn project (30000 revs) and this bug is making it quite annoying to do so. I manage to get it for both ^C cancels and by the looks of it also general crashes due to other errors (in this case target dir already exists).
Attached is the bzr log with a successful branch, followed by the crashing one and then a branch failing due to the write lock bug.

bzr version:
Bazaar (bzr) 1.6.1
  Python interpreter: C:\Program Files\Bazaar\python25.dll 2.5.2
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\JMckaskill\Application Data\bazaar\2.0
  Bazaar log file: C:\Documents and Settings\JMckaskill\My Documents\.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

C:\Documents and Settings\JMckaskill>bzr plugins
bzrtools 1.6.0
    Various useful plugins for working with bzr.

launchpad
    Launchpad.net integration plugin for Bazaar.

qbzr 0.9.3
    QBzr - Qt-based front end for Bazaar

svn 0.4.11
    Support for Subversion branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

this should be fixed in the 0.5 branch

Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.5.0
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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