apport_pkgfailure function of DistUpgradeApport.py should include current dmesg

Bug #773429 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Brian Murray
Oneiric
Fix Released
Medium
Brian Murray

Bug Description

Binary package hint: update-manager

It'd be useful to include a current version of dmesg with apport package failures during distribution upgrades to help determine if the reporter is experiencing hardware failure. See bug 773137 and its VarLogDistUpgradeMainlog.gz which contains the following:

2011-04-29 05:51:51,011 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/xulrunner-1.9.2_1.9.2.17+build3+nobinonly- 0ubuntu1_amd64.deb': 'short read on buffer copy for backend dpkg-deb during `./usr/lib/xulrunner-1.9.2.17/components/ libdbusservice.so''
2011-04-29 05:51:51,011 DEBUG running apport_pkgfailure() xulrunner-1.9.2: short read on buffer copy for backend dpkg-deb during `./usr/lib/xulrunner-1.9.2.17/components/libdbusservice.so'
2011-04-29 05:51:51,029 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/xulrunner-1.9.2_1.9.2.17+build3+nobinonly- 0ubuntu1_amd64.deb': 'short read on buffer copy for backend dpkg-deb during `./usr/lib/xulrunner-1.9.2.17/components/ libdbusservice.so''

Changed in update-manager (Ubuntu Oneiric):
importance: Undecided → Medium
Changed in update-manager (Ubuntu Oneiric):
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

I actually included this in the generic update-manager apport package hook so it'll appear in all update-manager bug reports instead of just distribution upgrades.

'''apport package hook for update-manager

(c) 2011 Canonical Ltd.
Author: Brian Murray <email address hidden>
'''

from apport.hookutils import *

def add_info(report):

    # collect gconf settings for update-manager
    report['GconfUpdateManager'] = command_output(['gconftool-2', '-R',
        '/apps/update-manager'])
    # grab the non-default values too as it is easier to compare with both the
    # settings and the non-default values
    attach_gconf(report, 'update-manager')
    attach_file_if_exists(report, '/var/log/apt/history.log',
        'DpkgHistoryLog.txt')
    attach_root_command_outputs(report,
        {'DpkgTerminalLog.txt': 'cat /var/log/apt/term.log',
         'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})

Changed in update-manager (Ubuntu Oneiric):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → 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.