[Bug 582656] Re: Compiled _dirstate_helpers causes crash with specified file commands
Matthew Fuller
fullermd at over-yonder.net
Thu Jan 23 22:44:13 UTC 2014
Anything having to do with bzr updates in an Ubuntu version almost 3
years out of support really doesn't deserve to still be open...
** Changed in: bzr (Ubuntu Karmic)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/582656
Title:
Compiled _dirstate_helpers causes crash with specified file commands
Status in Bazaar Version Control System:
Fix Released
Status in Bazaar 2.0 series:
Fix Released
Status in Bazaar 2.1 series:
Fix Released
Status in “bzr” package in Ubuntu:
Fix Released
Status in “bzr” source package in Karmic:
Invalid
Bug description:
When files are specified to certain commands (seen with stat, diff,
and ci at least), and the C _dirstate_helpers is present, bzr will
crash:
bzr: ERROR: exceptions.KeyError: 'foo'
[...]
File "/home/fullermd/src/bzr/bzr.dev/bzrlib/dirstate.py", line 1203, in _find_block_index_from_key
cache=self._split_path_cache)
KeyError: 'foo'
Doing a `rm bzrlib/_dirstate_helpers_pyx.so` will make bzr act
normally (i.e., not fail).
This error does NOT occur with the 2.1.1 release, but DOES affect
bzr.dev, as well as the current heads of the 2.1 and 2.0 branches, and
so should block new releases on them :(
Reproduction (alter paths to taste):
#!/bin/sh -x
bzr="/home/fullermd/src/bzr/bzr.dev/bzr --no-aliases --no-plugins"
#bzr="/home/fullermd/src/bzr/2.1/bzr --no-aliases --no-plugins"
#bzr="/home/fullermd/src/bzr/2.0/bzr --no-aliases --no-plugins"
#bzr="/usr/local/bin/bzr --no-aliases --no-plugins"
${bzr} init A
(
cd A ;
mkdir foo ;
touch foo/bar ;
${bzr} add ;
${bzr} ci -m 'add' ;
echo "change" > foo/bar ;
# Works
${bzr} stat ;
# Both fail
#${bzr} stat foo ;
${bzr} stat foo/bar ;
)
To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/582656/+subscriptions
More information about the foundations-bugs
mailing list