bzr crashed with KeyError in lookup_git_sha()

Bug #715556 reported by John Rigby on 2011-02-09
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Jelmer Vernooij
bzr-git (Ubuntu)
Jelmer Vernooij

Bug Description

Binary package hint: bzr

doing bzr branch ../../path_to_compicated_git_repo my_branch

failed after processing all the commits

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.2.1
CrashDb: bzr
Date: Tue Feb 8 19:19:31 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
InterpreterPath: /usr/bin/python2.6
Locale: en_US.utf8
Platform: Linux-2.6.35-24-generic-x86_64-with-Ubuntu-10.10-maverick
ProcCmdline: /usr/bin/python /usr/bin/bzr branch /home/username/work/git-trees/u-boot/u-boot my-u-boot
 PATH=(custom, user)
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with KeyError in lookup_git_sha()
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare sbuild

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 690, in run_argv_aliases
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1246, in run
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1257, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1740, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 495, in fetch
    (pack_hint, _) = self.fetch_objects(determine_wants, mapping, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 580, in fetch_objects
    target_git_object_retriever, wants, pb, limit)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 443, in import_git_objects
    target_git_object_retriever, trees_cache)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 360, in import_git_commit
    allow_submodules=getattr(repo._format, "supports_tree_reference", False))
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 239, in import_git_tree
    tree = lookup_object(hexsha)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 396, in lookup_object
    return target_git_object_retriever[sha]
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 543, in __getitem__
    (type, type_data) = self.lookup_git_sha(sha)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/", line 535, in lookup_git_sha
    return self.lookup_git_shas([sha], update_map=update_map)[sha]
KeyError: '0f10daa86e47163e9fc57404c0f470181da72665'

John Rigby (jcrigby) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp) on 2011-04-12
description: updated
Martin Pool (mbp) on 2011-04-12
visibility: private → public
Jelmer Vernooij (jelmer) on 2011-04-12
affects: bzr (Ubuntu) → bzr-git (Ubuntu)
Changed in bzr-git (Ubuntu):
status: New → Confirmed
Changed in bzr-git:
status: New → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 0.6.0
Jelmer Vernooij (jelmer) on 2011-04-12
Changed in bzr-git:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer) on 2011-04-12
Changed in bzr-git (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → In Progress
Jelmer Vernooij (jelmer) wrote :

This is fixed in 0.7.1, fixed in Dulwich in sid.

Changed in bzr-git (Ubuntu):
assignee: Jelmer Vernooij (jelmer) → nobody
Jelmer Vernooij (jelmer) on 2011-04-27
Changed in bzr-git:
importance: Undecided → Medium
importance: Medium → High
Jelmer Vernooij (jelmer) wrote :

This is fixed in bzr-git in oneiric.

Changed in bzr-git (Ubuntu):
status: In Progress → Fix Released
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers