package_hook doesn't check bug patterns

Bug #776766 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: apport

update-manager calls /usr/share/apport/package_hook during a distribution upgrade in the event of a package installation failure, however as far as I can tell this doesn't check bug patterns to see if the installation failure matches a pattern before reporting the bug.

I discovered this after writing a pattern for samba4 that checks the key "VarLogDistupgradeTermlog" for a specific message. I ran 'search-bugs --package samba4 --tags apport-package' and found bug 776733, bug 776676 and bug 776671 which all matched the pattern and were reported. These bugs should not have been reported at all since a pattern is written for them.

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

This should be resolved by adding a duplicate signature tag to apport-package bugs reported by apt.

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

Well a duplicatesignature would only help after the fact as the retracer would then mark these as a duplicates of the first one.

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

Actually, the bug here is probably that distribution upgrades which have a package install failure don't check bug patterns. The code in update-manager's DistUpgradeApport.py calls /usr/share/apport/package_hook which then files the bug and may not do a duplicate check.

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

A recent example of this can be seen in bug 1004664.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.