apport-gtk crashes when reporting a bug for saved crash file

Bug #1226140 reported by Omer Akram
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

I gathered apport logs with 'apport-cli camera-app' on the phone and pulled it on my computer and tried 'ubuntu-bug camera.apport' the report crash window appears but when I clicked 'Continue' it crashes and terminal shows:

om26er@TM8473T:~/Documents$ ubuntu-bug camera.apport
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 590, in <module>
    app.run_argv()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 662, in run_argv
    self.run_crash(self.options.crash_file, False)
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 296, in run_crash
    self.restart()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 882, in restart
    assert 'ProcCmdline' in self.report
AssertionError

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: apport 2.12.1-0ubuntu4
ProcVersionSignature: Ubuntu 3.11.0-7.13-generic 3.11.0
Uname: Linux 3.11.0-7-generic i686
NonfreeKernelModules: wl
ApportVersion: 2.12.1-0ubuntu4
Architecture: i386
Date: Mon Sep 16 22:17:43 2013
InstallationDate: Installed on 2013-06-07 (100 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130606.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Omer Akram (om26er) wrote :
Revision history for this message
Omer Akram (om26er) wrote :

attached the sample log file which caused the crash

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

I cannot reproduce the crash with attached file. I do "ubuntu-bug /tmp/camera.apport", it shows me the dialog, and it happily uploads the data to LP. I wonder why it's trying to restart the process on the reporting system, do you actually have camera-app installed there? That seems to be the only path in the code where this could happen.

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

I understand what's going on here, thanks for reporting! Created a test case for this and a fix in trunk r2698.

Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: New → Fix Committed
Revision history for this message
Omer Akram (om26er) wrote : Re: [Bug 1226140] Re: apport-gtk crashes when reporting a bug for saved crash file

That seems to be the case. I had camera-app installed on the desktop, If I
remove it from my desktop I can report bugs fine. There, this is what needs
fixing, I guess.

On Tue, Sep 17, 2013 at 12:41 AM, Martin Pitt <email address hidden>wrote:

> I cannot reproduce the crash with attached file. I do "ubuntu-bug
> /tmp/camera.apport", it shows me the dialog, and it happily uploads the
> data to LP. I wonder why it's trying to restart the process on the
> reporting system, do you actually have camera-app installed there? That
> seems to be the only path in the code where this could happen.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1226140
>
> Title:
> apport-gtk crashes when reporting a bug for saved crash file
>
> Status in “apport” package in Ubuntu:
> New
>
> Bug description:
> I gathered apport logs with 'apport-cli camera-app' on the phone and
> pulled it on my computer and tried 'ubuntu-bug camera.apport' the
> report crash window appears but when I clicked 'Continue' it crashes
> and terminal shows:
>
> om26er@TM8473T:~/Documents$ ubuntu-bug camera.apport
> Traceback (most recent call last):
> File "/usr/share/apport/apport-gtk", line 590, in <module>
> app.run_argv()
> File "/usr/lib/python3/dist-packages/apport/ui.py", line 662, in
> run_argv
> self.run_crash(self.options.crash_file, False)
> File "/usr/lib/python3/dist-packages/apport/ui.py", line 296, in
> run_crash
> self.restart()
> File "/usr/lib/python3/dist-packages/apport/ui.py", line 882, in
> restart
> assert 'ProcCmdline' in self.report
> AssertionError
>
> ProblemType: Bug
> DistroRelease: Ubuntu 13.10
> Package: apport 2.12.1-0ubuntu4
> ProcVersionSignature: Ubuntu 3.11.0-7.13-generic 3.11.0
> Uname: Linux 3.11.0-7-generic i686
> NonfreeKernelModules: wl
> ApportVersion: 2.12.1-0ubuntu4
> Architecture: i386
> Date: Mon Sep 16 22:17:43 2013
> InstallationDate: Installed on 2013-06-07 (100 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386
> (20130606.1)
> MarkForUpload: True
> PackageArchitecture: all
> SourcePackage: apport
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1226140/+subscriptions
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.12.2-0ubuntu1

---------------
apport (2.12.2-0ubuntu1) saucy; urgency=low

  * New upstream bug fix release. Changes since previous snapshot:
    - crash-digger: Write pid into lock file. Thanks Steve Langasek.
    - apport-gtk: When loading a Bug report from a file, properly set up for
      bug reporting mode. (LP: #1226140)
    - Move "program is not installed any more" check from report loading into
      data collection, so that crash reports can be moved and reported on
      machines without that program installed. (LP: #1226030)
  * data/general-hooks/ubuntu.py: Add output of "system-image-info -i" to
    reports as field "SystemImageInfo", to better identify phablet builds.
    (LP: #1225113)
  * Add gdb-minimal dependency to apport-noui, as for crashes we always need a
    StacktraceAddressSignature at least. (part of LP #1226030)
 -- Martin Pitt <email address hidden> Tue, 17 Sep 2013 16:25:55 -0500

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
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.