Crash w/ StopIteration

Bug #805343 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

Sent to the bzr mailing list by Ben Finney:

$ svn info svn+ssh://subversion/home/svn/empowered/trunk/
Path: trunk
URL: svn+ssh://subversion/home/svn/empowered/trunk
Repository Root: svn+ssh://subversion/home/svn/empowered
Repository UUID: 58802371-0b19-4c69-acb7-7d0c5b422186
Revision: 3355
Node Kind: directory
Last Changed Author: build
Last Changed Rev: 3355
Last Changed Date: 2011-07-04 11:10:07 +1000 (Mon, 04 Jul 2011)

$ bzr info svn+ssh://subversion/home/svn/empowered/trunk/
Repository branch (format: subversion)
Location:
  shared repository: svn+ssh://subversion/home/svn/empowered/trunk/
  repository branch: svn+ssh://subversion/home/svn/empowered/trunk/

$ bzr branch --bind svn+ssh://subversion/home/svn/empowered/trunk/ empowered/
bzr: ERROR: exceptions.StopIteration:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1246, in run
    source_branch=br_from)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/remote.py", line 112, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1257, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1740, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1374, in fetch
    pack_hint = self._fetch_revisions(needed, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1301, in _fetch_revisions
    use_replay=self._use_replay)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1271, in _fetch_revisions_nochunks
    parent_revmeta)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1213, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/errors.py", line 141, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 959, in report_inventory_contents
    reporter.finish()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/transport.py", line 243, in update
    if self._last_progress > progress:
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/transport.py", line 243, in update
    if self._last_progress > progress:
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 325, in open_directory
    return self._open_directory(path, base_revnum)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 505, in _open_directory
    base_file_id = self.editor._get_old_id(self.old_id, path)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 805, in _get_old_id
    return ret.next()[1]
StopIteration

