IndexError in dirstate _process_entry when running bzr status

Bug #613066 reported by Björn Tillenius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
High
Unassigned

Bug Description

Whenever I run bzr status in a branch of mine, I get an IndexError. I tried it with latest bzr trunk (revno 5365), and got the following traceback there:

lilium:/devel/landscape/fetch-latest-ami-versions-bug-520557> /devel/bzr/bzr st
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/devel/bzr/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/devel/bzr/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/devel/bzr/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/devel/bzr/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/devel/bzr/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/devel/bzr/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/devel/bzr/bzrlib/commands.py", line 1126, in ignore_pipe
    result = func(*args, **kwargs)
  File "/devel/bzr/bzrlib/builtins.py", line 296, in run
    show_pending=(not no_pending), verbose=verbose)
  File "/devel/bzr/bzrlib/status.py", line 163, in show_tree_status
    want_unversioned=want_unversioned, show_ids=show_ids)
  File "/devel/bzr/bzrlib/status.py", line 71, in report_changes
    want_unversioned=want_unversioned)
  File "/devel/bzr/bzrlib/tree.py", line 94, in changes_from
    want_unversioned=want_unversioned,
  File "/devel/bzr/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/devel/bzr/bzrlib/tree.py", line 1002, in compare
    want_unversioned=want_unversioned)
  File "/devel/bzr/bzrlib/delta.py", line 126, in _compare_trees
    want_unversioned=want_unversioned):
  File "/devel/bzr/bzrlib/dirstate.py", line 3588, in iter_changes
    result, changed = _process_entry(entry, root_dir_info)
  File "/devel/bzr/bzrlib/dirstate.py", line 3238, in _process_entry
    source_details = entry[1][self.source_index]
IndexError: list index out of range

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-08-03T16:33.crash
if a bug-reporting window does not automatically appear.
bzr: warning: some compiled extensions could not be loaded; see <https://answers.launchpad.net/bzr/+faq/703>

Tags: dirstate
Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Martin Pool (mbp) wrote :

This sounds a bit like a dupe but I can't exactly find it

The affected files are in chinstrap:~bjorn/bug-613066

The dirstate file claims to contain one parent tree and it does seem to hold one. I wonder if we've somehow ended up with an entry with no parents.

Changed in bzr:
assignee: nobody → Martin Pool (mbp)
status: Confirmed → In Progress
Jelmer Vernooij (jelmer)
tags: added: dirstate
Martin Pool (mbp)
Changed in bzr:
status: In Progress → Confirmed
assignee: Martin Pool (mbp) → nobody
summary: - IndexError when running bzr status
+ IndexError in dirstate _process_entry when running bzr status
Revision history for this message
Björn Tillenius (bjornt) wrote :

FWIW, I haven't run into this issue for a long time, so I guess whatever bug that put my branches into this state has been fixed.

Revision history for this message
Martin Pool (mbp) wrote :

let's close it then, and if it recurs we can reopen it. thanks.

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