Comment 6 for bug 413430

Revision history for this message
dbmcclain (dbm-refined-audiometrics) wrote : Re: [Bug 413430] Re: ShortReadvError on tix file

Hi Martin,

There seems to be no problem... I reran the BZR commit just after
getting the error message both times, and it appears to be okay. I
retrieved the lastest commits to other machines just fine.

I wonder if we are running up against size boundaries in the code. I
understand that BZR is written in Python, which means C or C++... Not
quite the capabilities I have with my Lisp systems...

- DM

On Aug 14, 2009, at 03:29 AM, Martin Pool wrote:

> Could you please run 'md5sums *' in the packs directory and check all
> the packs are consistent with their filenames?
>
> I'd like to get to the bottom of this but in the interim you might
> find it more reliable to use sftp or ssh.
>
> If that file has been truncated after bzr wrote it out I'm not sure if
> we'll be able to recover that data from other files in the repository.
> The problem here is to do with reading back data that's already been
> written, not with the commit itself. If you can easily go back to a
> recent backup that'd probably be the best thing; you could also run
> 'bzr check' on a copy from the backup.
>
> --
> Martin <http://launchpad.net/~mbp/>
>
> --
> ShortReadvError on tix file
> https://bugs.launchpad.net/bugs/413430
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Incomplete
>
> Bug description:
> bash-3.2$ bzr commit -m "Mach compiler improvements, Bfly recv takes
> an optional argument for the received message"
> Committing to: /Volumes/Repository/srv/bzr/Lispworks/
> modified Butterfly/Source/Keep-Alive.lisp
> modified Butterfly/Source/Standard-Server.lisp
> modified Butterfly/Source/bfly-mailbox.lisp
> modified Butterfly/Source/bfly-message.lisp
> modified Butterfly/Source/bfly-socket2.lisp
> modified Butterfly/Source/bfly-spawn.lisp
> modified Butterfly/Source/fru-replace-code.lisp
> modified Okeanos/lock-daemon.lisp
> modified Okeanos/remote-access.lisp
> modified tools/useful-macros/match-macro-ex-opt.lisp
> bzr: ERROR: bzrlib.errors.ShortReadvError: readv() read 268 bytes
> rather than 4096 bytes at 171764 for
> "d0580144782295bf6f36ded8f1415669.tix"
>
> Traceback (most recent call last):
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 729, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 924, in run_bzr
> ret = run(*run_argv)
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 560, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line
> 2937, in run
> exclude=safe_relpath_files(tree, exclude))
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/workingtree_4.py",
> line 226, in commit
> result = WorkingTree3.commit(self, message, revprops, *args,
> **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py",
> line 228, in commit
> *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/commit.py", line
> 397, in commit
> self.branch.repository, new_revno, self.rev_id)
> File "/Library/Python/2.5/site-packages/bzrlib/branch.py", line
> 821, in import_last_revision_info
> self.repository.fetch(source_repo, revision_id=revid)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 1553, in fetch
> find_ghosts=find_ghosts, fetch_spec=fetch_spec)
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 3514, in fetch
> return self._pack(self.source, self.target, revision_ids)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 3520, in _pack
> revision_ids).pack()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 753, in pack
> return self._create_pack_from_packs()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 943, in _create_pack_from_packs
> new_pack._check_references()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 189, in _check_references
> index.iter_entries(external_refs))
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 188, in <genexpr>
> k for (idx, k, v, r) in
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line
> 1258, in iter_entries
> for node in index.iter_entries(keys):
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line 626,
> in iter_entries
> self._lookup_keys_via_location, self._size, keys))
> File "/Library/Python/2.5/site-packages/bzrlib/bisect_multi.py",
> line 50, in bisect_multi_bytes
> search_results = content_lookup(search_keys)
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line 769,
> in _lookup_keys_via_location
> self._read_and_parse(readv_ranges)
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line
> 1138, in _read_and_parse
> for offset, data in readv_data:
> File "/Library/Python/2.5/site-packages/bzrlib/transport/
> __init__.py", line 701, in _seek_and_read
> c_offset.length, actual=len(data))
> ShortReadvError: readv() read 268 bytes rather than 4096 bytes at
> 171764 for "d0580144782295bf6f36ded8f1415669.tix"
>
> bzr 1.16.1 on python 2.5.1 (darwin)
> arguments: ['/usr/local/bin/bzr', 'commit', '-m', 'Mach compiler
> improvements, Bfly recv takes an optional argument for the received
> message']
> encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
> plugins:
> bzrtools /Library/Python/2.5/site-packages/bzrlib/
> plugins/bzrtools [1.16]
> email /Library/Python/2.5/site-packages/bzrlib/
> plugins/email [unknown]
> extmerge /Library/Python/2.5/site-packages/bzrlib/
> plugins/extmerge [unknown]
> launchpad /Library/Python/2.5/site-packages/bzrlib/
> plugins/launchpad [1.16.1]
> loom /Library/Python/2.5/site-packages/bzrlib/
> plugins/loom [1.4dev]
> netrc_credential_store /Library/Python/2.5/site-packages/bzrlib/
> plugins/netrc_credential_store [1.16.1]
> qbzr /Library/Python/2.5/site-packages/bzrlib/
> plugins/qbzr [0.11]
> rebase /Library/Python/2.5/site-packages/bzrlib/
> plugins/rebase [0.5.1]
> search /Library/Python/2.5/site-packages/bzrlib/
> plugins/search [1.7dev]
> svn /Library/Python/2.5/site-packages/bzrlib/
> plugins/svn [0.6.2]
> *** 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.
>

Dr. David McClain
<email address hidden>