apport-gtk crashed with struct.error in read32(): unpack requires a bytes object of length 4

Bug #1017338 reported by Ricardo Filipe Moreira
202
This bug affects 46 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

just happened after logging in

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: apport-gtk 2.2.5-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-1.1-generic 3.5.0-rc3
Uname: Linux 3.5.0-1-generic i686
ApportLog:
 ERROR: apport (pid 1390) Mon Jun 25 05:13:19 2012: called for pid 1356, signal 11, core limit 0
 ERROR: apport (pid 1390) Mon Jun 25 05:13:19 2012: executable: /usr/lib/i386-linux-gnu/colord/colord (command line "/usr/lib/i386-linux-gnu/colord/colord")
 ERROR: apport (pid 1390) Mon Jun 25 05:13:19 2012: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
 ERROR: apport (pid 1390) Mon Jun 25 05:13:19 2012: apport: report /var/crash/_usr_lib_i386-linux-gnu_colord_colord.104.crash already exists and unseen, doing nothing to avoid disk usage DoS
ApportVersion: 2.2.5-0ubuntu1
Architecture: i386
CrashCounter: 1
Date: Mon Jun 25 05:15:03 2012
ExecutablePath: /usr/share/apport/apport-gtk
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120606.2)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/share/apport/apport-gtk
ProcEnviron:
 LANGUAGE=pt:pt_BR:en
 PATH=(custom, no user)
 LANG=pt_PT.UTF-8
 SHELL=/bin/bash
 TERM=unknown
PythonArgs: ['/usr/share/apport/apport-gtk']
SourcePackage: apport
Title: apport-gtk crashed with struct.error in read32(): unpack requires a bytes object of length 4
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Ricardo Filipe Moreira (ricardofavmoreira) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
col reilly (lupinehorror) wrote :

happened to me whilst trying to report another crash. clicked on the details button.

Revision history for this message
Elfy (elfy) wrote :

same here updated 12.10 Xubuntu

Revision history for this message
Martin Beltov (mbeltov) wrote :

Confirm with 12.10 ubuntu

Revision history for this message
Adam Bruce (brucey-99-deactivatedaccount) wrote :

Confirm. After updating system, apport tried to report another crash and then hit this bug.

Ubuntu 12.10

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

Ok, this might not be related, but today on my Lubuntu Quantal system, I was upgrading & updating. I had a problem with upgrading lxsession which required apt-get -f install to fix. Around the time I ran it, I got a crash report dialogue from Chromium, then apport ran and I ended up with this error.

Looking in /var/crash, for the given day, there is only one file, a 0-length _usr_bin_lxsession.1000.uploaded. Three days before (the last time I used the given system), there's also a 0-length _usr_bin_lxsession.1000.upload. That same day, there is a _usr_bin_lxsession.1000.crash, which seems to have the most relevant comment of `SegvAnalysis: Skipped: missing required field "Disassembly"` It also complains lxsession is not up to date.

So I don't know how this might relate except for that error, and sadly, outside of the .crash (which is not apport-gtk and is thus not relevant), I don't have any other data to provide. However, since I wasn't successful in creating a bug report and I'm not totally sure of what led to what happening, I'm not about to file a "just riding along" sort of bug report. So I hope that this information is in some way helpful here. If you need further information, please let me know.

Revision history for this message
Jaydip Guha (guha-jaydip) wrote :

Happened just after I rebooted post an update in 12.10

Revision history for this message
Saulo Soares de Toledo (saulotoledo) wrote :

After upgrade the system (12.10)

Revision history for this message
Ato Howard (obengjames48) wrote :

v 12.04 and 12.10 are so buggy :-(

Revision history for this message
Ato Howard (obengjames48) wrote :

try this guys
root@<user>:~# apt-get upgrade apport-gtk

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

The original traceback says:

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 516, 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 889, in collect_info
    icthread.exc_raise()
  File "/usr/lib/python3/dist-packages/apport/REThread.py", line 65, in exc_raise
    raise self._exception[0](self._exception[1]).with_traceback(self._exception[2])
  File "/usr/lib/python3/dist-packages/apport/REThread.py", line 35, in run
    self._retval = self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 59, in thread_collect_info
    report.add_gdb_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 605, 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

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

It has the same flow as in

https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1064357

and differes only in some line xxx ; not from content, only from number.

Because bug 1064357 has already got a priority as "High" by "jibel" I close this here as dublicate of jibels report, even when this here is older.

Revision history for this message
Sasa Paporovic (melchiaros) wrote :

When you have .crash files in your folder

/var/crash

that reproduce the problem for sure ,please attach them on bug 1064357

Thank you

melchiaros

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.