bzr log -r-1 FILENAME crashes

Bug #504435 reported by Andrew McClain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

$ bzr log -r-1 urls.py
bzr: ERROR: bzrlib.errors.ObjectNotLocked: <bzrlib.groupcompress._GCGraphIndex object at 0x1685e10> is not locked

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/commands.py", line 1052, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/builtins.py", line 2280, in run
    file_list)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/log.py", line 1897, in _get_info_for_log_files
    kind = _get_kind_for_file_id(tree, file_id)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/log.py", line 1929, in _get_kind_for_file_id
    return tree.kind(file_id)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/revisiontree.py", line 148, in kind
    return self._inventory[file_id].kind
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/inventory.py", line 1883, in __getitem__
    self.id_to_entry.iteritems([(file_id,)]).next()[1])
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/chk_map.py", line 484, in iteritems
    self._ensure_root()
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/chk_map.py", line 138, in _ensure_root
    self._root_node = self._get_node(self._root_node)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/chk_map.py", line 151, in _get_node
    bytes = self._read_bytes(node)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/chk_map.py", line 162, in _read_bytes
    bytes = stream.next().get_bytes_as('fulltext')
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/groupcompress.py", line 1423, in get_record_stream
    orig_keys, ordering, include_delta_closure):
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/groupcompress.py", line 1528, in _get_remaining_record_stream
    locations = self._index.get_build_details(keys)
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/groupcompress.py", line 2002, in get_build_details
    self._check_read()
  File "/usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/groupcompress.py", line 1922, in _check_read
    raise errors.ObjectNotLocked(self)
ObjectNotLocked: <bzrlib.groupcompress._GCGraphIndex object at 0x1685e10> is not locked

bzr 2.0rc2 on python 2.6.2 (Linux-2.6.16.29-xen-x86_64-with-Ubuntu-9.04-jaunty)
arguments: ['/usr/local/bin/bzr', 'log', '-r-1..', 'urls.py']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  launchpad /usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/plugins/launchpad [2.0rc2]
  netrc_credential_store /usr/local/lib/python2.6/dist-packages/bzr-2.0rc2-py2.6-linux-x86_64.egg/bzrlib/plugins/netrc_credential_store [2.0rc2]

Happens with both 1.18rc1 and 2.0rc2.

Same error happens with bzr log -r-1..

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

Fixed in bzr 2.0.2 and 2.1.0b2+ see bug #445171

Changed in bzr:
status: New → Fix Released
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.