[Bug 4601] New: Crash (traceback) on invalid bundle

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Apr 16 18:17:37 UTC 2015


http://bz.selenic.com/show_bug.cgi?id=4601

          Priority: normal
            Bug ID: 4601
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Crash (traceback) on invalid bundle
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: mathias.demare at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: earlier
         Component: Mercurial
           Product: Mercurial

Created attachment 1825
  --> http://bz.selenic.com/attachment.cgi?id=1825&action=edit
Sample bundle on which the crash occurs.

$ hg log -R results/crashes/id\:000003\,sig\:10\,src\:000000\,op\:flip1\,pos\:6
Traceback (most recent call last):
  File "/home/mathias/env/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/dispatch.py",
line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/dispatch.py",
line 71, in dispatch
    ret = _runcatch(req)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/dispatch.py",
line 140, in _runcatch
    return _dispatch(req)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/dispatch.py",
line 830, in _dispatch
    repo = hg.repository(ui, path=path)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/hg.py", line
128, in repository
    peer = _peerorrepo(ui, path, create)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/hg.py", line
115, in _peerorrepo
    obj = _peerlookup(path).instance(ui, path, create)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/bundlerepo.py",
line 351, in instance
    return bundlerepository(ui, repopath, bundlename)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/bundlerepo.py",
line 232, in __init__
    chunk = self.bundle.read(2**18)
  File
"/home/mathias/env/lib/python2.7/site-packages/mercurial/changegroup.py", line
169, in read
    return self._stream.read(l)
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/util.py", line
1206, in read
    for chunk in self.iter:
  File "/home/mathias/env/lib/python2.7/site-packages/mercurial/util.py", line
1182, in splitbig
    for chunk in chunks:
  File
"/home/mathias/env/lib/python2.7/site-packages/mercurial/changegroup.py", line
153, in generator
    yield zd.decompress(chunk)
IOError: invalid data stream

The bundle was generated by running python-afl on a basic bundle (single
changeset, empty file).
The crash occurs both on 3.3.3 and on 2.0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list