zlib error -3 while decompressing: incorrect data check in _ensure_content

Bug #528724 reported by Jean-Francois Henrard
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

- in folder1, bzr init
- in folder2, bzr branch /folder1
- add somes files in folder2, commit and push in folder1

If I create a new branch, ok, the files is present.

I import a svn repository (bzr svn-import) in folder2 with success. BUT the original files are disappeared...

In folder3, bzr branch /folder1=> ok
In folder3, bzr merge /folder2 => ERROR
    bzr: ERROR: zlib.error: Error -3 while decompressing: incorrect data check
    *** Bazaar has encountered an internal error. This probably indicates a bug in Bazaar.

Bazaar (bzr) 2.0.2
  Python interpreter: /usr/bin/python 2.6.4
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.31-19-generic-x86_64-with-Ubuntu-9.10-karmic
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/jfh/.bazaar
  Bazaar log file: /home/jfh/.bzr.log

 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 3705, in run
     location, revision, remember, possible_transports, pb)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3831, in _get_merger_from_branch
     other_revision_id, base_revision_id, other_branch, base_branch)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 219, in from_revision_ids
     merger.set_other_revision(other, other_branch)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 358, in set_other_revision
     self._maybe_fetch(other_branch, self.this_branch, self.other_rev_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 375, in _maybe_fetch
     target.fetch(source, revision_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 579, in fetch
     pb=pb)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1695, in fetch
     find_ghosts=find_ghosts, fetch_spec=fetch_spec)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3413, in fetch
     pb=pb, find_ghosts=find_ghosts)
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 81, in __init__
     self.__fetch()
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 107, in __fetch
     self._fetch_everything_for_search(search)
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 135, in _fetch_everything_for_search
     stream, from_format, [])
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4238, in insert_stream
     return self._locked_insert_stream(stream, src_format, is_resume)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 4271, in _locked_insert_stream
     self.target_repo.texts.insert_record_stream(substream)
   File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1608, in insert_record_stream
     for _ in self._insert_record_stream(stream, random_id=False):
   File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1714, in _insert_record_stream
     bytes = record.get_bytes_as('fulltext')
   File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 454, in get_bytes_as
     self._manager._prepare_for_extract()
   File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 554, in _prepare_for_extract
     self._block._ensure_content(self._last_byte)
   File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 198, in _ensure_content
     remaining_decomp, needed_bytes + _ZLIB_DECOMP_WINDOW)
 error: Error -3 while decompressing: incorrect data check

Tags: 2a
Revision history for this message
Jean-Francois Henrard (ubuntu-jfhenrard) wrote :
Revision history for this message
Martin Pool (mbp) wrote : Re: zlib error in _ensure_content

Looks a lot like bug 528793

description: updated
summary: - bzr crash when merge svn-import branch with another branch
+ zlib error in _ensure_content
tags: added: 2a
Revision history for this message
Martin Pool (mbp) wrote :

Could you attach a tarball of a small repository that reproduces this?

summary: - zlib error in _ensure_content
+ zlib error -3 while decompressing: incorrect data check in
+ _ensure_content
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
P. van der Velde (petrikvandervelde) wrote :
Download full text (4.1 KiB)

Got the same error. Stack trace is:

PS D:\documents\Petrik\documents\software\stylecopexplorer\code\unstable\v1>
bzr externals-add 'D:\repository\dev\tools\moq' tools/moq
Add external branch D:\repository\dev\tools\moq tools/moq
bzr: ERROR: zlib.error: Error -3 while decompressing data: incorrect data check

Traceback (most recent call last):
 File "bzrlib\commands.pyo", line 853, in exception_to_return_code
 File "bzrlib\commands.pyo", line 1055, in run_bzr
 File "bzrlib\commands.pyo", line 661, in run_argv_aliases
 File "bzrlib\commands.pyo", line 665, in run_direct
 File "bzrlib\cleanup.pyo", line 122, in run_simple
 File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
 File "C:/Program Files (x86)/Bazaar/plugins\externals\commands.py",
line 80, in run
 File "bzrlib\commands.pyo", line 1159, in run_bzr_catch_user_errors
 File "bzrlib\commands.pyo", line 1055, in run_bzr
 File "bzrlib\commands.pyo", line 661, in run_argv_aliases
 File "bzrlib\commands.pyo", line 665, in run_direct
 File "bzrlib\cleanup.pyo", line 122, in run_simple
 File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
 File "C:/Program Files (x86)/Bazaar/plugins\externals\commands.py",
line 202, in run
 File "bzrlib\builtins.pyo", line 1232, in run
 File "bzrlib\bzrdir.pyo", line 1182, in sprout
 File "bzrlib\repository.pyo", line 1704, in fetch
 File "bzrlib\decorators.pyo", line 194, in write_locked
 File "bzrlib\repository.pyo", line 3438, in fetch
 File "bzrlib\fetch.pyo", line 83, in __init__
 File "bzrlib\fetch.pyo", line 109, in __fetch
 File "bzrlib\fetch.pyo", line 137, in _fetch_everything_for_search
 File "bzrlib\repository.pyo", line 4279, in insert_stream
 File "bzrlib\repository.pyo", line 4380, in _locked_insert_stream
 File "bzrlib\repository.pyo", line 1563, in commit_write_group
 File "bzrlib\repofmt\pack_repo.pyo", line 2314, in _commit_write_group
 File "bzrlib\repofmt\pack_repo.pyo", line 2174, in _commit_write_group
 File "bzrlib\repofmt\pack_repo.pyo", line 1476, in autopack
 File "bzrlib\repofmt\pack_repo.pyo", line 1516, in _do_autopack
 File "bzrlib\repofmt\groupcompress_repo.pyo", line 693, in
