bzr crashed with KeyError in lookup_git_sha()

Bug #715556 reported by John Rigby
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
High
Jelmer Vernooij
bzr-git (Ubuntu)
Fix Released
High
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 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.2.1
CommandLine:
 ['/usr/bin/bzr',
  'branch',
  '/home/jcrigby/work/git-trees/u-boot/u-boot',
  'my-u-boot']
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
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.utf8
 LANGUAGE=
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/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1246, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1257, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1740, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 495, in fetch
    (pack_hint, _) = self.fetch_objects(determine_wants, mapping, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 580, in fetch_objects
    target_git_object_retriever, wants, pb, limit)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 443, in import_git_objects
    target_git_object_retriever, trees_cache)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", 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/fetch.py", line 239, in import_git_tree
    tree = lookup_object(hexsha)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 396, in lookup_object
    return target_git_object_retriever[sha]
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 543, in __getitem__
    (type, type_data) = self.lookup_git_sha(sha)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 535, in lookup_git_sha
    return self.lookup_git_shas([sha], update_map=update_map)[sha]
KeyError: '0f10daa86e47163e9fc57404c0f470181da72665'

Revision history for this message
John Rigby (jcrigby) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp)
description: updated
Martin Pool (mbp)
visibility: private → public
Jelmer Vernooij (jelmer)
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)
Changed in bzr-git:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-git (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
status: Confirmed → In Progress
Revision history for this message
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)
Changed in bzr-git:
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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