bzrlib.errors.KnitCorrupt during branching

Bug #336267 reported by Papadakos Panagiotis
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Using the latest bzr.dev I got the following during branching
with bzr+ssh and a 1.9 rich-root repository

bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit KnitVersionedFiles(None, None) corrupt: While reading {('2039@f5042aab-9612-0410-b294-b21131981d38::groogle%2Ftrunk%2FWEB-INF%2Fproject%2Fsrc%2Fgroogle%2Fuis%2FPoemsExperiment.java', 'theohar@molyvos-20080726131251-93hk3d1k7uvcf4wv')} got error(Error -3 while decompressing: invalid distance too far back)

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 921, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 866, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 547, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1102, in run
source_branch=br_from)
File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1121, in sprout
result_repo.fetch(source_repository, revision_id=revision_id)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1120, in fetch
find_ghosts=find_ghosts)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 3452, in fetch
find_ghosts=find_ghosts)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 3034, in fetch
return self._pack(self.source, self.target, revision_ids)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 3041, in _pack
revision_ids).pack()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 721, in pack
return self._create_pack_from_packs()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 875, in _create_pack_from_packs
self._copy_text_texts()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 852, in _copy_text_texts
self.new_pack.text_index, readv_group_iter, total_items))
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 966, in _copy_nodes_graph
write_index, output_lines, pb, readv_group_iter, total_items):
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1008, in _do_copy_nodes_graph
df, _ = knit._parse_record_header(key, raw_data)
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 1797, in _parse_record_header
% (key, e.__class__.__name__, str(e)))
KnitCorrupt: Knit KnitVersionedFiles(None, None) corrupt: While reading {('2039@f5042aab-9612-0410-b294-b21131981d38::groogle%2Ftrunk%2FWEB-INF%2Fproject%2Fsrc%2Fgroogle%2Fuis%2FPoemsExperiment.java', 'theohar@molyvos-20080726131251-93hk3d1k7uvcf4wv')} got error(Error -3 while decompressing: invalid distance too far back)

bzr 1.13dev on python 2.5.4 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'bzr+ssh://papadako@.../srv/bzr-repo/mitos/mitos-devel', 'test']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
*** 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.

Revision history for this message
Papadakos Panagiotis (papadako) wrote :
Download full text (36.0 KiB)

bzr chech reports

No working tree found at specified location.
Checking repository at 'file:///srv/bzr-repo/'.
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit KnitVersionedFiles(_KnitGraphIndex(CombinedGraphIndex(<bzrlib.btree_index.BTreeGraphIndex object at 0x874ee6c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874ec4c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874ea2c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874e80c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874e5ec>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874e3cc>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874e1ac>, <bzrlib.btree_index.BTreeGraphIndex object at 0x8741f6c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x8739f2c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x8741c4c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x8741a2c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874180c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874164c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x87414ac>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874130c>, <bzrlib.btree_index.BTreeGraphIndex object at 0x874114c>)), <bzrlib.knit._DirectPackAccess object at 0x86b5cec>) corrupt: Corrupt compressed record '\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xe5=kS\xe3H\x92\xdf;b\xfeC\x8d/vC\x06alC\x03\xfd\x80\x1b\xae\x81]b\xfa\xc14\xdcl\\\xcctL\x08\xab\x8c\xb5mKF\x92\r\xec.\xff\xfd2\xabT\xa5zJ6pq\x17q\x8e\xd9\xc6\x962\xb3\xb2\xb2*\x1fU\x99U\xbb\xa4y\x91d))\'4\x9bD\xf9O\xb3l\xfa\xb0\xcc\x8a\xada\xbf\x7f\xd0\xdf\x1f\xee\rv\x06\xc3\xd7\x83\xad7;\x93\xef;\xf1\xe0\xfb\xfeb9\x1a\xef\xde-\xc9\xde\x9b\x1d2\xde\x8f\xe8\xf0`\x87\xee\x1e\xd0\xd1\x88\xeeG\xa3\x83}\xf83\x1eD{\xa3\xf1\x9b\xf8z\xb7?\x8ev\xf6\xf6\xc6\xa3W\xf3h\xf4=\xba\xa1d\x96\x94Y\xd1[$\xc5\xbb\x1f^\xfd\xf0*\x99\xcd\xb3\xbc\xac\x1e&iL\xefi\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f1\x98,\x992\x90l\x8cF\x90\x8c\x16y\x8e\xc2a\xe6\xa2\'\xe1O\x97\xf0\x93\x94 8\x12\x91\x19\x05\x99\xc7\x84\xa21)\xe9/\x08\x19t\t\x88\x7f\x14\x81\xbe\xc6!\x10\x82\x1fQY\xe6\xc95\x00\xe0\x9b\xc5<\x06\x16cIp[g\xbd\x9a\xd6\xefQ\xfd`\x98Cr6\xcd\xa2\xf2\x88\xdc\xd6=\xa8\xfa\xb0\xfd%\x...

Revision history for this message
Robert Collins (lifeless) wrote :

This looks like damaged gzip data to me.

Revision history for this message
Martin Pool (mbp) wrote :

I would have originally attributed it to gzip data that had been damaged in some way external to bzr, but we have seen several reports with similar tracebacks.

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.