package_hook should disallow filing some bugs

Bug #328751 reported by Brian Murray
4
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: apport

I've seen some apport-package bug reports recently that contain the following lines:

Setting up linux-image-2.6.27-7-generic (2.6.27-7.16) ...
Running depmod.
update-initramfs is disabled since running on a live CD
Failed to symbolic-link /boot/initrd.img-2.6.27-7-generic to initrd.img.
dpkg: error processing linux-image-2.6.27-7-generic (--configure):
 subprocess post-installation script returned error exit status 17
Setting up linux-image-2.6.27-9-generic (2.6.27-9.19) ...

It'd be helpful if apport were to detect that part in the log (update-initramfs is disabled) and then prevent the bug from being filled in Launchpad.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 328751] [NEW] package_hook should disallow filing some bugs

Hello Brian,

Launchpad Bug Tracker [2009-02-19 17:43 -0000]:
> It'd be helpful if apport were to detect that part in the log (update-
> initramfs is disabled) and then prevent the bug from being filled in
> Launchpad.

I agree. Do you have an example bug number, so that I can test it
properly?

Thanks,

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Brian Murray (brian-murray) wrote :

Silly me, I should have added the bug in the beginning. Both bug 292159 and bug 292136 are similar although they are on a usb drive.

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

IMHO this should become a bug pattern on

  SourcePackage: linux
  DpkgTerminalLog.txt: ^update-initramfs is disabled

Changed in apport:
assignee: nobody → pitti
importance: Undecided → High
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Tested with:

# Download #292911 into a .crash file:
$ python -c "from apport.crashdb import get_crashdb; get_crashdb(None).download(292911).write(open('/tmp/linux.crash', 'w'))"
# Process it:
/usr/share/apport/apport-gtk -c /tmp/linux.crash

I added a bug pattern for this crash: http://bazaar.launchpad.net/%7Eubuntu-bugcontrol/apport/ubuntu-bugpatterns/revision/17

I also had to fix the handling of bug patterns in apport itself, apparently people.ubuntu.com changed behaviour for 404:
http://bazaar.launchpad.net/%7Eubuntu-core-dev/apport/ubuntu/revision/1266

Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 0.134

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

  * debian/local/apport-collect: Do not collect information for closed
    tasks. Thanks for Brian Murray for the initial patch! (LP: #331839)
  * apport/crashdb_impl/launchpad.py, download(): Download
    DpkgTerminalLog.txt attachment as well.
  * apport/report.py: If downloading a nonexisting bug pattern file
    name succeeds and returns a HTML snippet with "404 Not Found",
    consider this as failure. This repairs falling back to source
    package names. (LP: #328751)
  * apport/hookutils.py: Replace tabs with spaces.

 -- Martin Pitt <email address hidden> Fri, 20 Feb 2009 11:22:15 +0100

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.