Apport ("Report a bug") uses insane amount of memory

Bug #361287 reported by Daniel Hahler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: apport

While reporting this bug, using apport-gtk (through "/usr/share/apport/apport-gtk -f -p apport"), it uses a huge amount of memory:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15263 daniel 20 0 751m 657m 9112 S 0 21.8 0:08.55 apport-gtk
15657 daniel 20 0 751m 649m 784 S 0 21.5 0:00.07 apport-gtk

Yes, according to pstree, these two processes belong to the single instance of creating one report.
  bash---apport-gtk---apport-gtk---kfmclient---{kfmclient}

I've noticed this with apport-qt (launched through ubuntu-bug), when reporting 3 bugs simultaneously made the system start swapping.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: apport 1.0-0ubuntu4
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 LANGUAGE=
SourcePackage: apport
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Daniel Hahler (blueyed) wrote :
description: updated
Revision history for this message
Daniel Hahler (blueyed) wrote :

After forcefully quitting the process (which is required because of bug 337382), this leaves one apport-gtk process running (pid 15657 - the one started later(?)).

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

I get (with ps):

martin 24888 5.4 10.7 405012 108116 pts/4 S+ 13:33 0:03 /usr/bin/python /usr/share/apport/apport-gtk -f -p apport

That means that apport-gtk uses 108 MB of physical memory. I'm afraid it won't get much better with all the Python, pygtk, python-apt and other magic that it has to do :-/ Do you get significantly different numbers?

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Hahler (blueyed) wrote :

While collecting info:
daniel 25033 17.7 21.8 751240 676064 pts/2 Sl+ 21:48 0:06 /usr/bin/python /usr/share/apport/apport-gtk -f -papport

When asking to send the report:
daniel 25033 13.1 21.8 751788 676588 pts/2 S+ 21:48 0:11 /usr/bin/python /usr/share/apport/apport-gtk -f -papport

After clicking "send" (now two processes, plus kfmclient):
daniel 25033 8.2 21.9 769228 678416 pts/2 S+ 21:48 0:11 /usr/bin/python /usr/share/apport/apport-gtk -f -papport
daniel 25582 0.2 21.4 769228 665456 ? Ss 21:50 0:00 /usr/bin/python /usr/share/apport/apport-gtk -f -papport
daniel 25584 1.2 0.4 48224 13800 ? Sl 21:50 0:00 kfmclient openURL https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/ajv16DeyZFdXCYI4grDAFAcNn6u?

Due to bug 337382, this memory is not freed, after "ctrl-c":
daniel 25582 0.0 21.4 769228 665456 ? Ss 21:50 0:00 /usr/bin/python /usr/share/apport/apport-gtk -f -papport
daniel 25584 0.2 0.4 48224 13800 ? Sl 21:50 0:00 kfmclient openURL https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/ajv16DeyZFdXCYI4grDAFAcNn6u?

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