Repeatedly unusable truncated crash files (on log-out)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Repeatedly unusable truncated crash files:
Bug 2012974, bug 2015842, bug 2015140, bug 2012075
Based on my own testing, the problems seems to happen if multiple binaries crash simultaneously (like at logout). One crash file gets fully written and the other is incomplete.
If I remove apport from the equation and just get the kernel to dump core files then the core files are always written reliably (should be several hundred MB in the case of gnome-shell).
Running `apport-retrace -g $crash` on the .crash files will fail with "/tmp/apport_
Steps to reproduce
==================
1. Use Ubuntu 23.04 (lunar) desktop with GNOME shell
2. Downgrade gjs and libgjs0g to 1.76.0-1 (for triggering bug 1974293)
3. Remove all crashes: `sudo rm -f /var/crash/*`
4. Interact with the desktop, icon grid and calendar for 30 seconds.
5. Log out.
6. Crash files written.
To test the core file, either use `apport-unpack` on the /var/crash/*.crash file to extract the CoreDump file or use `apport-retrace -g` on the .crash file. It will fail to print the backtrace:
```
$ apport-retrace -g /var/crash/
[...]
Warnung: Error reading shared library list entry at 0x646c747200000000
Failed to read a valid object file image from memory.
Core was generated by `/usr/bin/
Program terminated with signal SIGSEGV, Segmentation fault.
Warnung: Section `.reg-xstate/10527' in core file too small.
(gdb) bt
#0 0x00007fe1c8090ffb in ?? ()
Backtrace stopped: Cannot access memory at address 0x7ffd59a40fe0
```
You can use the 0001-apport-
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
DistroRelease: Ubuntu 23.04
Package: linux-image-
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
Do you have logs and example for it? The linked bugs do not contain any apport logs or the original .crash file. Can you provide an example how to reproduce it?