coredumpctl
Retrieve coredumps from the journal
- Provided by: systemd-coredump (Version: 229-4ubuntu21.31)
- Source: systemd
- Report a bug
Retrieve coredumps from the journal
coredumpctl [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...]
coredumpctl may be used to retrieve coredumps from systemd-journald(8).
The following options are understood:
--no-legend
-1
-F FIELD, --field=FIELD
-o FILE, --output=FILE
-D DIR, --directory=DIR
-h, --help
--version
--no-pager
The following commands are understood:
list
info
dump
gdb
A match can be:
PID
COMM
EXE
MATCH
On success, 0 is returned; otherwise, a non-zero failure code is returned. Not finding any matching coredumps is treated as failure.
Example 1. List all the coredumps of a program named foo
# coredumpctl list foo
Example 2. Invoke gdb on the last coredump
# coredumpctl gdb
Example 3. Show information about a process that dumped core, matching by its PID 6654
# coredumpctl info 6654
Example 4. Extract the last coredump of /usr/bin/bar to a file named bar.coredump
# coredumpctl -o bar.coredump dump /usr/bin/bar
systemd-coredump(8), coredump.conf(5), systemd-journald.service(8), gdb(1)