Activity log for bug #198543

Date Who What changed Old value New value Message
2008-03-04 21:56:06 Till Ulen bug added bug
2008-03-04 21:56:06 Till Ulen bug added attachment 'ApportLog.txt' (ApportLog.txt)
2008-03-04 21:56:06 Till Ulen bug added attachment 'Dependencies.txt' (Dependencies.txt)
2008-03-04 21:56:06 Till Ulen bug added attachment 'ProcMaps.txt' (ProcMaps.txt)
2008-03-04 21:56:06 Till Ulen bug added attachment 'ProcStatus.txt' (ProcStatus.txt)
2008-03-04 21:56:06 Till Ulen bug added attachment 'Traceback.txt' (Traceback.txt)
2008-03-04 21:59:59 Apport retracing service bug added subscriber Crash bug triagers for universe packages
2008-03-04 22:02:24 Till Ulen description Binary package hint: apport Bug #129146 is about handling the case when the crash report is not readable. But #198526 is about the case when it is readable but not writable. I stumbled upon yet another bug in apport where it crashes while processing a report that is both readable and writable but is not owned by the current user. After the crash the original report is *destroyed*. The file is truncated to zero length. How to reproduce: 1. Crash a program running with root privileges. I used bug #67995 to crash Synaptic. 2. Find the newly created report in /var/crash and change its group and permissions so that it is readable and writable by your current user, but root is still the owner: $ cd /var/crash $ ls -l _usr_sbin_synaptic.0.crash -rw------- 1 root root 5152387 2008-03-05 02:23 _usr_sbin_synaptic.0.crash $ sudo chgrp username _usr_sbin_synaptic.0.crash $ sudo chmod g+rw _usr_sbin_synaptic.0.crash 3. Open the crash report under your current user. Apport will crash. 4. The original crash report is now erased: $ ls -l _usr_sbin_synaptic.0.crash -rw-rw---- 1 root username 0 2008-03-05 03:30 _usr_sbin_synaptic.0.crash 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 it was not enough to give apport read and write permissions to the crash report in order to send it. The traceback for this bug coincides with that of bug #147113. I don't know whether they are the same problem or two different problems with similar symptoms. As for bug #151678, which is a duplicate of #147113, please note the unusual permissions of the report that caused apport to crash: <http://launchpadlibrarian.net/9947596/CrashReports.txt> 0:0:0:0:2007-10-11 12:51:04.000000000 -0700:2007-10-11 12:56:38.000000000 -0700:/var/crash/_usr_lib_gnome-applets_mixer_applet2.0.crash The mode is 0, nobody has any permissions for that file. Hope this helps. ProblemType: Crash Architecture: i386 CrashReports: 660:0:1001:0:2008-03-05 03:30:44.000000000 +0600:2008-03-05 02:21:45.000000000 +0600:/var/crash/_usr_sbin_synaptic.0.crash 600:1001:1001:17929:2008-03-05 03:30:43.000000000 +0600:2008-03-05 03:30:44.000000000 +0600:/var/crash/_usr_share_apport_apport-gtk.1001.crash Date: Wed Mar 5 03:30:44 2008 DistroRelease: Ubuntu 7.10 ExecutablePath: /usr/share/apport/apport-gtk InterpreterPath: /usr/bin/python2.5 Package: apport-gtk 0.98 PackageArchitecture: all ProcCmdline: /usr/bin/python /usr/share/apport/apport-gtk -c /var/crash/_usr_sbin_synaptic.0.crash ProcCwd: /home/users/alexkon ProcEnviron: PATH=/home/users/alexkon/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_US.UTF-8 SHELL=/bin/bash PythonArgs: ['/usr/share/apport/apport-gtk', '-c', '/var/crash/_usr_sbin_synaptic.0.crash'] SourcePackage: apport Title: apport-gtk crashed with KeyError in __getitem__() Uname: Linux chronos 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux Binary package hint: apport Bug #129146 is about handling the case when the crash report is not readable. Bug #198526 is about the case when it is readable but not writable. I stumbled upon yet another bug in apport where it crashes while processing a report that is both readable and writable but is not owned by the current user. After the crash the original report is *destroyed*. The file is truncated to zero length. How to reproduce: 1. Crash a program running with root privileges. I used bug #67995 to crash Synaptic. 2. Find the newly created report in /var/crash and change its group and permissions so that it is readable and writable by your current user, but root is still the owner: $ cd /var/crash $ ls -l _usr_sbin_synaptic.0.crash -rw------- 1 root root 5152387 2008-03-05 02:23 _usr_sbin_synaptic.0.crash $ sudo chgrp username _usr_sbin_synaptic.0.crash $ sudo chmod g+rw _usr_sbin_synaptic.0.crash 3. Open the crash report under your current user. Apport will crash. 4. The original crash report is now erased: $ ls -l _usr_sbin_synaptic.0.crash -rw-rw---- 1 root username 0 2008-03-05 03:30 _usr_sbin_synaptic.0.crash 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 it was not enough to give apport read and write permissions to the crash report in order to send it. The traceback for this bug coincides with that of bug #147113. I don't know whether they are the same problem or two different problems with similar symptoms. As for bug #151678, which is a duplicate of #147113, please note the unusual permissions of the report that caused apport to crash: <http://launchpadlibrarian.net/9947596/CrashReports.txt> 0:0:0:0:2007-10-11 12:51:04.000000000 -0700:2007-10-11 12:56:38.000000000 -0700:/var/crash/_usr_lib_gnome-applets_mixer_applet2.0.crash The mode is 0, nobody has any permissions for that file. Hope this helps. ProblemType: Crash Architecture: i386 CrashReports: 660:0:1001:0:2008-03-05 03:30:44.000000000 +0600:2008-03-05 02:21:45.000000000 +0600:/var/crash/_usr_sbin_synaptic.0.crash 600:1001:1001:17929:2008-03-05 03:30:43.000000000 +0600:2008-03-05 03:30:44.000000000 +0600:/var/crash/_usr_share_apport_apport-gtk.1001.crash Date: Wed Mar 5 03:30:44 2008 DistroRelease: Ubuntu 7.10 ExecutablePath: /usr/share/apport/apport-gtk InterpreterPath: /usr/bin/python2.5 Package: apport-gtk 0.98 PackageArchitecture: all ProcCmdline: /usr/bin/python /usr/share/apport/apport-gtk -c /var/crash/_usr_sbin_synaptic.0.crash ProcCwd: /home/users/alexkon ProcEnviron: PATH=/home/users/alexkon/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_US.UTF-8 SHELL=/bin/bash PythonArgs: ['/usr/share/apport/apport-gtk', '-c', '/var/crash/_usr_sbin_synaptic.0.crash'] SourcePackage: apport Title: apport-gtk crashed with KeyError in __getitem__() Uname: Linux chronos 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
2008-11-30 03:25:56 Daniel T Chen apport: status New Confirmed
2008-11-30 03:25:56 Daniel T Chen apport: statusexplanation
2009-04-09 08:47:49 Till Ulen removed subscriber Alexander Konovalenko
2009-09-02 15:49:04 Martin Pitt apport (Ubuntu): status Confirmed Fix Committed
2009-09-02 15:49:04 Martin Pitt apport (Ubuntu): assignee Martin Pitt (pitti)
2009-09-02 15:50:19 Launchpad Janitor branch linked lp:apport
2009-09-03 19:05:38 Launchpad Janitor branch linked lp:~ubuntu-core-dev/ubuntu/karmic/apport/ubuntu
2009-09-03 19:10:08 Launchpad Janitor apport (Ubuntu): status Fix Committed Fix Released
2012-07-06 05:23:24 Launchpad Janitor branch linked lp:ubuntu/karmic/apport