crashes when trying to show details with very large attachments

Bug #486122 reported by Joshua Nekl
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Unassigned
Lucid
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gcalctool

When I tried to submit a bug report, the apport tool crashed. I went to the apport details and tried expanding the XSessionErrors entry. The apport-gtk took up 100% cpu utilization and the memory usage increased for about 30 seconds or so until memory was exhausted and the system killed it. The apport window was locked up during this time.

ProblemType: Bug
Architecture: i386
Date: Fri Nov 20 20:14:43 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: gcalctool 5.28.1-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gcalctool
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Joshua Nekl (joshuanekl) wrote :
affects: gcalctool (Ubuntu) → apport (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :

I suppose this happened with an exceptionally large .xsession-errors?

Changed in apport (Ubuntu):
importance: Undecided → Low
status: New → Triaged
summary: - apport takes up 100% CPU and memory when details->Xsessionerrors
- expanded
+ crashes when trying to show details with very large attachments
Revision history for this message
Scott Moser (smoser) wrote :

I ran into this trying to report a eucalyptus bug using apport. It attaches several log files that will easily be dozens of megabytes. I chatted with pitti some at http://irclogs.ubuntu.com/2010/03/18/%23ubuntu-devel.html .

There are 2 issues here
a.) apport creates a string the size of all combined fields before the user responds that they want to see the report
b.) there is no max size to be displayed. It is highly unlikely that a user wants to view all of a log file megabytes in length in 'sensible-pager'.

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

I applied your patch to trunk (r1734) with two tiny stylistic corrections, thanks a lot!

Thus I couldn't technically merge your branch, since it's not mergeable to trunk.

Changed in apport (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

@Martin thanks for taking on trunk. Sorry about getting the wrong branch, I had pulled from the lucid branch.

If you think this is reasonable, could you accept nomination for Lucid ?

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

Sure, I'll upload it shortly after beta-1 release anyway :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.13.1-0ubuntu1

---------------
apport (1.13.1-0ubuntu1) lucid; urgency=low

  [ Martin Pitt ]
  * New upstream bug fix release:
    - Update parse-segv to handle gdb 7.1 output.
    - Enhance test suite to work with gdb 7.1 as well, and catch future
      outputs.
    - UI: Add exception string to the "network error" dialog, to better tell
      what the problem is.
    - UI: Add back -p option to apport-collect/apport-update-bug (regression
      from 1.13). (LP: #538944)
    - launchpad.py: Add yet another workaround for LP#336866. (LP: #516381)
    - launchpad.py, download(): Ignore attachments with invalid key names.
    - Fix regression from 1.10 which made it impossible for a package hook to
      set a third-party crash database for non-native packages. (LP: #517272)
    - apport-cli: Create the 'details' string only if user wants to view
      details, and do not show files larger than 1MB. Thanks Scott Moser!
      (LP: #486122)
    - packaging-apt-dpkg.py: Silence apt.Cache() spewage to stdout with newer
      python-apt versions. (LP: #531518)
    - unkillable_shutdown: Add list of running processes and blacklisted pids
      to report. (LP: #537262)
    - Sort the report by key in the details view. (LP: #519416)

  [ Evan Dandrea ]
  * Move ubiquity's package-hook into apport, so that it can be used
    from the installed system to grab the logs in /var/log/installer.
 -- Martin Pitt <email address hidden> Sat, 20 Mar 2010 22:28:44 +0100

Changed in apport (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.