Bzr traceback when branching/pushing

Bug #276449 reported by David Strauss
Affects Status Importance Assigned to Milestone

Bug Description

straussd@dev /var/www/vhosts $ bzr branch
bzr: ERROR: exceptions.AssertionError: get_next() called when there are no chars left

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 499, in run_argv_aliases
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 879, in run
    hardlink=hardlink, stacked=stacked)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1143, in sprout
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1453, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1389, in initialize
    hardlink=hardlink, delta_from_tree=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1873, in build_tree
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1965, in _build_tree
    accelerator_tree, hardlink)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1997, in _create_files
    in iter if not (c or e[0] != e[1]))
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1996, in <genexpr>
    unchanged = dict((f, p[1]) for (f, p, c, v, d, n, k, e)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 837, in iter_changes
    to_entries_by_dir = list(
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 426, in _get_inventory
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 313, in _generate_inventory
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1981, in _read_dirblocks_if_needed
  File "_dirstate_helpers_c.pyx", line 720, in _dirstate_helpers_c._read_dirblocks_c
  File "_dirstate_helpers_c.pyx", line 686, in _dirstate_helpers_c.Reader._parse_dirblocks
  File "_dirstate_helpers_c.pyx", line 607, in _dirstate_helpers_c.Reader._get_entry
  File "_dirstate_helpers_c.pyx", line 525, in _dirstate_helpers_c.Reader.get_next_str
  File "_dirstate_helpers_c.pyx", line 507, in _dirstate_helpers_c.Reader.get_next
AssertionError: get_next() called when there are no chars left

bzr 1.7 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', '', '']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.7.0]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  search /usr/lib/python2.5/site-packages/bzrlib/plugins/search [1.7.0dev0]
*** Bazaar has encountered an internal error.
    Please report a bug at
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Robert Collins (lifeless) wrote :

This looks like a corrupt dirstate; do you still have the problem branch around?

Changed in bzr:
status: New → Incomplete
tags: added: dirstate dirstate2
Revision history for this message
Robert Collins (lifeless) wrote :

David says the data isn't available anymore to really examine/confirm.

Changed in bzr:
status: Incomplete → 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.