[Bug 1982555] Re: core dump file empty inside container
Launchpad Bug Tracker
1982555 at bugs.launchpad.net
Wed Nov 23 02:24:28 UTC 2022
This bug was fixed in the package apport - 2.20.11-0ubuntu82.2
---------------
apport (2.20.11-0ubuntu82.2) jammy; urgency=medium
* Point Vcs-* URIs to git
* Grab a slice of JournalErrors around the crash time (LP: #1962454)
* data/apport:
- Initialize error log as first step (LP: #1989467)
- Fix PermissionError for setuid programs inside container (LP: #1982487)
- Fix reading from stdin inside containers (LP: #1982555)
* Fix autopkgtest test case failures (LP: #1989467):
- Mark autopkgtest with isolation-container restriction
- Fix failure if kernel module isofs is not installed
- Do not check recommended dependencies
- Skip UI test if kernel thread is not found
- Fix race in test_crash_system_slice
- Fix check for not running test executable
- Use shadow in *_different_binary_source
- Mock kernel package version in UI test
- Fix test_kerneloops_nodetails if kernel is not installed
- Drop broken test_crash_setuid_drop_and_kill
- Expect linux-signed on arm64/s390x as well
- Skip SegvAnalysis for non x86 architectures
- Use unlimited core ulimit for SIGQUIT test
- Fix race with progress window in GTK UI tests
- Use sleep instead of yes for tests
- Fix test_add_gdb_info_script on armhf
- Fix wrong Ubuntu archive URI on ports
- Fix KeyError in test_install_packages_unversioned
- Depend on python3-systemd for container tests
- Depend on psmisc for killall binary
- Replace missing oxideqt-codecs
- Drop broken test_install_packages_from_launchpad
- Fix test_install_packages_permanent_sandbox* for s390x
-- Benjamin Drung <bdrung at ubuntu.com> Wed, 14 Sep 2022 18:28:26 +0200
** Changed in: apport (Ubuntu Jammy)
Status: Fix Committed => Fix Released
--
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/1982555
Title:
core dump file empty inside container
Status in Apport:
Fix Released
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Focal:
Fix Released
Status in apport source package in Jammy:
Fix Released
Bug description:
[Impact]
Apport will write an empty core dump file inside of containers.
[Test plan]
Run following testcase script inside a LXC container:
```
rm -f /var/lib/apport/coredump/*
ulimit -c 1000000
sleep 86400 &
killall -3 sleep
```
Apport will write a core dump into /var/lib/apport/coredump, but this
core dump is empty:
```
$ stat /var/lib/apport/coredump/core._usr_bin_sleep.*
File: /var/lib/apport/coredump/core._usr_bin_sleep.0.44f483a1-e487-44b3-88d1-805d1026f31d.9059.34839819
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 120848663 Links: 1
Access: (0400/-r--------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-07-22 07:54:48.838682067 +0000
Modify: 2022-07-22 07:54:48.838682067 +0000
Change: 2022-07-22 07:54:48.838682067 +0000
Birth: 2022-07-22 07:54:48.838682067 +0000
```
This file should not be empty.
[Where problems could occur]
The apport binary is called by the kernel when a process crashes.
Worst case scenarios include breaking the apport binary and no problem
report is generated any more (or apport uses too much resources).
Users will see problems reports inside the container which cause
additional load or disk usage. The fix is accompanied by a test case.
[Other Info]
The autopkgtest for armhf are run inside a LXC container and the test
case test_core_dump_packaged_sigquit triggers this bug.
Due to the huge amount of broken autopkgtest tests, the diff for the
SRUs are bigger than desired. The individual commits in
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/apport/ are
probably easier to review.
* jammy SRU: https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/apport/log/?h=1fa042cc27714c407494b3d6dfd0730bb984f3eb
* focal SRU: https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/apport/log/?h=eaa92037c7dfba621719c6f81fd75f6a09e90881
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1982555/+subscriptions
More information about the foundations-bugs
mailing list