ubuntu-bug should handle .crash files

Bug #347392 reported by Ara Pulido
4
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Wishlist
Martin Pitt

Bug Description

Binary package hint: apport

ara@sushirider:~/curro/udt/ubuntu-desktop-testing$ apt-cache policy apport
apport:
  Installed: 0.145
  Candidate: 0.145
  Version table:
 *** 0.145 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

When running ubuntu-bug with the -c option, it ignores it and just ask for a PID or a package name.

Running apport-cli with the -c option works correctly.

Revision history for this message
Ara Pulido (ara) wrote : apport-collect data

Architecture: i386
CrashReports:
 600:1000:1000:8693:2009-03-23 17:30:41.000000000 +0100:2009-03-23 17:30:46.000000000 +0100:/var/crash/_usr_bin_apport-collect.1000.crash
 600:1000:1000:36190:2009-03-16 08:37:37.000000000 +0100:2009-03-16 08:37:44.000000000 +0100:/var/crash/_usr_bin_update-manager.1000.crash
 600:1000:1000:5384842:2009-03-16 08:58:04.000000000 +0100:2009-03-16 12:05:15.000000000 +0100:/var/crash/_usr_bin_pidgin.1000.crash
 600:1000:1000:515818:2009-03-23 16:52:35.000000000 +0100:2009-03-23 17:04:59.000000000 +0100:/var/crash/_usr_bin_ldtp.1000.crash
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: apport 0.145
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_NZ.UTF-8
Uname: Linux 2.6.28-10-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Ara Pulido (ara) wrote :
Revision history for this message
Ara Pulido (ara) wrote :
Revision history for this message
Philip Muškovac (yofel) wrote : Re: ubuntu-bug ignores the -c option

Confirmed that the ubuntu-bug script doesn't know about the -c option.
I also noticed something else:
When I run ubuntu-bug --help I get the help output with following usage description:

Usage: apport-gtk [options]

I then tried running apport-gtk in the terminal to check the output and got:

-bash: apport-gtk: command not found

after that I double checked the script and found that apport-gtk is not in a PATH directory but instead in /usr/share/apport/ . I don't know if there is a reason for this, but ubuntu-bug should not give a cli usage description of something that can't be found in PATH. (note: apport-cli is in /usr/bin/ like it should).

Changed in apport:
status: New → Confirmed
Changed in apport (Ubuntu):
importance: Undecided → Medium
Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: Confirmed → Triaged
Martin Pitt (pitti)
Changed in apport (Ubuntu):
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

ubuntu-bug passes through -c just fine. However, calling apport-{gtk,kde,cli} with -f -c is invalid, since -f means "file a bug" while "-c" means "report a crash". The UI can only be invoked in one mode.

I'll change "ubuntu-bug /path/to/foo.crash" to do the right thing.

summary: - ubuntu-bug ignores the -c option
+ ubuntu-bug should handle .crash files
Changed in apport (Ubuntu):
importance: Medium → Wishlist
Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 0.148

---------------
apport (0.148) jaunty; urgency=low

  [ Matt Zimmerman ]
  * apport/hookutils.py: add attach_media_build to include information about
    the build of installation media in use (i.e. in a casper live CD
    environment)
  * general-hooks/ubuntu.py: use attach_media_build (LP: #351781)
  * bin/apportcheckresume: Use attach_file_if_exists rather than attach_file to
    avoid spurious error messages about non-existent log files (LP: #351973)

  [ Martin Pitt ]
  * debian/local/ubuntu-bug: Drop generic passthrough of apport-{cli,gtk,kde}
    options since this leads to too much confusion. Instead just support a
    single argument and check whether it is a pid, a package name, a .crash
    file, or a program path. This does the right thing when calling it with a
    .crash file (LP: #347392) and fixes the help output (LP: #344923) Update
    manpage accordingly.
  * apport/hookutils.py: Move attach_media_build() to
    general-hooks/ubuntu.py, since it is Ubuntu specific.
  * bin/apport-retrace: Fix KeyError crash on bugs with an ExecutablePath
    which does not exist any more. Close the bug as invalid instead.
    (LP: #352331)
  * bin/kernel_oops: Add "kernel-oops" tag. Since both bin/kernel_oops and
    bin/apportcheckresume use the "kerneloops" bug class, it previously was
    hard to filter out the bug reports which were real oopses. (LP: #349621)

 -- Martin Pitt <email address hidden> Wed, 01 Apr 2009 18:10:01 +0200

Changed in apport:
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.