"ubuntu-bug -u $BUG" not working, but "apport-{kde,gtk} -u $BUG"

Bug #532944 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apport

While "/usr/share/apport/apport-kde -u 532898" does work as expected, "ubuntu-bug -u 532898" opens the "report by symptom" dialog.

This is related to
  export APPORT_INVOKED_AS="$0"
in /usr/bin/ubuntu-bug - commenting this line makes "-u" work as expected, too.

After digging into the code (apport/ui.py) this is caused by:
        # no argument: default to "show pending crashes" except when called in
        # bug mode
        if len(self.args) == 0 and cmd.endswith('-bug'):
            self.options.filebug = True
            return
self.args is empty in most cases, and what's meant to get checked here is apparently sys.argv.

I'll attach a branch to fix this.

ProblemType: Bug
Architecture: i386
Date: Fri Mar 5 21:40:43 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: apport 1.12.1-0ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-15.22-generic
SourcePackage: apport
Uname: Linux 2.6.32-15-generic i686

Related branches

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

Nice catch, thanks! Applied to trunk (r1717), thus I didn't merge your branch directly (it doesn't apply to trunk).

Changed in apport (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Daniel Hahler (blueyed) wrote :

Martin: there are two branches: one for trunk and one for the lucid packaging. I guess you've merged the latter in the former?!

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

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

---------------
apport (1.13-0ubuntu1) lucid; urgency=low

  * New upstream release:
    - Add "unkillable_shutdown" script to collect information about processes
      which are still running after sending SIGTERM to them. This can be
      hooked into e. g. /etc/init.d/sendsigs on Debian/Ubuntu systems.
    - apport_python_hook.py: Directly check /etc/default/apport instead of
      querying packaging.enabled(), to avoid importing lots of modules for
      non-packaged scripts. Thanks Stuart Colville! (LP: #528355)
    - Fix SegV parser to notice walking off the stack during "call" or "ret"
      (LP: #531672).
    - Fix --help output for bug updating mode (invocation as apport-collect or
      apport-update-bug). (LP: #504116)
    - Fix bug escalation tagging, thanks to Brian Murray.
    - Fix option processing when being invoked as apport-bug. Thanks to Daniel
      Hahler for the patch! (LP: #532944)
  * debian/apport.install: Install unkillable_shutdown.
 -- Martin Pitt <email address hidden> Thu, 11 Mar 2010 08:42:05 +0100

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.