core dump file empty inside container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
Medium
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
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/
ulimit -c 1000000
sleep 86400 &
killall -3 sleep
```
Apport will write a core dump into /var/lib/
```
$ stat /var/lib/
File: /var/lib/
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_
Due to the huge amount of broken autopkgtest tests, the diff for the SRUs are bigger than desired. The individual commits in https:/
* jammy SRU: https:/
* focal SRU: https:/
Changed in apport: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in apport (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: patch |
Changed in apport: | |
status: | Fix Committed → Fix Released |
description: | updated |
description: | updated |
description: | updated |
Fixed upstream: https:/ /github. com/canonical/ apport/ commit/ d6b4611b678604a a5aaf90c4838e64 1eea98664a