apport looping on an old crash dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
A few occasions now I've had apport spinning a CPU on an old caja crash found in /var/crash.
Talked to pitti in #ubuntu-devel who asked for the crash file, which I've uploaded to:- https:/
Some output from stracing the apport process:-
http://
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apport 2.19.2-0ubuntu6
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportLog:
ApportVersion: 2.19.2-0ubuntu6
Architecture: amd64
CurrentDesktop: MATE
Date: Tue Nov 17 09:44:05 2015
InstallationDate: Installed on 2014-06-16 (519 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitec
SourcePackage: apport
UpgradeStatus: Upgraded to xenial on 2015-11-03 (13 days ago)
Related branches
tags: | added: rls-x-incoming |
According to Alan's strace this hangs in/loops over reading the existing .crash file; this can only be the reading ofCrashCounter.
This reproduces easily with:
python3 -c 'import apport.fileutils; print(apport. fileutils. get_recent_ crashes( open("_ usr_bin_ caja.1000. crash", "rb")))'