bzr stacktrace with MemoryError

Bug #195231 reported by Mark A. Hershberger
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

This may be the same as Bug #153749, but I'm reporting it new. I have a copy of the bzr tree giving the error if it is needed.

I have an strace that I'll attach.

From .bzr.log:

bzr arguments: [u'up']
looking for plugins in /home/mah/.bazaar/plugins
looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as sys.stdout encoding 'UTF-8'
opening working tree '/home/mah/work/code/ihris/ihris-manage'
ssh implementation is OpenSSH
Using fetch logic to copy between RemoteRepository(bzr+ssh://<email address hidden>/%7Eintrahealth%2Binformatics/ihris-manage/beta-3.0/.bzr/)(<RemoteRepositoryFormat>) and KnitPackRepository('file:///home/mah/work/code/ihris/ihris-manage/.bzr/repository/')(<RepositoryFormatKnitPack1>)
fetch up to rev {litlfred@zatar-20080222190456-v5lgjch8dzuk5hpo}
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1050, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2140, in update
    return self._update_tree(old_tip, change_reporter)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2172, in _update_tree
    if basis.inventory.root is None:
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1565, in _get_inventory
    self._generate_inventory()
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1424, in _generate_inventory
    self._dirstate._read_dirblocks_if_needed()
  File "/usr/lib/python2.5/site-packages/bzrlib/dirstate.py", line 1877, in _read_dirblocks_if_needed
    _read_dirblocks(self)
  File "_dirstate_helpers_c.pyx", line 694, in _dirstate_helpers_c._read_dirblocks_c
  File "_dirstate_helpers_c.pyx", line 661, in _dirstate_helpers_c.Reader._parse_dirblocks
  File "_dirstate_helpers_c.pyx", line 608, in _dirstate_helpers_c.Reader._get_entry
  File "_dirstate_helpers_c.pyx", line 502, in _dirstate_helpers_c.Reader.get_next_str
MemoryError

return code 4

Revision history for this message
Mark A. Hershberger (hexmode) wrote :
Revision history for this message
James Westby (james-w) wrote : Re: [Bug 195231] [NEW] bzr stacktrace with MemoryError

On Sun, 2008-02-24 at 22:45 +0000, Mark A. Hershberger wrote:
> Public bug reported:
>
> This may be the same as Bug #153749, but I'm reporting it new. I have a
> copy of the bzr tree giving the error if it is needed.

Hi Mark,

It looks as this is an open source project, so could you attach
the .bzr/checkout/dirstate file that is broken. Also if you
disable the c extensions as described in

https://bugs.launchpad.net/bzr/+bug/186014

it would help to know whether it is the same error.

Is there any chance that this was caused by a power failure
or similar?

Thanks,

James

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

oops, attached my dirstate to bug #186014. Will reattach here.

it is /possible/ this is caused by a power failure. I'm not sure what I was doing the last time I used the checkout before this happened. Still, it seems unlikely.

with c extensions disabled:

$ bzr up
bzr: ERROR: exceptions.AssertionError:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1050, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2140, in update
    return self._update_tree(old_tip, change_reporter)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2172, in _update_tree
    if basis.inventory.root is None:
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1565, in _get_inventory
    self._generate_inventory()
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1424, in _generate_inventory
    self._dirstate._read_dirblocks_if_needed()
  File "/usr/lib/python2.5/site-packages/bzrlib/dirstate.py", line 1877, in _read_dirblocks_if_needed
    _read_dirblocks(self)
  File "/usr/lib/python2.5/site-packages/bzrlib/_dirstate_helpers_py.py", line 203, in _read_dirblocks_py
    assert trailing == ''
AssertionError

bzr 1.0.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'up']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  avahi /home/mah/.bazaar/plugins/avahi [0.3.0dev0]
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [unknown]
  bzr_pqm /home/mah/.bazaar/plugins/bzr_pqm [1.0.0dev0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.0.0]
  cvsps_import /home/mah/.bazaar/plugins/cvsps_import [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  svn /home/mah/.bazaar/plugins/svn [0.5.0exp0]
*** 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.

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.