crash reports not sent to the Error Tracker
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
apport (Ubuntu) | Status tracked in Mantic | |||||
Lunar |
Fix Committed
|
High
|
Simon Chopin | |||
Mantic |
Fix Released
|
High
|
Simon Chopin |
Bug Description
[ Impact ]
Crash reports aren't sent in when going through the UI, unless the user looks at the crash details.
[ Test Plan ]
0) Make sure that error reporting is set to manual in the system settings (in Privacy screen)
1) Launch xeyes
2) pkill -11 xeyes
3) Click send in the apport dialog. DO NOT look at the details of the report.
4) ls -lh /var/crash/*xeyes*
There should be 3 files:
-rw-r----- 1 bdmurray whoopsie 3370567 Oct 6 11:53 _usr_bin_
-rw-rw-r-- 1 bdmurray bdmurray 0 Oct 6 11:53 _usr_bin_
-rw------- 1 whoopsie whoopsie 37 Oct 6 11:53 _usr_bin_
[ Where problems could occur ]
If the patch is wrong, we actually see similar bugs for other UI paths, e.g. ticking the "Remember this" box, etc. I tried to cover them during manual testing but I might have missed some.
[ Other Info ]
If possible I'd like for us not to wait too long for this to mature in -proposed, as this would affect crashes during the upgrade.
[ Original report ]
From what I can tell when I click the send button to send a crash report to the Error Tracker the crash doesn't actually get sent. My testing process follows:
1) Launch xeyes
2) pkill -11 xeyes
3) Click send in the apport dialog
4) ls -lh /var/crash
I would expect there to be three files in /var/crash:
-rw-r----- 1 bdmurray whoopsie 3370567 Oct 6 11:53 _usr_bin_
-rw-rw-r-- 1 bdmurray bdmurray 0 Oct 6 11:53 _usr_bin_
-rw------- 1 whoopsie whoopsie 37 Oct 6 11:53 _usr_bin_
However, after step #4 I'm only seeing the .crash file and not a .upload or .uploaded. I was able to get the .upload and .uploaded files created if I chose to "View Report" and then click "Send".
It's worth noting though that I did notice the size of the .crash file increase after clicking "Send" so some post-processing was done.
ProblemType: BugDistroRelease: Ubuntu 23.10
Package: apport 2.27.0-0ubuntu4
ProcVersionSign
Uname: Linux 6.5.0-5-generic x86_64
NonfreeKernelMo
ApportVersion: 2.27.0-0ubuntu4
Architecture: amd64
CasperMD5CheckR
CrashReports: 640:1000:
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 6 12:12:46 2023
InstallationDate: Installed on 2022-01-07 (637 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
PackageArchitec
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: rls-mm-incoming |
tags: |
added: foundations-todo removed: rls-mm-incoming |
Changed in apport (Ubuntu): | |
assignee: | nobody → Simon Chopin (schopin) |
milestone: | none → ubuntu-23.10 |
Changed in apport (Ubuntu): | |
status: | New → In Progress |
Changed in apport (Ubuntu Lunar): | |
milestone: | none → lunar-updates |
importance: | Undecided → High |
assignee: | nobody → Benjamin Drung (bdrung) |
This was caused by the addition of this feature: https:/ /github. com/canonical/ apport/ pull/131
It broke an assumption that Dependencies was only added by the late stage info collection, and said collection also had some other side-effects that were relied upon to trigger the upload.
I'll create a hotfix patch for it this afternoon to unlock the situation, and we'll work on a less fragile approach when Benjamin comes back from PTO.