apport-gtk crashed with IOError in mark_report_seen()

Bug #129146 reported by Alec Wright
220
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apport

This crash happened (ironically) when I was opening a crash report. I will attach the crash report which crashed it.
I'm using gutsy.

ProblemType: Crash
Architecture: i386
Date: Sun Jul 29 23:56:34 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/share/apport/apport-gtk
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: apport-gtk 0.93
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/share/apport/apport-gtk -c /home/alec/_usr_bin_gdebi-gtk.0.crash
ProcCwd: /home/alec
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/apport/apport-gtk', '-c', '/home/alec/_usr_bin_gdebi-gtk.0.crash']
SourcePackage: apport
Title: apport-gtk crashed with IOError in mark_report_seen()
Uname: Linux alecomp 2.6.22-8-generic #1 SMP Thu Jul 12 15:59:45 GMT 2007 i686 GNU/Linux

Tags: apport-crash
Revision history for this message
Alec Wright (alecjw) wrote :
Revision history for this message
Alec Wright (alecjw) wrote :
Revision history for this message
Alec Wright (alecjw) wrote :

Ok, I've worked out why it happened. I didn't have read-access to the crash report (until i chmodded it to upload it to launchpad), hence resulting in an IOError. All you need to do (i think) is replace the original:
file=open(filename)
with:
try:
-->file=open(filename)
except IOError:
-->#display some sort of graphical error message saying soemthing like: "The file could not be accessed. Please ensure that oyu have read access to it."
-->exit()

(I've used --> to symbolise indents)

Changed in apport:
status: New → Confirmed
Revision history for this message
Aurel Branzeanu (thunder-riscom) wrote :

This crash just happened on my Gutsy when trying to send an incomplete crash report.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

To summarize, this bug will happen every time :
An admin user that has the automatic apport-gtk bug reporting activated, as he is logged, has an admin application crash. Apport will try reading the report file , but this one is not readable by the user itself (but only by the root and not even by the admin group) .

This can be understandable : as there is sometimes personal informations in the bug report so the choice must be only to the owner to send or not the bug report.

At the and the solution Alec proposed is the right one.

Revision history for this message
Ken Benseman (matlow) wrote :

I have been getting the seem problem.
I have also noted that it happens when trying to report a file where the ownership permission is set to root.
There is no request for the root password, just a crash.
I can report the file when I change the permission.

Revision history for this message
miked (miked11) wrote :

52 crash files involved

Revision history for this message
miked (miked11) wrote :

error message when trying to view crash report without root.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

A fix has been committed in apport 0.99 on hardy.

We need a backport of that fix.

Best regards

Changed in apport:
status: Confirmed → Fix Committed
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

forgot to give the ID of the bug that fixed it : Bug #146464

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in Hardy (see bug 146464).

Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
dorcap (dorcap) wrote :

I have nothin to add

Revision history for this message
Payteer (prowan) wrote :

I got this when opening another crash report also

Revision history for this message
miked (miked11) wrote :

user without admin access trying to report user with admin access crash file

Revision history for this message
miked (miked11) wrote :

screen shot of crash file resulting from trying to auto-report first crash file by double-clicking on it.
jill@tower-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
jill@tower-desktop:~$

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.