Crash in bzr-git during bzr rm, bzr pull

Bug #489649 reported by Maciej Katafiasz
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Triaged
Low
Unassigned

Bug Description

mathrick@hatsumi:~/Dev/Lisp/lib/cl-gtk2$ bzr st -V
added:
  .bzrignore

mathrick@hatsumi:~/Dev/Lisp/lib/cl-gtk2$ bzr rm --new --keep .bzrignore
bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'as_dict'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1501, in run
    tree.lock_write()
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1830, in lock_write
    return self._control_files.lock_write()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockable_files.py", line 194, in lock_write
    token_from_lock = self._lock.lock_write(token=token)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 579, in lock_write
    return self.wait_lock()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 513, in wait_lock
    new_info = self.peek()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 427, in peek
    info = self._read_info_file(self._held_info_path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 417, in _read_info_file
    return self._parse_info(self.transport.get(path))
  File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 451, in _parse_info
    return rio.read_stanza(info_file.readlines()).as_dict()
AttributeError: 'NoneType' object has no attribute 'as_dict'

bzr 2.0.2 on python 2.6.2 (Linux-2.6.28-14-generic-i686-with-Ubuntu-9.04-jaunty)
arguments: ['/usr/bin/bzr', 'rm', '--new', '--keep', '.bzrignore']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'da_DK.UTF-8'
plugins:
  bisect /home/mathrick/.bazaar/plugins/bisect [unknown]
  bookmarks /home/mathrick/.bazaar/plugins/bookmarks [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.0.0]
  cvsps_import /usr/lib/python2.6/dist-packages/bzrlib/plugins/cvsps_import [unknown]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [unknown]
  diffstat /home/mathrick/.bazaar/plugins/diffstat [unknown]
  git /home/mathrick/.bazaar/plugins/git [0.4.3dev]
  interactive /home/mathrick/.bazaar/plugins/interactive [1.2.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.2]
  loom /home/mathrick/.bazaar/plugins/loom [1.4.0dev]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.2]
  svn /home/mathrick/.bazaar/plugins/svn [1.0.0dev]

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

Wait, was this in a bzr or git working tree?

Jelmer Vernooij (jelmer)
affects: bzr → bzr-git
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Maciej Katafiasz (mathrick) wrote :

There's another instace of this, this time during pull. Bzr 2.1.0rc2, bzr-git r721, dulwich d93e5a3e8c19455db0f8429a3022b6d52de18c2d

mathrick@hatsumi:~/Dev/Lisp/lib/cl-gtk2$ bzr pull git://github.com/dmitryvk/cl-gtk2.git

 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1013, in run
     possible_transports=possible_transports, local=local)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     self.lock_write()
   File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1836, in lock_write
     return self._control_files.lock_write()
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockable_files.py", line 193, in lock_write
     token_from_lock = self._lock.lock_write(token=token)
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 594, in lock_write
     return self.wait_lock()
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 525, in wait_lock
     new_info = self.peek()
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 438, in peek
     info = self._read_info_file(self._held_info_path)
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 428, in _read_info_file
     return self._parse_info(self.transport.get_bytes(path))
   File "/usr/lib/python2.6/dist-packages/bzrlib/lockdir.py", line 463, in _parse_info
     return rio.read_stanza(osutils.split_lines(info_bytes)).as_dict()
 AttributeError: 'NoneType' object has no attribute 'as_dict'

summary: - Crash in bzr-git during bzr rm
+ Crash in bzr-git during bzr rm, bzr pull
Revision history for this message
Maciej Katafiasz (mathrick) wrote :

Oh, I missed comment #1: it's a git working tree.

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.