apportcheckresume tries to attach non-existent log files

Bug #351973 reported by Matt Zimmerman
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apport

I see a lot of suspend/resume bug reports with:

StressLog: Error: [Errno 2] No such file or directory: '/var/lib/pm-utils/stress.log'

This log file only exists if a suspend/resume stress test has been run, not during normal operation. It should be skipped if it does not exist.

ProblemType: Bug
ApportLog:

Architecture: amd64
CrashReports:
 600:1000:1000:13084625:2009-03-22 11:06:54.000000000 +0000:2009-03-22 11:07:04.000000000 +0000:/var/crash/_usr_lib_nspluginwrapper_i386_linux_npviewer.bin.1000.crash
 600:118:4:1934:2009-03-30 22:11:55.000000000 +0100:2009-03-30 17:11:30.000000000 +0100:/var/crash/linux-image-2.6.28-11-generic.118.crash
 600:0:0:87686:2009-03-30 22:39:08.000000000 +0100:2009-03-30 22:39:18.000000000 +0100:/var/crash/susres.2009-03-30_22:39:08.277772.crash
DistroRelease: Ubuntu 9.04
Package: apport 0.148
PackageArchitecture: all
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: apport
Uname: Linux 2.6.28-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
Matt Zimmerman (mdz) wrote :
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: New → 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.