Core dump collection: the systemd-coredump channel measured, and the coredumpctl workflow end to end
What you will learn
Section titled “What you will learn”How to keep evidence when a userland program crashes. OL10 ships the systemd-coredump channel already configured — this page measures the full flow from “triggering a segfault” to “reading the scene with coredumpctl”.
The current state: the channel is taken over by default
Section titled “The current state: the channel is taken over by default”cat /proc/sys/kernel/core_pattern# |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d %FThe leading pipe = crash scenes go straight to the systemd-coredump handler (not a core file written to disk). No ulimit -c needed — systemd-coredump bypasses the traditional rlimit path.
Triggering and reading (measured)
Section titled “Triggering and reading (measured)”# Manufacture a segfaulting process (an experimental bash is kill -SEGV'd by this group)systemd-run --unit=crasher bash -c 'sleep 30 & kill -SEGV $!'sleep 3
coredumpctl list --no-pager# TIME PID UID GID SIG COREFILE EXE SIZE# Thu 2026-11-05 23:34:31 CST 7039 0 0 SIGSEGV present /usr/bin/bash 44.6K
coredumpctl info | grep -E "Signal|Command Line|PID"# PID: 7039 (bash)# Signal: 11 (SEGV)# Command Line: /usr/bin/bash -c sleep 30 & kill -SEGV $!Three key readings: present (the core file is stored), SIZE (44.6K — compressed on demand, not the process’s full memory), Signal (the crash cause). For deeper digging, coredumpctl gdb (needs debuginfo).
Configuration: where to store, how much to keep
Section titled “Configuration: where to store, how much to keep”cat > /etc/systemd/coredump.conf.d/90-retention.conf <<'EOF'[Coredump]Storage=external # external = on disk in /var/lib/systemd/coredump (the default)Compress=yes # compressed by defaultProcessSizeMax=2G # the per-core cap (default 1G; over-limit cores are not stored)MaxUse=4G # the directory's total cap, auto-cleanedEOFsystemctl daemon-reloadNote: coredump.conf follows the same /usr/lib default + /etc drop-in layering as journald.conf (see the logging page).
The division of labor with kdump
Section titled “The division of labor with kdump”| Layer | Crash form | Channel | Artifact | Tool |
|---|---|---|---|---|
| Userland | segfault/abort | systemd-coredump | /var/lib/systemd/coredump | coredumpctl |
| Kernel | panic/oops | kdump (the crashkernel reservation) | /var/crash/*/vmcore | crash |
The first troubleshooting step is separating the layers: records in coredumpctl list = the application layer; the machine rebooting outright with a vmcore in /var/crash = the kernel layer. “Crash observability” means both layers configured.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: the channel-takeover confirmation, the SEGV trigger, and the full coredumpctl list/info chain (E3);
- Not measured: deep gdb analysis (needs debuginfo and real application symbols) and the ownership of crashes inside containers (they belong to the host’s coredump channel);
- Sources:
coredumpctl(1), the systemd-coredump documentation, OL10 documentation.