Comment 2 for bug 753155

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 753155] [NEW] bzr-git crashes when trying to update GTK: Invalid sha for Commit

On Thu, 2011-04-07 at 03:05 +0000, Andrew Cowie wrote:
> Public bug reported:
>
> $ bzr pull
> Using saved parent location: git+ssh://<email address hidden>/git/gtk+/
> bzr: failed to report crash using apport:
> OSError(13, 'Permission denied')
> bzr: ERROR: exceptions.AssertionError: Invalid sha for <Commit 87a5d4f4faa9b24bace2bd1d74cbbbfbc87c5e95>: c8df83a2fee148d871b36ca5ac742dc566c64612
>
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 926, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 1126, in run_bzr
> ret = run(*run_argv)
> File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 691, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 713, in run
> return self._operation.run_simple(*args, **kwargs)
> File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 135, in run_simple
> self.cleanups, self.func, *args, **kwargs)
> File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 165, in _do_with_cleanups
> result = func(*args, **kwargs)
> File "/usr/lib/pymodules/python2.6/bzrlib/builtins.py", line 1008, in run
> show_base=show_base)
> File "/usr/lib/pymodules/python2.6/bzrlib/decorators.py", line 194, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/usr/lib/pymodules/python2.6/bzrlib/workingtree.py", line 1676, in pull
> local=local)
> File "/usr/lib/pymodules/python2.6/bzrlib/branch.py", line 1086, in pull
> possible_transports=possible_transports, *args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/branch.py", line 617, in pull
> stop_revision, overwrite=overwrite, graph=graph, limit=limit)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/branch.py", line 566, in _update_revisions
> determine_wants, self.source.mapping, limit=limit)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 594, in fetch_objects
> progress)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/remote.py", line 310, in fetch_objects
> lambda x: os.write(fd, x), progress)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/remote.py", line 301, in fetch_pack
> pack_data, progress)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/remote.py", line 130, in fetch_pack
> graph_walker, pack_data, progress)
> File "/usr/lib/pymodules/python2.6/dulwich/client.py", line 229, in fetch_pack
> have = graph_walker.next()
> File "/usr/lib/pymodules/python2.6/dulwich/object_store.py", line 771, in next
> ps = self.get_parents(ret)
> File "/usr/lib/pymodules/python2.6/dulwich/object_store.py", line 194, in <lambda>
> return ObjectStoreGraphWalker(heads, lambda sha: self[sha].parents)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 565, in __getitem__
> (type, type_data) = self.lookup_git_sha(sha)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 557, in lookup_git_sha
> return self.lookup_git_shas([sha], update_map=update_map)[sha]
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 548, in lookup_git_shas
> self._update_sha_map()
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 322, in _update_sha_map
> self._update_sha_map_revision(revid)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 419, in _update_sha_map_revision
> roundtrip=True):
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 408, in _revision_to_objects
> _check_expected_sha(foreign_revid, commit_obj)
> File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/object_store.py", line 139, in _check_expected_sha
> expected_sha))
> AssertionError: Invalid sha for <Commit 87a5d4f4faa9b24bace2bd1d74cbbbfbc87c5e95>: c8df83a2fee148d871b36ca5ac742dc566c64612
This is probably unrelated to the gtk+ import, but just to do with the
revisions that are already in that repository.

What is the output of:

$ bzr git-object 87a5d4f4faa9b24bace2bd1d74cbbbfbc87c5e95
$ bzr git-object c8df83a2fee148d871b36ca5ac742dc566c64612

  status incomplete

Cheers,

Jelmer