Bzr Crashes on Checkout without SVN

Bug #791711 reported by Stefan Mai
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
High
Unassigned
bzr (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: bzr

Simple run of this command:
bzr co lp:~ubuntu-iamnafets/syncany/windows-shell syncany

I'd be happy to add contributors to my branch if that's necessary.

PS Thank you. Oh, and I'm using some of the code in TortoiseBzr as reference for Syncany, so double thanks!

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
BzrDebugFlags: set()
BzrPlugins:
 bash_completion /usr/lib/python2.7/dist-packages/bzrlib/plugins/bash_completion [2.3.1]
   bzrtools /usr/lib/python2.7/dist-packages/bzrlib/plugins/bzrtools [2.3.1]
   launchpad /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad [2.3.1]
   netrc_credential_store /usr/lib/python2.7/dist-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
   news_merge /usr/lib/python2.7/dist-packages/bzrlib/plugins/news_merge [2.3.1]
BzrVersion: 2.3.1
CommandLine: ['/usr/bin/bzr', 'co', 'lp:~ubuntu-iamnafets/syncany/windows-shell', 'syncany']

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1328, in run
    accelerator_tree, hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1444, in create_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1086, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3478, in pull
    merge_tags_to_master=not source_is_master)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3588, in _pull
    overwrite=overwrite, graph=graph)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1035, in update_revisions
    overwrite, graph)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3430, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 685, in fetch
    pb=pb)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 1781, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 3437, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 73, in __init__
    self.__fetch()
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 99, in __fetch
    self._fetch_everything_for_search(search)
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 127, in _fetch_everything_for_search
    stream, from_format, [])
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 4105, in insert_stream
    hint = self.target_repo.commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 1640, in commit_write_group
    result = self._commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 2333, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 2171, in _commit_write_group
    "Cannot add revision(s) to repository: " + problems_summary)
BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps

Revision history for this message
Stefan Mai (ubuntu-iamnafets) wrote :
description: updated
tags: removed: need-duplicate-check
Jelmer Vernooij (jelmer)
visibility: private → public
Andrew Bennetts (spiv)
description: updated
Revision history for this message
Andrew Bennetts (spiv) wrote :

I can reproduce this with the given command.

The CHK records are ok (they are in canonical form), so I suspect this is the same bug in stacked fetches from smart servers revealed by lp:ubuntu/libffi. Probably you can work around this by either:

 1. prefixing the url with “nosmart+”, i.e. nosmart+lp:~ubuntu-iamnafets/syncany/windows-shell, or
 2. installing the lp:bzr-repodebug plugin, and running “bzr fetch-all-records -d lp:~ubuntu-iamnafets/syncany/windows-shell lp:syncany

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
tags: added: stacking
Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
dino99 (9d9) wrote :

This version has expired long ago; no more supported

Changed in bzr (Ubuntu):
status: Confirmed → Invalid
Changed in bzr:
status: Confirmed → Invalid
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.