bzr crashed with ValueError in _last_revision_info(): need more than 1 value to unpack

Bug #728169 reported by Clint Byrum
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bzr

I also get this trace when I try to commit to the branch:

clint@clint-MacBookPro:~/src/drizzle/auth-file-enhancements-2$ bzr commit -m 'passes tests, using cache'
bzr: ERROR: exceptions.ValueError: need more than 1 value to unpack

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/pymodules/python2.7/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/pymodules/python2.7/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/builtins.py", line 3241, in run
    exclude=tree.safe_relpath_files(exclude))
  File "/usr/lib/pymodules/python2.7/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/workingtree_4.py", line 197, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/mutabletree.py", line 201, in commit
    *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/commit.py", line 286, in commit
    possible_master_transports=possible_master_transports)
  File "/usr/lib/pymodules/python2.7/bzrlib/cleanup.py", line 131, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/commit.py", line 363, in _commit
    old_revno, new_revno = self._check_out_of_date_tree()
  File "/usr/lib/pymodules/python2.7/bzrlib/commit.py", line 556, in _check_out_of_date_tree
    old_revno, master_last = self.master_branch.last_revision_info()
  File "/usr/lib/pymodules/python2.7/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/bzrlib/branch.py", line 988, in last_revision_info
    self._last_revision_info_cache = self._last_revision_info()
  File "/usr/lib/pymodules/python2.7/bzrlib/branch.py", line 2841, in _last_revision_info
    revno, revision_id = revision_string.rstrip('\n').split(' ', 1)
ValueError: need more than 1 value to unpack

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2011-03-03T01:42.crash
if a bug-reporting window does not automatically appear.

Which appears related....

Looking at the .bzr/branch/last-revision file shows that is definitely corrupted:

cat !$
clint@clint-MacBookPro:~/src/drizzle/auth-file-enhancements-2$ cat .bzr/branch/last-revision
/home/clint/src/drizzle/auth-file-enhancements-2/plugiclint@clint-MacBookPro:~/src/drizzle/auth-file-enhancements-2$

So the bug here may be in how it got corrupted in such a way without a huge warning, as now I have basically lost the entire branch's revision history and can only diff it against other branches for manual merging.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.0-2
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic x86_64
NonfreeKernelModules: wl nvidia
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.3.0
CommandLine: ['/usr/bin/bzr', 'status']
CrashDb: bzr
Date: Thu Mar 3 03:38:17 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
InterpreterPath: /usr/bin/python2.7
Locale: en_US.UTF-8
PackageArchitecture: all
Platform: Linux-2.6.38-5-generic-x86_64-with-Ubuntu-11.04-natty
ProcCmdline: /usr/bin/python /usr/bin/bzr status
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LC_MESSAGES=en_US.utf8
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with ValueError in _last_revision_info(): need more than 1 value to unpack
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare sbuild

Revision history for this message
Clint Byrum (clint-fewbar) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp)
visibility: private → public
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.