[Bug 844300] Re: bzr crashed with AssertionError in read_index()

Martin Pool mbp at canonical.com
Thu Sep 8 05:07:35 UTC 2011


This looks like you're trying to open a git repository that's either
invalid or in a format dulwich doesn't understand.  Is there a git tree
in the directory you're trying to open?

** Description changed:

  This happen when selecting a directory to open a bzr branch
  
  lsb_release -rd
  Description:    Ubuntu 11.04
  Release:        11.04
  
- 
  apt-cache policy bzr
  bzr:
-   Installed: 2.3.4-0ubuntu1
-   Candidate: 2.3.4-0ubuntu1
-   Version table:
-  *** 2.3.4-0ubuntu1 0
-         500 http://ca.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
-         100 /var/lib/dpkg/status
-      2.3.1-1ubuntu1 0
-         500 http://ca.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
+   Installed: 2.3.4-0ubuntu1
+   Candidate: 2.3.4-0ubuntu1
+   Version table:
+  *** 2.3.4-0ubuntu1 0
+         500 http://ca.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
+         100 /var/lib/dpkg/status
+      2.3.1-1ubuntu1 0
+         500 http://ca.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
  
  Expected behavior: Either open bzr branch or gracefully report problem
  
  Actual behaviour: AssertionError by bzr
  
  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: bzr 2.3.4-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-10.46-generic-pae 2.6.38.7
  Uname: Linux 2.6.38-10-generic-pae i686
  Architecture: i386
  BzrDebugFlags: set()
  BzrVersion: 2.3.4
  CommandLine: ['/usr/bin/bzr', 'explorer']
  CrashDb: bzr
  Date: Wed Sep  7 17:03:12 2011
  ExecutablePath: /usr/bin/bzr
  FileSystemEncoding: UTF-8
  InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release i386 (20110427)
  InterpreterPath: /usr/bin/python2.7
  Locale: en_CA.UTF-8
  PackageArchitecture: all
  Platform: Linux-2.6.38-10-generic-pae-i686-with-Ubuntu-11.04-natty
  ProcCmdline: /usr/bin/python /usr/bin/bzr explorer
  ProcEnviron:
-  LANGUAGE=en_CA:en
-  LANG=en_CA.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=en_CA:en
+  LANG=en_CA.UTF-8
+  SHELL=/bin/bash
  PythonVersion: 2.7.1
  SourcePackage: bzr
  Title: bzr crashed with AssertionError in read_index()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
+ 
+ Traceback (most recent call last):
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1448, in callable_with_cleanup
+     task_callable()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1609, in _open_location_task
+     self._do_view_action, self.dry_run)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/location.py", line 160, in __init__
+     self.reopen_location()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/location.py", line 222, in reopen_location
+     self.location)
+   File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 837, in open_containing_tree_branch_or_repository
+     tree, branch = bzrdir._get_tree_branch()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 560, in _get_tree_branch
+     tree = self.open_workingtree()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/dir.py", line 227, in open_workingtree
+     index = repo._git.open_index()
+   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/transportgit.py", line 324, in open_index
+     return Index(self.index_path())
+   File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 194, in __init__
+     self.read()
+   File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 212, in read
+     for x in read_index(f):
+   File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 128, in read_index
+     assert version in (1, 2)
+ AssertionError

** Package changed: bzr (Ubuntu) => dulwich

-- 
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/844300

Title:
  bzr crashed with AssertionError in read_index()

Status in Python Git Library:
  New

Bug description:
  This happen when selecting a directory to open a bzr branch

  lsb_release -rd
  Description:    Ubuntu 11.04
  Release:        11.04

  apt-cache policy bzr
  bzr:
    Installed: 2.3.4-0ubuntu1
    Candidate: 2.3.4-0ubuntu1
    Version table:
   *** 2.3.4-0ubuntu1 0
          500 http://ca.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
          100 /var/lib/dpkg/status
       2.3.1-1ubuntu1 0
          500 http://ca.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

  Expected behavior: Either open bzr branch or gracefully report problem

  Actual behaviour: AssertionError by bzr

  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: bzr 2.3.4-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-10.46-generic-pae 2.6.38.7
  Uname: Linux 2.6.38-10-generic-pae i686
  Architecture: i386
  BzrDebugFlags: set()
  BzrVersion: 2.3.4
  CommandLine: ['/usr/bin/bzr', 'explorer']
  CrashDb: bzr
  Date: Wed Sep  7 17:03:12 2011
  ExecutablePath: /usr/bin/bzr
  FileSystemEncoding: UTF-8
  InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release i386 (20110427)
  InterpreterPath: /usr/bin/python2.7
  Locale: en_CA.UTF-8
  PackageArchitecture: all
  Platform: Linux-2.6.38-10-generic-pae-i686-with-Ubuntu-11.04-natty
  ProcCmdline: /usr/bin/python /usr/bin/bzr explorer
  ProcEnviron:
   LANGUAGE=en_CA:en
   LANG=en_CA.UTF-8
   SHELL=/bin/bash
  PythonVersion: 2.7.1
  SourcePackage: bzr
  Title: bzr crashed with AssertionError in read_index()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1448, in callable_with_cleanup
      task_callable()
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 1609, in _open_location_task
      self._do_view_action, self.dry_run)
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/location.py", line 160, in __init__
      self.reopen_location()
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/location.py", line 222, in reopen_location
      self.location)
    File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 837, in open_containing_tree_branch_or_repository
      tree, branch = bzrdir._get_tree_branch()
    File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 560, in _get_tree_branch
      tree = self.open_workingtree()
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/dir.py", line 227, in open_workingtree
      index = repo._git.open_index()
    File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/transportgit.py", line 324, in open_index
      return Index(self.index_path())
    File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 194, in __init__
      self.read()
    File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 212, in read
      for x in read_index(f):
    File "/usr/lib/pymodules/python2.7/dulwich/index.py", line 128, in read_index
      assert version in (1, 2)
  AssertionError

To manage notifications about this bug go to:
https://bugs.launchpad.net/dulwich/+bug/844300/+subscriptions




More information about the foundations-bugs mailing list