TypeError in _dirstate_helpers_c.ProcessEntryC._process_entry

Bug #306029 reported by Mark M
2
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Medium
Unassigned

Bug Description

budder {/usr/local/library} root# bzr status
bzr: ERROR: exceptions.TypeError: 'NoneType' object is unsubscriptable

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 853, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 217, in run
    show_pending=(not no_pending))
  File "/usr/lib/python2.5/site-packages/bzrlib/status.py", line 114, in show_tree_status
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.5/site-packages/bzrlib/tree.py", line 95, in changes_from
    want_unversioned=want_unversioned,
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/tree.py", line 814, in compare
    want_unversioned=want_unversioned)
  File "/usr/lib/python2.5/site-packages/bzrlib/delta.py", line 217, in _compare_trees
    want_unversioned=want_unversioned):
  File "_dirstate_helpers_c.pyx", line 1347, in _dirstate_helpers_c.ProcessEntryC.__next__
  File "_dirstate_helpers_c.pyx", line 1606, in _dirstate_helpers_c.ProcessEntryC._iter_next
  File "_dirstate_helpers_c.pyx", line 1260, in _dirstate_helpers_c.ProcessEntryC._process_entry
TypeError: 'NoneType' object is unsubscriptable

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'status']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.10]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
John A Meinel (jameinel) wrote :

The only time I've seen this is when "readdir()" returns a record inside of a directory but doing "stat(path)" fails.

I don't specifically know what file is breaking (or how), but it is rather odd. I would guess that a recursive "ls" will also fail. Can you try "ls -R" ?

Changed in bzr:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Mark M (kobaz) wrote :

ls -R is fine

Here's the steps I did to produce this problem.

Workstation A
  add a number of files
  modify a number of files
  bzr commit
  bzr push

Workstation B
  bzr status (works fine)
  modify a number of files
  bzr pull
  bazillions of conflicts (when there shouldn't have been... I didn't save the output though)
  bzr revert
  bzr status (produces the above output noted in the bug report)

Martin Pool (mbp)
Changed in bzr:
status: Incomplete → Confirmed
Revision history for this message
Robert Collins (lifeless) wrote :

There isn't enough here to write a test case at the moment. Mark, are you still seeing this?

Changed in bzr:
status: Confirmed → Incomplete
Revision history for this message
Martin Pool (mbp) wrote :

bug 449745 looks similar and may have enough data to reproduce this.

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.