bzr crashes on checkin

Bug #888470 reported by Pankaj Lal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I am checking in a file and I see the crash. Following is the call stack

modified src/com/cz/hindiwriter/war/HindiWriter.html
modified src/com/cz/webapp/snooper/models.py
aborting commit write group: RetryWithNewPacks(Unprintable exception RetryWithNewPacks: dict={'exc_info': (<class 'bzrlib.errors.NoSuchFile'>, NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack'), <traceback object at 0x989775c>), '_preformatted_string': None, 'reload_occurred': False, 'orig_error': NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack')}, fmt='Pack files have changed, reload and retry. context: %(context)s %(orig_error)s', error=KeyError('context',))
bzr: ERROR: bzrlib.errors.RetryWithNewPacks: Unprintable exception RetryWithNewPacks: dict={'exc_info': (<class 'bzrlib.errors.NoSuchFile'>, NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack'), <traceback object at 0x989775c>), '_preformatted_string': None, 'reload_occurred': False, 'orig_error': NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack')}, fmt='Pack files have changed, reload and retry. context: %(context)s %(orig_error)s', error=KeyError('context',)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3138, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 197, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 226, in commit
    *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 257, in commit
    possible_master_transports=possible_master_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 118, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 402, in _commit
    self.rev_id = self.builder.commit(self.message)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 179, in commit
    self.repository.commit_write_group()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1563, in commit_write_group
    result = self._commit_write_group()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2314, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2174, in _commit_write_group
    result = self.autopack()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 1476, in autopack
    return self._do_autopack()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 1516, in _do_autopack
    reload_func=self._restart_autopack)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 702, in _execute_pack_operations
    result = packer.pack()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 761, in pack
    return self._create_pack_from_packs()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 484, in _create_pack_from_packs
    self._copy_revision_texts()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 413, in _copy_revision_texts
    'revisions', self._get_progress_stream, 1)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 402, in _copy_stream
    reuse_blocks=False):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1653, in _insert_record_stream
    for record in stream:
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 208, in pb_stream
    for idx, record in enumerate(substream):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1418, in get_record_stream
    self._access.reload_or_raise(e)
  File "/usr/lib/python2.6/dist-packages/bzrlib/knit.py", line 3407, in reload_or_raise
    elif not self._reload_func():
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1413, in get_record_stream
    orig_keys, ordering, include_delta_closure):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1572, in _get_remaining_record_stream
    for factory in batcher.yield_factories(full_flush=True):
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1130, in yield_factories
    block_read_memo, block = blocks.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1369, in _get_blocks
    zdata = raw_records.next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/knit.py", line 3380, in get_raw_records
    exc_info=sys.exc_info())
RetryWithNewPacks: Unprintable exception RetryWithNewPacks: dict={'exc_info': (<class 'bzrlib.errors.NoSuchFile'>, NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack'), <traceback object at 0x989775c>), '_preformatted_string': None, 'reload_occurred': False, 'orig_error': NoSuchFile(No such file: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack': [Errno 2] No such file or directory: u'/home/mdg/remington/.bzr/repository/packs/c41d70869760bbefce211942f40711e8.pack')}, fmt='Pack files have changed, reload and retry. context: %(context)s %(orig_error)s', error=KeyError('context',)

bzr 2.1.4 on python 2.6.5 (Linux-2.6.39.1-linode34-i686-with-Ubuntu-10.04-lucid)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'updated with google plus code and full text in admin']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.4]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.1.4]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.4]

Revision history for this message
Martin Packman (gz) wrote :

Thanks for the bug report, see the existing entry for more information.

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.