Using Systemd to Manage Core Dumps
Explains how to enable, configure, analyze, and export systemd-managed core dumps on Oracle Linux.
Core dumps contain crash information for userspace applications and services running on Oracle Linux. They can be generated on demand by using a debugger, or the systemd-coredump service can be configured to generate them automatically in the event of a process stopping prematurely.
Core dumps contain a log summary of the crash event that typically includes the process ID, owner, termination signal, and a stack trace. For more information, see the systemd-coredump(8) manual pages.
The coredumpctl command can be used to review core dumps that have been written to the system journal or saved as a file. For more information, see the coredumpctl(1) manual pages.
Enabling Core Dumps
Core dumps aren't enabled by default, so you must configure systemd to generate them.
Configuring Core Dumps
Analyzing Core Dumps
-
Use the
coredumpctlcommand to list the core dumps that are available on the system:coredumpctl list -
To review more information about the core dumps stored for a particular application, specify the executable as an option:
coredumpctl list executable-path -
To review all the core dumps that are stored for a failed process on the system, specify the process ID instead:
coredumpctl list process-id
Exporting Core Dumps
For more information about the coredumpctl command, see the coredumpctl(1) manual pages.