apport-collect should submit initial data as well as hook data

Bug #332578 reported by Chris Cheney
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

Binary package hint: apport

I don't know if you want to make this the default but it should at least be a command line option to have the initial data that apport usually reports about bugs to be sent by apport-collect (bug number). That information isn't in package specific hooks at least afaik, and currently doesn't get sent by apport-collect. My primary use case for apport-collect would be users to submit all the data below since they probably reported the bug using the web interface which doesn't include that data.

Eg this kind of stuff:

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: fglrx
Package: openoffice.org-core 1:3.0.1~rc1-2ubuntu2~intrepid1
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_IE.UTF-8
 SHELL=/bin/bash
SourcePackage: openoffice.org
Uname: Linux 2.6.27-11-generic i686
UnreportableReason: This is not a genuine Ubuntu package

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

Indeed, it should do that. We can't collect process specific data (Proc*), but we can, and should, collect system information, package/dependencies versions, etc.

Changed in apport:
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote : apport-collect data

ApportLog:

Architecture: i386
CrashReports: 600:1000:1000:1384554:2009-02-22 10:38:20.067552000 +0100:2009-02-22 10:38:28.072545697 +0100:/var/crash/_usr_lib_notify-osd_notify-osd.1000.crash

DistroRelease: Ubuntu 9.04
PackageArchitecture: all
Uname: Linux 2.6.28-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

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

Sorry for abusing this bug for testing, staging.launchpad.net is currently down.

Revision history for this message
Martin Pitt (pitti) wrote : apport-collect data

ApportLog:

Architecture: i386
DistroRelease: Ubuntu 9.04
Package: apport 0.134 [modified: usr/share/apport/package-hooks/source_apport.py]
PackageArchitecture: all
Uname: Linux 2.6.28-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

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

r1270

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.135

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

  * problem_report.py, test_write_mime_text(): Add test cases for
    single-line and two-line UTF-8 values, single-line and two-line
    Unicode values and a single-line LF-terminated value. Fix handling
    of the latter two.
  * problem_report.py, test_write(): Add test cases for single-line
    and two-line UTF-8 and Unicode values, and fix handling of these
    in write().
  * debian/local/apport-collect: Collect package, OS, and user
    information as well. (LP: #332578)
  * package-hooks/source_apport.py: Robustify by using hookutils, and
    avoid stat errors if /var/crash/* does not exist.
  * test-hooks: Update dodgy test for uninstalled package,
    libdb4.3-tcl is not available in Jaunty any more.

 -- Martin Pitt <email address hidden> Mon, 23 Feb 2009 13:14:24 +0100

Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Chris Cheney (ccheney) wrote :

Martin,

Could we also get the NonFreeKernelModules and LANG variables as well? Those are often useful to me regarding driver rendering bugs and knowing what locale they are using helps to catch weird settings problems at times.

Thanks,

Chris

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

NonfreeKernelModules is already provided by add_os_info(). Just, the field won't appear at all if the user doesn't have any non-free modules loaded.

I reopen the bug for $LANG.

Changed in apport:
status: Fix Released → In Progress
Revision history for this message
Chris Cheney (ccheney) wrote :

Thanks! :-)

Revision history for this message
Chris Cheney (ccheney) wrote :

Oh, this is probably not really the proper place to bring this up, but would it be possible to get apport-collect into hardy and intrepid as well... :-) It is a very useful utility and would be helpful in bug triage for the older releases as well.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 332578] Re: apport-collect should submit initial data as well as hook data

Chris Cheney [2009-02-24 0:10 -0000]:
> Oh, this is probably not really the proper place to bring this up, but
> would it be possible to get apport-collect into hardy and intrepid as
> well... :-) It is a very useful utility and would be helpful in bug
> triage for the older releases as well.

You can ask people to download and run

  http://people.ubuntu.com/~pitti/scripts/apport-collect

It just needs python-apport (which is installed in Hardy by default)
and python-launchpadlib; it politely points out if the latter is
missing. However, that is only in the archive for intrepid, for hardy
we'd need a backport of launchpadlib first.

Revision history for this message
Martin Pitt (pitti) wrote : apport-collect data

Architecture: i386
CrashReports: 644:1000:1000:0:2009-02-24 14:18:37.142509151 +0100:2009-02-24 14:18:37.142509151 +0100:/var/crash/_bin_cat.1000.crash
DistroRelease: Ubuntu 9.04
Package: apport 0.134 [modified: usr/share/apport/package-hooks/source_apport.py]
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=de_DE.UTF-8
Uname: Linux 2.6.28-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

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

Okay, should be complete now.

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.136

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

  [ Andy Whitcroft ]
  * bin/apportcheckresume: remove originator in suspend/hibernate/resume
    reporting. This was intended for debugging only and is now redundant.
  * bin/apportcheckresume, apport/report.py: when collecting resume failures
    in very early boot hal may not be running and we thus unable to obtain
    the machine type information. Move title generation to the reporting
    engine.

  [ Martin Pitt ]
  * debian/local/apport-collect: Add user environment information, too
    (LANG, PATH, SHELL). (LP: #332578)

 -- Martin Pitt <email address hidden> Tue, 24 Feb 2009 14:25:21 +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.