[Bug 2066995] Re: apport-gtk keeps prompting to report crashes in a loop
Steve Langasek
2066995 at bugs.launchpad.net
Fri Jun 7 22:57:49 UTC 2024
> It seems to boil down to a race condition between the apport postinst
> and the whoopsie postinst, the latter correctly chmoding /var/crash
> to 3777 *if it creates it*.
My read of the postinst is that it correctly chmod's /var/crash
regardless of whether it did the creating:
mkdir -p -m 3777 /var/crash
chmod g+s /var/crash
chgrp whoopsie /var/crash
I've confirmed that 'mkdir -p -m' doesn't change the mode of an existing directory. And /var/crash has been on my system since 2019 when this system was installed, so it's not new here?
Running `dpkg-reconfigure whoopsie` (i.e., triggering a rerun of the
postinst) is sufficient to fix the directory permissions.
But it must have been something else besides the apport postinst that
dropped the g+s bit.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2066995
Title:
apport-gtk keeps prompting to report crashes in a loop
Status in apport package in Ubuntu:
Confirmed
Bug description:
/var/crash has the following contents:
-rw-r----- 1 vorlon vorlon 107490 May 23 16:05 _usr_bin_gourmand.1000.crash
-rw-rw-r-- 1 vorlon vorlon 0 May 23 16:06 _usr_bin_gourmand.1000.upload
-rw------- 1 whoopsie whoopsie 5 May 23 16:07 _usr_bin_gourmand.1000.uploaded
-rw-r----- 1 vorlon vorlon 23647 May 23 13:57 _usr_bin_python-argcomplete-check-easy-install-script.1000.crash
-rw-rw-r-- 1 vorlon vorlon 0 May 23 13:59 _usr_bin_python-argcomplete-check-easy-install-script.1000.upload
-rw------- 1 whoopsie whoopsie 5 May 23 13:59 _usr_bin_python-argcomplete-check-easy-install-script.1000.uploaded
As seen, the .upload / .uploaded files were created within 2 minutes
of each of the crashes.
But after submitting the crash report for /usr/bin/python-argcomplete-
check-easy-install-script, I left my desktop for a while. I came back
to find at least TWENTY dialogs prompting me to submit the same crash
report.
The only way to stop the system from creating more prompts is to
remove these files from disk.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: apport 2.28.1-0ubuntu3
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: zfs
ApportLog:
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu May 23 16:06:43 2024
InstallationDate: Installed on 2019-12-23 (1613 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: Upgraded to noble on 2024-05-22 (1 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2066995/+subscriptions
More information about the foundations-bugs
mailing list