Wieder was gelernt

Core-Dumps on Ubuntu

Tags: linux ubuntu debugging system administration
2024-05-14

Ubuntu by default pipes core dumps to apport (via /proc/sys/kernel/core_pattern). The core dumps are then stored in /var/lib/apport/coredump. If you want “normal” core dumps, you need to write a different pattern (e.g. “core.%p”) into core_pattern.

Also useful to know:

To install debug syms you need to add

deb http://ddebs.ubuntu.com jammy main restricted universe multiverse
deb http://ddebs.ubuntu.com jammy-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com jammy-proposed main restricted universe multiverse

to sources.list.d

To set the core dump size for a systemd service, use

[Service]
#LimitCORE=infinity
LimitCORE=0