bzr 2.2.1 on python 2.6.6 (Linux-2.6.35-22-server-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'branch', '--bind', 'svn+ssh://subversion/home/svn/empowered/trunk/', 'empowered/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.2]
  hg /usr/lib/python2.6/dist-packages/bzrlib/plugins/hg [0.2.0dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
  pipeline /usr/lib/python2.6/dist-packages/bzrlib/plugins/pipeline [unknown]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.3]

*** 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.
=====

$ bzr version
Bazaar (bzr) 2.2.1
  Python interpreter: /usr/bin/python 2.6.6
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.35-22-server-x86_64-with-Ubuntu-10.10-maverick
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/benf/.bazaar
  Bazaar log file: /home/benf/.bzr.log

$ bzr svn-import svn+ssh://subversion/home/svn/empowered/ empowered.bzr/
Using repository layout: trunk0
inconsistent details in skipped record: ('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2Fcommands%2F__init__.py', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719') ('2194473 253065 0 0', ((),)) ('547943 23 0 0', ((('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2Fcommands%2F__init__.py', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719'),),))
inconsistent details in skipped record: ('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2Fcommands', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719') ('2194473 253065 0 0', ((),)) ('550491 23 0 0', ((('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2Fcommands', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719'),),))
inconsistent details in skipped record: ('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2F__init__.py', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719') ('2194473 253065 0 0', ((),)) ('550514 23 0 0', ((('719@58802371-0b19-4c69-acb7-7d0c5b422186:trunk%2Fwdyt%2Fsource%2Fwdyt%2Fprofile_modules%2Fmanagement%2F__init__.py', 'svn-v4:58802371-0b19-4c69-acb7-7d0c5b422186:trunk:719'),),))
Use 'bzr checkout' to create a working tree in the newly created branches.

Revision history for this message
Vincent Ladeuil (vila) wrote :
Download full text (10.0 KiB)

<bignose> vila: using bzr 2.3.1-1, bzr-svn 1.0.5dev
<bignose> I get a crash trying to merge
<bignose> File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2171, in _commit_write_group "Cannot add revision(s) to repository: " + problems_summary)
<bignose> BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple(…
<vila> >-/
<vila> bignose: can you pastebin a bit more details so I can paste it to the bug report ?

http://paste.pound-python.org/show/9056/ :

$ bzr version
Bazaar (bzr) 2.3.1
  Python interpreter: /usr/bin/python 2.6.7
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.39-2-686-pae-i686-with-debian-wheezy-sid
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/bignose/.bazaar
  Bazaar log file: /home/bignose/.bzr.log

Copyright 2005-2010 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

$ aptitude show bzr-svn | grep '^Version:'
Version: 1.0.4+bzr3475-1

$ bzr info .
Repository checkout (format: 2a)
Location:
  repository checkout root: .
        checkout of branch: svn+ssh://benf@subversion/home/svn/empowered/trunk/
         shared repository: /home/bignose/Projects/svn

Related branches:
  parent branch: svn+ssh://benf@subversion/home/svn/empowered/trunk/

$ bzr info ../../devel/empowered.rt12430.confirm-reminder-email/
Repository tree (format: 2a)
Location:
  shared repository: /home/bignose/Projects/devel
  repository branch: /home/bignose/Projects/devel/empowered.rt12430.confirm-reminder-email

Related branches:
  parent branch: sftp://benf@jubjub/~/projects/devel/empowered.rt12430.confirm-reminder-email/

$ bzr missing --line ../../devel/empowered.rt12430.confirm-reminder-email/ | wc -l
27

$ bzr merge ../../devel/empowered.rt12430.confirm-reminder-email/
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple('sha1:0e39424665871536d39178689f72f1448c3bc94b',), StaticTuple('sha1:1086a02e983e8c938872801af403a026ba524ebe',), StaticTuple('sha1:16362c57dfb71c7f95f418b05559856a98bba17c',), StaticTuple('sha1:2a17c16e9ef3762a4f5dcbe073b4f154eeda2182',), StaticTuple('sha1:34acc6c42419b7685853a7d325a1aa370dd45998',), StaticTuple('sha1:367370bd9a4f8384e0dd934c75f1f411e4a70b89',), StaticTuple('sha1:4d6db18e16a31c1d71b2693cc9a07850343543bf',), StaticTuple('sha1:510b214030d53f4584887cad0e3992de4b19fb13',), StaticTuple('sha1:588d878ed0327e472f0b352204319f60aac3dd98',), StaticTuple('sha1:5e38f026e1049ffb1f7339380e79692208167a88',), StaticTuple('sha1:5f61c0503a834693f473b118da02d21642ed3b14',), StaticTuple('sha1:710b96ea1b44e415e569a4fb3b47569f0a1a4174',), StaticTuple('sha1:744ec3a040c05eb2e51328db700f4091316cb56e',), StaticTuple('sha1:93c2e957540d1f6bc48520c2b41ef094863ccdec',), StaticTuple('sha1:a989417da822f1eccd6925003453873704db4e69',), StaticTuple('sha1:ac2cc220c29cb6d3f4c1f...

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 805343] Re: Crash w/ StopIteration

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/5/2011 9:24 AM, Vincent Ladeuil wrote:
> <bignose> vila: using bzr 2.3.1-1, bzr-svn 1.0.5dev
> <bignose> I get a crash trying to merge
> <bignose> File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/pack_repo.py", line 2171, in _commit_write_group "Cannot add revision(s) to repository: " + problems_summary)
> <bignose> BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple(…
> <vila> >-/
> <vila> bignose: can you pastebin a bit more details so I can paste it to the bug report ?
>

I don't think this is actually the same bug. This is the "missing chk
inventory pages" bug, not a "StopIteration" crash bug.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4TEZYACgkQJdeBCYSNAAP/wgCeJYo3WkUEszJWV7N+zmgl7UOb
CPkAn0wKODQGL+TFESu/n7Kjp/n695HP
=E3C1
-----END PGP SIGNATURE-----

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.