AssertionError: get_next() called when there are no chars left in dirstate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
After installing bzr 2.0.0, I ran bzr check on a shared repository and it crashed with the below exception info. It appears to have traversed all the branches under the shared repository.
---
D:\topcon>bzr check
Checking working tree at 'D:/topcon/3DMC 6.00/_expired/
Checking branch at 'file:/
Checking branch at 'file:/
Checking branch at 'file:/
Checking working tree at 'D:/topcon/3DMC 6.00/_expired/
Checking branch at 'file:/
Checking working tree at 'D:/topcon/3DMC 6.00/bleeding_
Checking branch at 'file:/
Checking working tree at 'D:/topcon/3DMC 6.00/bug_fixes'.
Checking branch at 'file:/
Checking working tree at 'D:/topcon/3DMC 6.00/mainline'.
Checking branch at 'file:/
Checking working tree at 'D:/topcon/3DMC 6.00/working'.
Checking branch at 'file:/
Checking working tree at 'D:/topcon/Art'.
Checking branch at 'file:/
Checking working tree at 'D:/topcon/
Checking branch at 'file:/
Checking repository at 'file:/
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\check.pyo", line 456, in check_dwim
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\check.pyo", line 146, in check
File "bzrlib\
File "bzrlib\
File "bzrlib\tree.pyo", line 1045, in iter_changes
File "bzrlib\
File "bzrlib\tree.pyo", line 201, in iter_entries_by_dir
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "_dirstate_
AssertionError: get_next() called when there are no chars left
bzr 2.0.0 on python 2.5.4 (Windows-
arguments: ['bzr', 'check']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Program Files\Bazaar\
explorer C:\Program Files\Bazaar\
launchpad C:\Program Files\Bazaar\
netrc_
qbzr C:\Program Files\Bazaar\
rebase C:\Program Files\Bazaar\
svn C:\Program Files\Bazaar\
upload C:\Program Files\Bazaar\
xmloutput C:\Program Files\Bazaar\
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
D:\topcon>
Changed in bzr: | |
importance: | Undecided → Medium |
Changed in bzr: | |
status: | New → Confirmed |
summary: |
- bzr check exception + AssertionError: get_next() called when there are no chars left in + dirstate |
My guess from the symptom is that the dirstate file is simply truncated. If so bzr should report an error (but not crash, obviously).
Possibly related to bug 328674, or at least the comments in that bug. In 2.0.0 bzr is more careful with the dirstate file, and tends to notice problems that much earlier versions often wouldn't.
Can you attach the .bzr/checkout/ dirstate file from the working tree that causes the crash?