_execute_pack_operations
 File "bzrlib\repofmt\pack_repo.pyo", line 761, in pack
 File "bzrlib\repofmt\groupcompress_repo.pyo", line 478, in
_create_pack_from_packs
 File "bzrlib\repofmt\groupcompress_repo.pyo", line 461, in _copy_text_texts
 File "bzrlib\repofmt\groupcompress_repo.pyo", line 402, in _copy_stream
 File "bzrlib\groupcompress.pyo", line 1704, in _insert_record_stream
 File "bzrlib\groupcompress.pyo", line 438, in get_bytes_as
 File "bzrlib\groupcompress.pyo", line 538, in _prepare_for_extract
 File "bzrlib\groupcompress.pyo", line 151, in _ensure_content
error: Error -3 while decompressing data: incorrect data check

bzr 2.1.1 on python 2.5.4 (Windows-Vista-6.1.7600)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe',
'externals-add', 'D:\\repository\\dev\\tools\\moq', 'tools/moq']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
 bookmarks C:\Program Files (x86)\Bazaar\plugins\bookmarks [unknown]
 bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [2.1.0]
 explorer C:\Program Files ...

Read more...

Changed in bzr:
importance: Low → High
Revision history for this message
Noah Silverman (noah-smartmediacorp) wrote :
Download full text (5.8 KiB)

I am seeing a very similar bug. Server is Fedora. "Remote" is OS X

When first checking out a BZR repository:

----------------------------------------------------
bzr checkout bzr+ssh://xxx.xxx.xxx.xxx/repo
bzr: ERROR: zlib.error: Error -3 while decompressing data: incorrect data check

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1328, in run
    accelerator_tree, hardlink)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1329, in create_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 962, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3200, in pull
    _override_hook_target=_override_hook_target)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3077, in pull
    overwrite=overwrite, graph=graph)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 910, in update_revisions
    overwrite, graph)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3020, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 593, in fetch
    pb=pb)
  File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line 1704, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line 3438, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 83, in __init__
    self.__fetch()
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 109, in __fetch
    self._fetch_everything_for_search(search)
  File "/Library/Python/2.6/site-packages/...

Read more...

Revision history for this message
Aaron Bentley (abentley) wrote :
Download full text (6.6 KiB)

I am getting this when pushing launchpad to a local instance of codehosting:
$ bzr push lp://dev/~name16/gnome-terminal/stable -r 11962 --use-existing
bzr: ERROR: zlib.error: Error -3 while decompressing: incorrect data check57055

Traceback (most recent call last):
  File "/home/abentley/bzr/bzr.dev/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/abentley/bzr/bzr.dev/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/home/abentley/bzr/bzr.dev/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/abentley/bzr/bzr.dev/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/abentley/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/abentley/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/abentley/bzr/bzr.dev/bzrlib/builtins.py", line 1134, in run
    use_existing_dir=use_existing_dir, no_tree=no_tree)
  File "/home/abentley/bzr/bzr.dev/bzrlib/push.py", line 91, in _show_push_branch
    no_tree=no_tree)
  File "/home/abentley/bzr/bzr.dev/bzrlib/branch.py", line 1405, in create_clone_on_transport
    no_tree=no_tree)
  File "/home/abentley/bzr/bzr.dev/bzrlib/bzrdir.py", line 251, in clone_on_transport
    result_repo.fetch(local_repo, fetch_spec=fetch_spec)
  File "/home/abentley/bzr/bzr.dev/bzrlib/remote.py", line 1382, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/home/abentley/bzr/bzr.dev/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/abentley/bzr/bzr.dev/bzrlib/repository.py", line 3431, in fetch
    find_ghosts=find_ghosts)
  File "/home/abentley/bzr/bzr.dev/bzrlib/fetch.py", line 73, in __init__
    self.__fetch()
  File "/home/abentley/bzr/bzr.dev/bzrlib/fetch.py", line 99, in __fetch
    self._fetch_everything_for_search(search)
  File "/home/abentley/bzr/bzr.dev/bzrlib/fetch.py", line 127, in _fetch_everything_for_search
    stream, from_format, [])
  File "/home/abentley/bzr/bzr.dev/bzrlib/remote.py", line 1843, in insert_stream
    (verb, path, resume_tokens) + lock_args, byte_stream)
  File "/home/abentley/bzr/bzr.dev/bzrlib/smart/client.py", line 181, in call_with_body_stream
    expect_response_body=False)
  File "/home/abentley/bzr/bzr.dev/bzrlib/smart/client.py", line 79, in _call_and_read_response
    readv_body=readv_body, body_stream=body_stream)
  File "/home/abentley/bzr/bzr.dev/bzrlib/smart/client.py", line 61, in _send_request
    encoder.call_with_body_stream((method, ) + args, body_stream)
  File "/home/abentley/bzr/bzr.dev/bzrlib/smart/protocol.py", line 1277, in _iter_with_errors
    yield None, iterator.next()
  File "/home/abentley/bzr/bzr.dev/bzrlib/smart/repository.py", line 510, in _stream_to_byte_stream
    serialised = record.get_bytes_as(record.storage_kind)
  File "/home/abentley/bzr/bzr.dev/bzrlib/groupcompress.py", line 454, in get_bytes_as
    return self._manager._wire_bytes()
  File "/home/abentley/bzr/bzr.de...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.