apport-gtk crashes when the crash report is not writable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apport
(Was: apport-gtk crashed with IOError in delete_report().)
Bug #129146 is about handling the case when the crash report is not readable. I stumbled upon another bug in apport where it crashes while trying to write to a .crash file that is not writable.
Has this problem been reported already? I couldn't find any existing bugs on it.
How to reproduce:
1. Crash a program running with root privileges. I used bug #67995 to crash Synaptic.
2. Find the fresh report in /var/crash and change its group and permissions so that it is readable but not writable by your current user:
$ cd /var/crash
$ sudo chgrp username _usr_sbin_
$ sudo chmod g+r _usr_sbin_
3. Open the crash report under your current user.
Step one can actually be omitted, but this scenario is intended to show how you can run into this problem in real life. When I did, I didn't realize that apport needed to write to the crash report in order to send it.
ProblemType: Crash
Architecture: i386
CrashReports:
640:0:
600:1001:
Date: Wed Mar 5 02:48:15 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.5
Package: apport-gtk 0.98
PackageArchitec
ProcCmdline: /usr/bin/python /usr/share/
ProcCwd: /home/users/alexkon
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: apport
Title: apport-gtk crashed with IOError in delete_report()
Uname: Linux chronos 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
Thank you for your bug report.
This appears to be a duplicate of bug 195750, which was marked private until now.
I'm marking it as such.