apport-gtk crashed with IOError in mark_report_seen()
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/
InterpreterPath: /usr/bin/python2.5
NonfreeKernelMo
Package: apport-gtk 0.93
PackageArchitec
ProcCmdline: /usr/bin/python /usr/share/
ProcCwd: /home/alec
ProcEnviron:
PATH=/
LANG=en_GB.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
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
Changed in apport: | |
status: | New → Confirmed |
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: open(filename)
file=open(filename)
with:
try:
-->file=
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)