bzr crashed with ShortReadvError in _seek_and_read()

Bug #673439 reported by Jeroen T. Vermeulen
This bug report is a duplicate of:  Bug #413430: ShortReadvError on index file. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bzr

I guess my repository got damaged when my system froze up. I don't think I was doing anything particular to my repository just then, but it was quite a busy system so who knows. Filesystem is ext4.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
Uname: Linux 2.6.36-999-generic i686
NonfreeKernelModules: wl
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.2.1
CheckboxSubmission: e56271c144a9c8f9f675c77e2e4edb56
CheckboxSystem: 7e42599bda39ea7ff8b528272b6ef52b
CommandLine: ['/usr/bin/bzr', 'branch', 'lp:~launchpad/launchpad/recife']
CrashDb: bzr
Date: Wed Nov 10 17:36:46 2010
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InterpreterPath: /usr/bin/python2.6
Locale: en_US.UTF-8
Platform: Linux-2.6.36-999-generic-i686-with-Ubuntu-10.10-maverick
ProcCmdline: /usr/bin/python /usr/bin/bzr branch lp:~launchpad/launchpad/recife
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_TIME=en_DK.UTF-8
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with ShortReadvError in _seek_and_read()
UserEncoding: UTF-8
UserGroups: adm admin audio cdrom dialout lpadmin netdev plugdev pulse pulse-access sambashare video

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/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/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3448, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 73, in __init__
    self.__fetch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 95, in __fetch
    search = self._revids_to_fetch()
  File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 164, in _revids_to_fetch
    find_ghosts=self.find_ghosts)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1567, in search_missing_revision_ids
    revision_id, find_ghosts)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3514, in search_missing_revision_ids
    return self._walk_to_common_revisions([revision_id])
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3483, in _walk_to_common_revisions
    have_revs = set(target_graph.get_parent_map(revs_to_get))
  File "/usr/lib/python2.6/dist-packages/bzrlib/graph.py", line 167, in get_parent_map
    parent_map = self._get_parent_map(needed_revisions)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 2663, in get_parent_map
    self.revisions.get_parent_map(query_keys).iteritems():
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1313, in get_parent_map
    return self._get_parent_map_with_sources(keys)[0]
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1332, in _get_parent_map_with_sources
    new_result = source.get_parent_map(missing)
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1969, in get_parent_map
    for node in nodes:
  File "/usr/lib/python2.6/dist-packages/bzrlib/groupcompress.py", line 1941, in _get_entries
    for node in self._graph_index.iter_entries(keys):
  File "/usr/lib/python2.6/dist-packages/bzrlib/index.py", line 1358, in iter_entries
    for node in index.iter_entries(keys):
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1144, in iter_entries
    if not self.key_count():
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1426, in key_count
    self._get_root_node()
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 922, in _get_root_node
    self._get_internal_nodes([0])
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 947, in _get_internal_nodes
    return self._get_nodes(self._internal_node_cache, node_indexes)
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 939, in _get_nodes
    found.update(self._get_and_cache_nodes(needed))
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 716, in _get_and_cache_nodes
    for node_pos, node in self._read_nodes(sorted(nodes)):
  File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1540, in _read_nodes
    for offset, data in data_ranges:
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 704, in _seek_and_read
    c_offset.length, actual=len(data))
ShortReadvError: readv() read 0 bytes rather than 508 bytes at 0 for "2bd3fe9aa214e4ed2cfa12fa3250e615.rix"

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp)
description: updated
Martin Pool (mbp)
visibility: private → public
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.