'\" t .TH "COREDUMPCTL" "1" "" "systemd 230" "coredumpctl" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" coredumpctl \- Retrieve and process saved core dumps and metadata .SH "SYNOPSIS" .HP \w'\fBcoredumpctl\fR\ 'u \fBcoredumpctl\fR [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...] .SH "DESCRIPTION" .PP \fBcoredumpctl\fR is a tool that can be used to retrieve and process core dumps and metadata which were saved by \fBsystemd-coredump\fR(8)\&. .SH "OPTIONS" .PP The following options are understood: .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Print a short help text and exit\&. .RE .PP \fB\-\-version\fR .RS 4 Print a short version string and exit\&. .RE .PP \fB\-\-no\-legend\fR .RS 4 Do not print column headers\&. .RE .PP \fB\-\-no\-pager\fR .RS 4 Do not pipe output into a pager\&. .RE .PP \fB\-1\fR .RS 4 Show information of a single core dump only, instead of listing all known core dumps\&. .RE .PP \fB\-F\fR \fIFIELD\fR, \fB\-\-field=\fR\fIFIELD\fR .RS 4 Print all possible data values the specified field takes in matching core dump entries of the journal\&. .RE .PP \fB\-o\fR \fIFILE\fR, \fB\-\-output=\fR\fIFILE\fR .RS 4 Write the core to \fBFILE\fR\&. .RE .PP \fB\-D\fR \fIDIR\fR, \fB\-\-directory=\fR\fIDIR\fR .RS 4 Use the journal files in the specified \fBDIR\fR\&. .RE .SH "COMMANDS" .PP The following commands are understood: .PP \fBlist\fR .RS 4 List core dumps captured in the journal matching specified characteristics\&. If no command is specified, this is the implied default\&. .sp It\*(Aqs worth noting that different restrictions apply to data saved in the journal and core dump files saved in /var/lib/systemd/coredump, see overview in \fBsystemd-coredump\fR(8)\&. Thus it may very well happen that a particular core dump is still listed in the journal while its corresponding core dump file has already been removed\&. .RE .PP \fBinfo\fR .RS 4 Show detailed information about core dumps captured in the journal\&. .RE .PP \fBdump\fR .RS 4 Extract the last core dump matching specified characteristics\&. The core dump will be written on standard output, unless an output file is specified with \fB\-\-output=\fR\&. .RE .PP \fBgdb\fR .RS 4 Invoke the GNU debugger on the last core dump matching specified characteristics\&. .RE .SH "MATCHING" .PP A match can be: .PP \fIPID\fR .RS 4 Process ID of the process that dumped core\&. An integer\&. .RE .PP \fICOMM\fR .RS 4 Name of the executable (matches \fBCOREDUMP_COMM=\fR)\&. Must not contain slashes\&. .RE .PP \fIEXE\fR .RS 4 Path to the executable (matches \fBCOREDUMP_EXE=\fR)\&. Must contain at least one slash\&. .RE .PP \fIMATCH\fR .RS 4 General journalctl predicates (see \fBjournalctl\fR(1))\&. Must contain an equal sign\&. .RE .SH "EXIT STATUS" .PP On success, 0 is returned; otherwise, a non\-zero failure code is returned\&. Not finding any matching core dumps is treated as failure\&. .SH "EXAMPLES" .PP \fBExample\ \&1.\ \&List all the core dumps of a program named foo\fR .sp .if n \{\ .RS 4 .\} .nf # coredumpctl list foo .fi .if n \{\ .RE .\} .PP \fBExample\ \&2.\ \&Invoke gdb on the last core dump\fR .sp .if n \{\ .RS 4 .\} .nf # coredumpctl gdb .fi .if n \{\ .RE .\} .PP \fBExample\ \&3.\ \&Show information about a process that dumped core, matching by its PID 6654\fR .sp .if n \{\ .RS 4 .\} .nf # coredumpctl info 6654 .fi .if n \{\ .RE .\} .PP \fBExample\ \&4.\ \&Extract the last core dump of /usr/bin/bar to a file named bar\&.coredump\fR .sp .if n \{\ .RS 4 .\} .nf # coredumpctl \-o bar\&.coredump dump /usr/bin/bar .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \fBsystemd-coredump\fR(8), \fBcoredump.conf\fR(5), \fBsystemd-journald.service\fR(8), \fBgdb\fR(1)