1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 This file is part of systemd.
8 Copyright 2012 Zbigniew Jędrzejewski-Szmek
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id=
"coredumpctl" conditional='ENABLE_COREDUMP'
25 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
28 <title>coredumpctl
</title>
29 <productname>systemd
</productname>
33 <contrib>Developer
</contrib>
34 <firstname>Zbigniew
</firstname>
35 <surname>Jędrzejewski-Szmek
</surname>
36 <email>zbyszek@in.waw.pl
</email>
42 <refentrytitle>coredumpctl
</refentrytitle>
43 <manvolnum>1</manvolnum>
47 <refname>coredumpctl
</refname>
48 <refpurpose>Retrieve coredumps from the journal
</refpurpose>
53 <command>coredumpctl
</command>
54 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
55 <arg choice=
"req">COMMAND
</arg>
56 <arg choice=
"opt" rep=
"repeat">PID|COMM|EXE|MATCH
</arg>
61 <title>Description
</title>
63 <para><command>coredumpctl
</command> may be used to
64 retrieve coredumps from
65 <citerefentry><refentrytitle>systemd-journald
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
69 <title>Options
</title>
71 <para>The following options are understood:
</para>
75 <term><option>--no-legend
</option></term>
77 <listitem><para>Do not print the column headers.
82 <term><option>-
1</option></term>
84 <listitem><para>Show information of a
85 single coredump only, instead of
86 listing all known coredumps.
91 <term><option>-F
</option></term>
92 <term><option>--field=
</option></term>
94 <listitem><para>Print all possible
95 data values the specified field
96 takes in matching coredump entries of the
97 journal.
</para></listitem>
101 <term><option>-o
</option></term>
102 <term><option>--output=FILE
</option></term>
104 <listitem><para>Write the core to
105 <option>FILE
</option>.
</para></listitem>
108 <xi:include href=
"standard-options.xml" xpointer=
"help" />
109 <xi:include href=
"standard-options.xml" xpointer=
"version" />
110 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
114 <para>The following commands are understood:
</para>
118 <term><command>list
</command></term>
120 <listitem><para>List coredumps
121 captured in the journal matching
122 specified characteristics. If no
123 command is specified, this is the
124 implied default.
</para></listitem>
128 <term><command>info
</command></term>
130 <listitem><para>Show detailed
131 information about coredumps captured
132 in the journal.
</para></listitem>
136 <term><command>dump
</command></term>
138 <listitem><para>Extract the last coredump
139 matching specified characteristics.
140 The coredump will be written on standard output,
141 unless an output file is specified with
142 <option>-o/--output
</option>.
147 <term><command>gdb
</command></term>
149 <listitem><para>Invoke the GNU
150 debugger on the last coredump matching
151 specified characteristics.
160 <title>Matching
</title>
162 <para>A match can be:
</para>
166 <term><replaceable>PID
</replaceable></term>
168 <listitem><para>Process ID of the
170 core. An integer.
</para></listitem>
174 <term><replaceable>COMM
</replaceable></term>
176 <listitem><para>Name of the executable
177 (matches
<option>COREDUMP_COMM=
</option>).
178 Must not contain slashes.
183 <term><replaceable>EXE
</replaceable></term>
185 <listitem><para>Path to the executable
186 (matches
<option>COREDUMP_EXE=
</option>).
187 Must contain at least one slash.
192 <term><replaceable>MATCH
</replaceable></term>
194 <listitem><para>General journalctl predicates
195 (see
<citerefentry><refentrytitle>journalctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
196 Must contain an equal sign.
203 <title>Exit status
</title>
204 <para>On success,
0 is returned; otherwise, a non-zero failure
205 code is returned. Not finding any matching coredumps is treated
211 <title>See Also
</title>
213 <citerefentry><refentrytitle>systemd-journald.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
214 <citerefentry project='man-pages'
><refentrytitle>gdb
</refentrytitle><manvolnum>1</manvolnum></citerefentry>