[Bug 1064357] Re: apport crashed with : struct.error: unpack requires a bytes object of length 4 in problem_report.py, line 75, in write
Marcus Tomlinson
marcus.tomlinson at canonical.com
Wed May 6 12:10:18 UTC 2020
This issue has sat incomplete for more than 60 days now. I'm going to
close it as invalid. Please feel free re-open if this is still an issue
for you. Thank you.
** Changed in: apport (Ubuntu)
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1064357
Title:
apport crashed with : struct.error: unpack requires a bytes object of
length 4 in problem_report.py, line 75, in write
Status in Python:
Fix Released
Status in apport package in Ubuntu:
Invalid
Bug description:
Quantal armhf up to date
Apport crashed with the error below following an apt-xapian-index
crash. apport crash file attached.
Traceback:
Traceback (most recent call last):
File "/usr/share/apport/apport-gtk", line 575, in <lambda>
GLib.idle_add(lambda: self.collect_info(on_finished=self.ui_update_view))
File "/usr/lib/python3/dist-packages/apport/ui.py", line 983, in collect_info
icthread.exc_raise()
File "/usr/lib/python3/dist-packages/apport/REThread.py", line 64, in exc_raise
raise self._exception[1].with_traceback(self._exception[2])
File "/usr/lib/python3/dist-packages/apport/REThread.py", line 34, in run
self._retval = self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python3/dist-packages/apport/ui.py", line 61, in thread_collect_info
report.add_gdb_info()
File "/usr/lib/python3/dist-packages/apport/report.py", line 652, in add_gdb_info
self['CoreDump'].write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 75, in write
block = gz.read(1048576)
File "/usr/lib/python3.2/gzip.py", line 343, in read
self._read(readsize)
File "/usr/lib/python3.2/gzip.py", line 405, in _read
self._read_eof()
File "/usr/lib/python3.2/gzip.py", line 437, in _read_eof
crc32 = read32(self.fileobj)
File "/usr/lib/python3.2/gzip.py", line 37, in read32
return struct.unpack("<I", input.read(4))[0]
struct.error: unpack requires a bytes object of length 4
It seems that apport showed up and started reporting the bug while the
crash file (apt-xapian-index in this case) was not completely written
to disk.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python/+bug/1064357/+subscriptions
More information about the foundations-bugs
mailing list