Skip to content
Search Oracle Linux

    Browse this documentation

    Core dump collection: the systemd-coredump channel measured, and the coredumpctl workflow end to end

    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”
    Terminal window
    cat /proc/sys/kernel/core_pattern
    # |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d %F

    The 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.

    Terminal window
    # 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”
    Terminal window
    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 default
    ProcessSizeMax=2G # the per-core cap (default 1G; over-limit cores are not stored)
    MaxUse=4G # the directory's total cap, auto-cleaned
    EOF
    systemctl daemon-reload

    Note: coredump.conf follows the same /usr/lib default + /etc drop-in layering as journald.conf (see the logging page).

    LayerCrash formChannelArtifactTool
    Userlandsegfault/abortsystemd-coredump/var/lib/systemd/coredumpcoredumpctl
    Kernelpanic/oopskdump (the crashkernel reservation)/var/crash/*/vmcorecrash

    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.

    • 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.