apport-gtk spends a lot of time calling lsb_release

Bug #1164742 reported by Steve Magoun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

I've had some stability problems with compiz, so I see apport-gtk run a fair amount on my system. I've noticed that apport-gtk is pretty slow, and top reports that lsb_release is often running and using up 1-5% of the CPU while apport-gtk is running. Watching the PIDs in top, I see that lsb_release is spawned a lot - dozens or hundreds of times for each instance of apport-gtk when collecting data about compiz.

Can lsb_release data be cached so that it's retrieved once rather than repeatedly for each instance of apport? Is there some tight loop in the collector for compiz and its dependencies that shouldn't be there?

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: apport-gtk 2.9.2-0ubuntu5
ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
Uname: Linux 3.8.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Thu Apr 4 17:58:22 2013
InstallationDate: Installed on 2010-09-17 (930 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: Upgraded to raring on 2013-01-25 (69 days ago)

Revision history for this message
Steve Magoun (smagoun) wrote :
Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk r2676.

Changed in apport (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.12-0ubuntu2

---------------
apport (2.12-0ubuntu2) saucy; urgency=low

  * Merge from trunk:
    - sandboxutils.py, make_sandbox(): Install packages from Package: and
      Dependencies: fields also if we have a ProcMaps: field and there are any
      third-party packages. This fixes retracing crashes that use PPAs (as they
      don't have Contents.gz).
    - Robustify "progress bar visible" GTK and KDE UI checks for the faster
      collection due to dropping lsb_release.
 -- Martin Pitt <email address hidden> Fri, 02 Aug 2013 16:03:43 +0200

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