Debian Codegraph @

templates/man5/core.5.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "core"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-03-16"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr ""
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr ""
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "core - core dump file"
49 msgstr ""
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "DESCRIPTION"
56 msgstr ""
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid ""
62 "The default action of certain signals is to cause a process to terminate and "
63 "produce a I<core dump file>, a file containing an image of the process's "
64 "memory at the time of termination. This image can be used in a debugger "
65 "(e.g., B<gdb>(1)) to inspect the state of the program at the time that it "
66 "terminated. A list of the signals which cause a process to dump core can be "
67 "found in B<signal>(7)."
68 msgstr ""
69
70 #. type: Plain text
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 msgid ""
74 "A process can set its soft B<RLIMIT_CORE> resource limit to place an upper "
75 "limit on the size of the core dump file that will be produced if it receives "
76 "a \"core dump\" signal; see B<getrlimit>(2) for details."
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 msgid ""
83 "There are various circumstances in which a core dump file is not produced:"
84 msgstr ""
85
86 #. type: IP
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "\\[bu]"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "The process does not have permission to write the core file. (By default, "
98 "the core file is called I<core> or I<core.pid>, where I<pid> is the ID of "
99 "the process that dumped core, and is created in the current working "
100 "directory. See below for details on naming.) Writing the core file fails "
101 "if the directory in which it is to be created is not writable, or if a file "
102 "with the same name exists and is not writable or is not a regular file "
103 "(e.g., it is a directory or a symbolic link)."
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "A (writable, regular) file with the same name as would be used for the core "
111 "dump already exists, but there is more than one hard link to that file."
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "The filesystem where the core dump file would be created is full; or has run "
119 "out of inodes; or is mounted read-only; or the user has reached their quota "
120 "for the filesystem."
121 msgstr ""
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "The directory in which the core dump file is to be created does not exist."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The B<RLIMIT_CORE> (core file size) or B<RLIMIT_FSIZE> (file size) resource "
135 "limits for the process are set to zero; see B<getrlimit>(2) and the "
136 "documentation of the shell's I<ulimit> command (I<limit> in B<csh>(1)). "
137 "However, B<RLIMIT_CORE> will be ignored if the system is configured to pipe "
138 "core dumps to a program."
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The binary being executed by the process does not have read permission "
146 "enabled. (This is a security measure to ensure that an executable whose "
147 "contents are not readable does not produce a\\[em]possibly readable\\"
148 "[em]core dump containing an image of the executable.)"
149 msgstr ""
150
151 #. FIXME . Perhaps relocate discussion of /proc/sys/fs/suid_dumpable
152 #. and PR_SET_DUMPABLE to this page?
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "The process is executing a set-user-ID (set-group-ID) program that is owned "
158 "by a user (group) other than the real user (group) ID of the process, or "
159 "the process is executing a program that has file capabilities (see "
160 "B<capabilities>(7)). (However, see the description of the B<prctl>(2) "
161 "B<PR_SET_DUMPABLE> operation, and the description of the I</proc/sys/fs/"
162 "suid_dumpable> file in B<proc>(5).)"
163 msgstr ""
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "I</proc/sys/kernel/core_pattern> is empty and I</proc/sys/kernel/"
170 "core_uses_pid> contains the value 0. (These files are described below.) "
171 "Note that if I</proc/sys/kernel/core_pattern> is empty and I</proc/sys/"
172 "kernel/core_uses_pid> contains the value 1, core dump files will have names "
173 "of the form I<.pid>, and such files are hidden unless one uses the B<ls>(1) "
174 "I<-a> option."
175 msgstr ""
176
177 #. commit 046d662f481830e652ac34cd112249adde16452a
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "(Since Linux 3.7) The kernel was configured without the B<CONFIG_COREDUMP> "
183 "option."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "In addition, a core dump may exclude part of the address space of the "
191 "process if the B<madvise>(2) B<MADV_DONTDUMP> flag was employed."
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "On systems that employ B<systemd>(1) as the I<init> framework, core dumps "
199 "may instead be placed in a location determined by B<systemd>(1). See below "
200 "for further details."
201 msgstr ""
202
203 #. type: SS
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "Naming of core dump files"
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "By default, a core dump file is named I<core>, but the I</proc/sys/kernel/"
215 "core_pattern> file (since Linux 2.6 and 2.4.21) can be set to define a "
216 "template that is used to name core dump files. The template can contain % "
217 "specifiers which are substituted by the following values when a core file is "
218 "created:"
219 msgstr ""
220
221 #. type: TP
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "%%"
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid "A single % character."
232 msgstr ""
233
234 #. type: TP
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "%c"
239 msgstr ""
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "Core file size soft resource limit of crashing process (since Linux 2.6.24)."
246 msgstr ""
247
248 #. type: TP
249 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "%C"
252 msgstr ""
253
254 #. commit 8603b6f58637ce196d68f7749633ea81af196d66
255 #. type: Plain text
256 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
257 msgid "CPU the task ran on (since Linux 6.2)."
258 msgstr ""
259
260 #. type: TP
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "%d"
265 msgstr ""
266
267 #. Added in git commit 12a2b4b2241e318b4f6df31228e4272d2c2968a1
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "Dump mode\\[em]same as value returned by B<prctl>(2) B<PR_GET_DUMPABLE> "
273 "(since Linux 3.7)."
274 msgstr ""
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "%e"
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "The process or thread's I<comm> value, which typically is the same as the "
288 "executable filename (without path prefix, and truncated to a maximum of 15 "
289 "characters), but may have been modified to be something different; see the "
290 "discussion of I</proc/>pidI</comm> and I</proc/>pidI</task/>tidI</comm> in "
291 "B<proc>(5)."
292 msgstr ""
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "%E"
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "Pathname of executable, with slashes (\\[aq]/\\[aq]) replaced by exclamation "
306 "marks (\\[aq]!\\[aq]) (since Linux 3.0)."
307 msgstr ""
308
309 #. type: TP
310 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "%f"
313 msgstr ""
314
315 #. commit f38c85f1ba6902e4e2e2bf1b84edf065a904cdeb
316 #. type: Plain text
317 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Actual filename of executable, which may differ from %e (since Linux 5.9)."
320 msgstr ""
321
322 #. type: TP
323 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
324 #: opensuse-tumbleweed
325 #, no-wrap
326 msgid "%F"
327 msgstr ""
328
329 #. commit b5325b2a270fcaf7b2a9a0f23d422ca8a5a8bdea
330 #. type: Plain text
331 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
332 #: opensuse-tumbleweed
333 msgid "PIDFD of dumped process (since Linux 6.16)."
334 msgstr ""
335
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "%g"
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "Numeric real GID of dumped process."
347 msgstr ""
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "%h"
354 msgstr ""
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "Hostname (same as I<nodename> returned by B<uname>(2))."
360 msgstr ""
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "%i"
367 msgstr ""
368
369 #. commit b03023ecbdb76c1dec86b41ed80b123c22783220
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "TID of thread that triggered core dump, as seen in the PID namespace in "
375 "which the thread resides (since Linux 3.18)."
376 msgstr ""
377
378 #. type: TP
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "%I"
383 msgstr ""
384
385 #. commit b03023ecbdb76c1dec86b41ed80b123c22783220
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid ""
390 "TID of thread that triggered core dump, as seen in the initial PID namespace "
391 "(since Linux 3.18)."
392 msgstr ""
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "%p"
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "PID of dumped process, as seen in the PID namespace in which the process "
406 "resides."
407 msgstr ""
408
409 #. type: TP
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "%P"
414 msgstr ""
415
416 #. Added in git commit 65aafb1e7484b7434a0c1d4c593191ebe5776a2f
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "PID of dumped process, as seen in the initial PID namespace (since Linux "
422 "3.12)."
423 msgstr ""
424
425 #. type: TP
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "%s"
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid "Number of signal causing dump."
436 msgstr ""
437
438 #. type: TP
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "%t"
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "Time of dump, expressed as seconds since the Epoch, 1970-01-01 00:00:00 "
450 "+0000 (UTC)."
451 msgstr ""
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "%u"
458 msgstr ""
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid "Numeric real UID of dumped process."
464 msgstr ""
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "A single % at the end of the template is dropped from the core filename, as "
471 "is the combination of a % followed by any character other than those listed "
472 "above. All other characters in the template become a literal part of the "
473 "core filename. The template may include \\[aq]/\\[aq] characters, which are "
474 "interpreted as delimiters for directory names. The maximum size of the "
475 "resulting core filename is 128 bytes (64 bytes before Linux 2.6.19). The "
476 "default value in this file is \"core\". For backward compatibility, if I</"
477 "proc/sys/kernel/core_pattern> does not include I<%p> and I</proc/sys/kernel/"
478 "core_uses_pid> (see below) is nonzero, then .PID will be appended to the "
479 "core filename."
480 msgstr ""
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid ""
486 "Paths are interpreted according to the settings that are active for the "
487 "crashing process. That means the crashing process's mount namespace (see "
488 "B<mount_namespaces>(7)), its current working directory (found via "
489 "B<getcwd>(2)), and its root directory (see B<chroot>(2))."
490 msgstr ""
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "Since Linux 2.4, Linux has also provided a more primitive method of "
497 "controlling the name of the core dump file. If the I</proc/sys/kernel/"
498 "core_uses_pid> file contains the value 0, then a core dump file is simply "
499 "named I<core>. If this file contains a nonzero value, then the core dump "
500 "file includes the process ID in a name of the form I<core.PID>."
501 msgstr ""
502
503 #. 9520628e8ceb69fa9a4aee6b57f22675d9e1b709
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "Since Linux 3.6, if I</proc/sys/fs/suid_dumpable> is set to 2 "
509 "(\"suidsafe\"), the pattern must be either an absolute pathname (starting "
510 "with a leading \\[aq]/\\[aq] character) or a pipe, as defined below."
511 msgstr ""
512
513 #. type: SS
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "Piping core dumps to a program"
518 msgstr ""
519
520 #. type: Plain text
521 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
522 #: opensuse-tumbleweed
523 msgid ""
524 "Since Linux 2.6.19, Linux supports an alternate syntax for the I</proc/sys/"
525 "kernel/core_pattern> file. If the first character of this file is a pipe "
526 "symbol (I<|>), then the remainder of the line is interpreted as the command-"
527 "line for a user-space program (or script) that is to be executed."
528 msgstr ""
529
530 #. commit 315c69261dd3fa12dbc830d4fa00d1fad98d3b03
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "Since Linux 5.3.0, the pipe template is split on spaces into an argument "
536 "list I<before> the template parameters are expanded. In earlier kernels, "
537 "the template parameters are expanded first and the resulting string is split "
538 "on spaces into an argument list. This means that in earlier kernels "
539 "executable names added by the I<%e> and I<%E> template parameters could get "
540 "split into multiple arguments. So the core dump handler needs to put the "
541 "executable names as the last argument and ensure it joins all parts of the "
542 "executable name using spaces. Executable names with multiple spaces in them "
543 "are not correctly represented in earlier kernels, meaning that the core dump "
544 "handler needs to use mechanisms to find the executable name."
545 msgstr ""
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid ""
551 "Instead of being written to a file, the core dump is given as standard input "
552 "to the program. Note the following points:"
553 msgstr ""
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "The program must be specified using an absolute pathname (or a pathname "
560 "relative to the root directory, I</>), and must immediately follow the '|' "
561 "character."
562 msgstr ""
563
564 #. type: Plain text
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 msgid ""
568 "The command-line arguments can include any of the % specifiers listed "
569 "above. For example, to pass the PID of the process that is being dumped, "
570 "specify I<%p> in an argument."
571 msgstr ""
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid "The process created to run the program runs as user and group I<root>."
577 msgstr ""
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid ""
583 "Running as I<root> does not confer any exceptional security bypasses. "
584 "Namely, LSMs (e.g., SELinux) are still active and may prevent the handler "
585 "from accessing details about the crashed process via I</proc/>pid."
586 msgstr ""
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid ""
592 "The program pathname is interpreted with respect to the initial mount "
593 "namespace as it is always executed there. It is not affected by the "
594 "settings (e.g., root directory, mount namespace, current working directory) "
595 "of the crashing process."
596 msgstr ""
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 msgid ""
602 "The process runs in the initial namespaces (PID, mount, user, and so on) "
603 "and not in the namespaces of the crashing process. One can utilize "
604 "specifiers such as I<%P> to find the right I</proc/>pid directory and probe/"
605 "enter the crashing process's namespaces if needed."
606 msgstr ""
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid ""
612 "The process starts with its current working directory as the root "
613 "directory. If desired, it is possible change to the working directory of "
614 "the dumping process by employing the value provided by the I<%P> specifier "
615 "to change to the location of the dumping process via I</proc/>pidI</cwd>."
616 msgstr ""
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid ""
622 "Command-line arguments can be supplied to the program (since Linux 2.6.24), "
623 "delimited by white space (up to a total line length of 128 bytes)."
624 msgstr ""
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 msgid ""
630 "The B<RLIMIT_CORE> limit is not enforced for core dumps that are piped to a "
631 "program via this mechanism."
632 msgstr ""
633
634 #. type: SS
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "/proc/sys/kernel/core_pipe_limit"
639 msgstr ""
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid ""
645 "When collecting core dumps via a pipe to a user-space program, it can be "
646 "useful for the collecting program to gather data about the crashing process "
647 "from that process's I</proc/>pid directory. In order to do this safely, the "
648 "kernel must wait for the program collecting the core dump to exit, so as not "
649 "to remove the crashing process's I</proc/>pid files prematurely. This in "
650 "turn creates the possibility that a misbehaving collecting program can block "
651 "the reaping of a crashed process by simply never exiting."
652 msgstr ""
653
654 #. commit a293980c2e261bd5b0d2a77340dd04f684caff58
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "Since Linux 2.6.32, the I</proc/sys/kernel/core_pipe_limit> can be used to "
660 "defend against this possibility. The value in this file defines how many "
661 "concurrent crashing processes may be piped to user-space programs in "
662 "parallel. If this value is exceeded, then those crashing processes above "
663 "this value are noted in the kernel log and their core dumps are skipped."
664 msgstr ""
665
666 #. type: Plain text
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 msgid ""
670 "A value of 0 in this file is special. It indicates that unlimited processes "
671 "may be captured in parallel, but that no waiting will take place (i.e., the "
672 "collecting program is not guaranteed access to I</proc/E<lt>crashing-"
673 "PIDE<gt>>). The default value for this file is 0."
674 msgstr ""
675
676 #. type: SS
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid "Controlling which mappings are written to the core dump"
681 msgstr ""
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid ""
687 "Since Linux 2.6.23, the Linux-specific I</proc/>pidI</coredump_filter> file "
688 "can be used to control which memory segments are written to the core dump "
689 "file in the event that a core dump is performed for the process with the "
690 "corresponding process ID."
691 msgstr ""
692
693 #. type: Plain text
694 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
695 #: opensuse-tumbleweed
696 msgid ""
697 "The value in the file is a bit mask of memory mapping types (see "
698 "B<mmap>(2)). If a bit is set in the mask, then memory mappings of the "
699 "corresponding type are dumped; otherwise, they are not dumped. The bits in "
700 "this file have the following meanings:"
701 msgstr ""
702
703 #. type: TP
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid "bit 0"
708 msgstr ""
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid "Dump anonymous private mappings."
714 msgstr ""
715
716 #. type: TP
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "bit 1"
721 msgstr ""
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 msgid "Dump anonymous shared mappings."
727 msgstr ""
728
729 #. type: TP
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "bit 2"
734 msgstr ""
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid "Dump file-backed private mappings."
740 msgstr ""
741
742 #. type: TP
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 #, no-wrap
746 msgid "bit 3"
747 msgstr ""
748
749 #. file-backed shared mappings of course also update the underlying
750 #. mapped file.
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 msgid "Dump file-backed shared mappings."
755 msgstr ""
756
757 #. type: TP
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "bit 4 (since Linux 2.6.24)"
762 msgstr ""
763
764 #. type: Plain text
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 msgid "Dump ELF headers."
768 msgstr ""
769
770 #. type: TP
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "bit 5 (since Linux 2.6.28)"
775 msgstr ""
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid "Dump private huge pages."
781 msgstr ""
782
783 #. type: TP
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 #, no-wrap
787 msgid "bit 6 (since Linux 2.6.28)"
788 msgstr ""
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid "Dump shared huge pages."
794 msgstr ""
795
796 #. type: TP
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 #, no-wrap
800 msgid "bit 7 (since Linux 4.4)"
801 msgstr ""
802
803 #. commit ab27a8d04b32b6ee8c30c14c4afd1058e8addc82
804 #. type: Plain text
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 msgid "Dump private DAX pages."
808 msgstr ""
809
810 #. type: TP
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 #, no-wrap
814 msgid "bit 8 (since Linux 4.4)"
815 msgstr ""
816
817 #. commit ab27a8d04b32b6ee8c30c14c4afd1058e8addc82
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 msgid "Dump shared DAX pages."
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "By default, the following bits are set: 0, 1, 4 (if the "
829 "B<CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS> kernel configuration option is "
830 "enabled), and 5. This default can be modified at boot time using the "
831 "I<coredump_filter> boot option."
832 msgstr ""
833
834 #. type: Plain text
835 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
836 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
837 msgid ""
838 "The value of this file is displayed in hexadecimal. (The default value is "
839 "thus displayed as 33.)"
840 msgstr ""
841
842 #. type: Plain text
843 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
844 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
845 msgid ""
846 "Memory-mapped I/O pages such as frame buffer are never dumped, and virtual "
847 "DSO (B<vdso>(7)) pages are always dumped, regardless of the "
848 "I<coredump_filter> value."
849 msgstr ""
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "A child process created via B<fork>(2) inherits its parent's "
856 "I<coredump_filter> value; the I<coredump_filter> value is preserved across "
857 "an B<execve>(2)."
858 msgstr ""
859
860 #. type: Plain text
861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
863 msgid ""
864 "It can be useful to set I<coredump_filter> in the parent shell before "
865 "running a program, for example:"
866 msgstr ""
867
868 #. type: Plain text
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid ""
873 "$B< echo 0x7 E<gt> /proc/self/coredump_filter>\n"
874 "$B< ./some_program>\n"
875 msgstr ""
876
877 #. type: Plain text
878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
880 msgid ""
881 "This file is provided only if the kernel was built with the "
882 "B<CONFIG_ELF_CORE> configuration option."
883 msgstr ""
884
885 #. type: SS
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 #, no-wrap
889 msgid "Core dumps and systemd"
890 msgstr ""
891
892 #. type: Plain text
893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
895 msgid ""
896 "On systems using the B<systemd>(1) I<init> framework, core dumps may be "
897 "placed in a location determined by B<systemd>(1). To do this, "
898 "B<systemd>(1) employs the I<core_pattern> feature that allows piping core "
899 "dumps to a program. One can verify this by checking whether core dumps are "
900 "being piped to the B<systemd-coredump>(8) program:"
901 msgstr ""
902
903 #. type: Plain text
904 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
905 #: opensuse-tumbleweed
906 #, no-wrap
907 msgid ""
908 "$B< cat /proc/sys/kernel/core_pattern>;\n"
909 "|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e\n"
910 msgstr ""
911
912 #. type: Plain text
913 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
914 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
915 msgid ""
916 "In this case, core dumps will be placed in the location configured for "
917 "B<systemd-coredump>(8), typically as B<lz4>(1) compressed files in the "
918 "directory I</var/lib/systemd/coredump/>. One can list the core dumps that "
919 "have been recorded by B<systemd-coredump>(8) using B<coredumpctl>(1):"
920 msgstr ""
921
922 #. type: Plain text
923 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
924 #: opensuse-tumbleweed
925 #, no-wrap
926 msgid ""
927 "$B< coredumpctl list | tail -5>;\n"
928 "Wed 2017-10-11 22:25:30 CEST 2748 1000 1000 3 present /usr/bin/sleep\n"
929 "Thu 2017-10-12 06:29:10 CEST 2716 1000 1000 3 present /usr/bin/sleep\n"
930 "Thu 2017-10-12 06:30:50 CEST 2767 1000 1000 3 present /usr/bin/sleep\n"
931 "Thu 2017-10-12 06:37:40 CEST 2918 1000 1000 3 present /usr/bin/cat\n"
932 "Thu 2017-10-12 08:13:07 CEST 2955 1000 1000 3 present /usr/bin/cat\n"
933 msgstr ""
934
935 #. type: Plain text
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 msgid ""
939 "The information shown for each core dump includes the date and time of the "
940 "dump, the PID, UID, and GID of the dumping process, the signal number that "
941 "caused the core dump, and the pathname of the executable that was being run "
942 "by the dumped process. Various options to B<coredumpctl>(1) allow a "
943 "specified coredump file to be pulled from the B<systemd>(1) location into a "
944 "specified file. For example, to extract the core dump for PID 2955 shown "
945 "above to a file named I<core> in the current directory, one could use:"
946 msgstr ""
947
948 #. type: Plain text
949 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
950 #: opensuse-tumbleweed
951 #, no-wrap
952 msgid "$B< coredumpctl dump 2955 -o core>;\n"
953 msgstr ""
954
955 #. type: Plain text
956 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
957 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
958 msgid "For more extensive details, see the B<coredumpctl>(1) manual page."
959 msgstr ""
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "To (persistently) disable the B<systemd>(1) mechanism that archives core "
966 "dumps, restoring to something more like traditional Linux behavior, one can "
967 "set an override for the B<systemd>(1) mechanism, using something like:"
968 msgstr ""
969
970 #. type: Plain text
971 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
972 #: opensuse-tumbleweed
973 #, no-wrap
974 msgid ""
975 "#B< echo \\[dq]kernel.core_pattern=core.%p\\[dq] E<gt> \\[rs]>;\n"
976 " \\f[B]/etc/sysctl.d/50-coredump.conf\\fR\n"
977 "#B< /lib/systemd/systemd-sysctl>;\n"
978 msgstr ""
979
980 #. type: Plain text
981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
983 msgid ""
984 "It is also possible to temporarily (i.e., until the next reboot) change the "
985 "I<core_pattern> setting using a command such as the following (which causes "
986 "the names of core dump files to include the executable name as well as the "
987 "number of the signal which triggered the core dump):"
988 msgstr ""
989
990 #. type: Plain text
991 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
992 #: opensuse-tumbleweed
993 #, no-wrap
994 msgid "#B< sysctl -w kernel.core_pattern=\\[dq]%e-%s.core\\[dq]>;\n"
995 msgstr ""
996
997 #. type: SH
998 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
999 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1000 #, no-wrap
1001 msgid "NOTES"
1002 msgstr ""
1003
1004 #. type: Plain text
1005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1007 msgid ""
1008 "The B<gdb>(1) I<gcore> command can be used to obtain a core dump of a "
1009 "running process."
1010 msgstr ""
1011
1012 #. #-#-#-#-# archlinux: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1013 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1014 #. Always including the PID in the name of the core file made
1015 #. sense for LinuxThreads, where each thread had a unique PID,
1016 #. but doesn't seem to serve any purpose with NPTL, where all the
1017 #. threads in a process share the same PID (as POSIX.1 requires).
1018 #. Probably the behavior is maintained so that applications using
1019 #. LinuxThreads continue appending the PID (the kernel has no easy
1020 #. way of telling which threading implementation the user-space
1021 #. application is using). -- mtk, April 2006
1022 #. type: Plain text
1023 #. #-#-#-#-# debian-trixie: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1024 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1025 #. Always including the PID in the name of the core file made
1026 #. sense for LinuxThreads, where each thread had a unique PID,
1027 #. but doesn't seem to serve any purpose with NPTL, where all the
1028 #. threads in a process share the same PID (as POSIX.1 requires).
1029 #. Probably the behavior is maintained so that applications using
1030 #. LinuxThreads continue appending the PID (the kernel has no easy
1031 #. way of telling which threading implementation the user-space
1032 #. application is using). -- mtk, April 2006
1033 #. type: Plain text
1034 #. #-#-#-#-# debian-unstable: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1035 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1036 #. Always including the PID in the name of the core file made
1037 #. sense for LinuxThreads, where each thread had a unique PID,
1038 #. but doesn't seem to serve any purpose with NPTL, where all the
1039 #. threads in a process share the same PID (as POSIX.1 requires).
1040 #. Probably the behavior is maintained so that applications using
1041 #. LinuxThreads continue appending the PID (the kernel has no easy
1042 #. way of telling which threading implementation the user-space
1043 #. application is using). -- mtk, April 2006
1044 #. type: Plain text
1045 #. #-#-#-#-# fedora-44: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1046 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1047 #. Always including the PID in the name of the core file made
1048 #. sense for LinuxThreads, where each thread had a unique PID,
1049 #. but doesn't seem to serve any purpose with NPTL, where all the
1050 #. threads in a process share the same PID (as POSIX.1 requires).
1051 #. Probably the behavior is maintained so that applications using
1052 #. LinuxThreads continue appending the PID (the kernel has no easy
1053 #. way of telling which threading implementation the user-space
1054 #. application is using). -- mtk, April 2006
1055 #. type: Plain text
1056 #. #-#-#-#-# fedora-rawhide: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1057 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1058 #. Always including the PID in the name of the core file made
1059 #. sense for LinuxThreads, where each thread had a unique PID,
1060 #. but doesn't seem to serve any purpose with NPTL, where all the
1061 #. threads in a process share the same PID (as POSIX.1 requires).
1062 #. Probably the behavior is maintained so that applications using
1063 #. LinuxThreads continue appending the PID (the kernel has no easy
1064 #. way of telling which threading implementation the user-space
1065 #. application is using). -- mtk, April 2006
1066 #. type: Plain text
1067 #. #-#-#-#-# mageia-cauldron: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1068 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1069 #. Always including the PID in the name of the core file made
1070 #. sense for LinuxThreads, where each thread had a unique PID,
1071 #. but doesn't seem to serve any purpose with NPTL, where all the
1072 #. threads in a process share the same PID (as POSIX.1 requires).
1073 #. Probably the behavior is maintained so that applications using
1074 #. LinuxThreads continue appending the PID (the kernel has no easy
1075 #. way of telling which threading implementation the user-space
1076 #. application is using). -- mtk, April 2006
1077 #. type: Plain text
1078 #. #-#-#-#-# opensuse-leap-16-1: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1079 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1080 #. Always including the PID in the name of the core file made
1081 #. sense for LinuxThreads, where each thread had a unique PID,
1082 #. but doesn't seem to serve any purpose with NPTL, where all the
1083 #. threads in a process share the same PID (as POSIX.1 requires).
1084 #. Probably the behavior is maintained so that applications using
1085 #. LinuxThreads continue appending the PID (the kernel has no easy
1086 #. way of telling which threading implementation the user-space
1087 #. application is using). -- mtk, April 2006
1088 #. type: Plain text
1089 #. #-#-#-#-# opensuse-tumbleweed: core.5.pot (PACKAGE VERSION) #-#-#-#-#
1090 #. Changed with commit 6409324b385f3f63a03645b4422e3be67348d922
1091 #. Always including the PID in the name of the core file made
1092 #. sense for LinuxThreads, where each thread had a unique PID,
1093 #. but doesn't seem to serve any purpose with NPTL, where all the
1094 #. threads in a process share the same PID (as POSIX.1 requires).
1095 #. Probably the behavior is maintained so that applications using
1096 #. LinuxThreads continue appending the PID (the kernel has no easy
1097 #. way of telling which threading implementation the user-space
1098 #. application is using). -- mtk, April 2006
1099 #. type: Plain text
1100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1102 msgid ""
1103 "In Linux versions up to and including 2.6.27, if a multithreaded process "
1104 "(or, more precisely, a process that shares its memory with another process "
1105 "by being created with the B<CLONE_VM> flag of B<clone>(2)) dumps core, then "
1106 "the process ID is always appended to the core filename, unless the process "
1107 "ID was already included elsewhere in the filename via a I<%p> specification "
1108 "in I</proc/sys/kernel/core_pattern>. (This is primarily useful when "
1109 "employing the obsolete LinuxThreads implementation, where each thread of a "
1110 "process has a different PID.)"
1111 msgstr ""
1112
1113 #. type: SH
1114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1116 #, no-wrap
1117 msgid "EXAMPLES"
1118 msgstr ""
1119
1120 #. type: Plain text
1121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1123 msgid ""
1124 "The program below can be used to demonstrate the use of the pipe syntax in "
1125 "the I</proc/sys/kernel/core_pattern> file. The following shell session "
1126 "demonstrates the use of this program (compiled to create an executable named "
1127 "I<core_pattern_pipe_test>):"
1128 msgstr ""
1129
1130 #. type: Plain text
1131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1133 #, no-wrap
1134 msgid ""
1135 "$B< cc -o core_pattern_pipe_test core_pattern_pipe_test.c>\n"
1136 "$B< su>\n"
1137 "Password:\n"
1138 "#B< echo \\[dq]|$PWD/core_pattern_pipe_test %p UID=%u GID=%g sig=%s\\[dq] E<gt> \\[rs]>\n"
1139 "B</proc/sys/kernel/core_pattern>\n"
1140 "#B< exit>\n"
1141 "$B< sleep 100>\n"
1142 "B<\\[ha]\\[rs]> # type control-backslash\n"
1143 "Quit (core dumped)\n"
1144 "$B< cat core.info>\n"
1145 "argc=5\n"
1146 "argc[0]=E<lt>/home/mtk/core_pattern_pipe_testE<gt>\n"
1147 "argc[1]=E<lt>20575E<gt>\n"
1148 "argc[2]=E<lt>UID=1000E<gt>\n"
1149 "argc[3]=E<lt>GID=100E<gt>\n"
1150 "argc[4]=E<lt>sig=3E<gt>\n"
1151 "Total bytes in core dump: 282624\n"
1152 msgstr ""
1153
1154 #. type: SS
1155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1157 #, no-wrap
1158 msgid "Program source"
1159 msgstr ""
1160
1161 #. type: Plain text
1162 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1163 #: opensuse-tumbleweed
1164 #, no-wrap
1165 msgid ""
1166 "/* core_pattern_pipe_test.c */\n"
1167 "\\&\n"
1168 "#define _GNU_SOURCE\n"
1169 "#include E<lt>sys/stat.hE<gt>\n"
1170 "#include E<lt>fcntl.hE<gt>\n"
1171 "#include E<lt>limits.hE<gt>\n"
1172 "#include E<lt>stdio.hE<gt>\n"
1173 "#include E<lt>stdlib.hE<gt>\n"
1174 "#include E<lt>unistd.hE<gt>\n"
1175 "\\&\n"
1176 "#define BUF_SIZE 1024\n"
1177 "\\&\n"
1178 "int\n"
1179 "main(int argc, char *argv[])\n"
1180 "{\n"
1181 " ssize_t nread, tot;\n"
1182 " char buf[BUF_SIZE];\n"
1183 " FILE *fp;\n"
1184 " char cwd[PATH_MAX];\n"
1185 "\\&\n"
1186 " /* Change our current working directory to that of the\n"
1187 " crashing process. */\n"
1188 "\\&\n"
1189 " snprintf(cwd, PATH_MAX, \"/proc/%s/cwd\", argv[1]);\n"
1190 " chdir(cwd);\n"
1191 "\\&\n"
1192 " /* Write output to file \"core.info\" in that directory. */\n"
1193 "\\&\n"
1194 " fp = fopen(\"core.info\", \"w+\");\n"
1195 " if (fp == NULL)\n"
1196 " exit(EXIT_FAILURE);\n"
1197 "\\&\n"
1198 " /* Display command-line arguments given to core_pattern\n"
1199 " pipe program. */\n"
1200 "\\&\n"
1201 " fprintf(fp, \"argc=%d\\[rs]n\", argc);\n"
1202 " for (size_t j = 0; j E<lt> argc; j++)\n"
1203 " fprintf(fp, \"argc[%zu]=E<lt>%sE<gt>\\[rs]n\", j, argv[j]);\n"
1204 "\\&\n"
1205 " /* Count bytes in standard input (the core dump). */\n"
1206 "\\&\n"
1207 " tot = 0;\n"
1208 " while ((nread = read(STDIN_FILENO, buf, BUF_SIZE)) E<gt> 0)\n"
1209 " tot += nread;\n"
1210 " fprintf(fp, \"Total bytes in core dump: %zd\\[rs]n\", tot);\n"
1211 "\\&\n"
1212 " fclose(fp);\n"
1213 " exit(EXIT_SUCCESS);\n"
1214 "}\n"
1215 msgstr ""
1216
1217 #. type: SH
1218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1220 #, no-wrap
1221 msgid "SEE ALSO"
1222 msgstr ""
1223
1224 #. type: Plain text
1225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1227 msgid ""
1228 "B<bash>(1), B<coredumpctl>(1), B<gdb>(1), B<getrlimit>(2), B<mmap>(2), "
1229 "B<prctl>(2), B<sigaction>(2), B<elf>(5), B<proc>(5), B<pthreads>(7), "
1230 "B<signal>(7), B<systemd-coredump>(8)"
1231 msgstr ""
1232
1233 #. type: TH
1234 #: debian-trixie fedora-44 fedora-rawhide
1235 #, no-wrap
1236 msgid "2024-06-15"
1237 msgstr ""
1238
1239 #. type: TH
1240 #: debian-trixie
1241 #, no-wrap
1242 msgid "Linux man-pages 6.9.1"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: debian-trixie fedora-44 fedora-rawhide
1247 msgid ""
1248 "Since Linux 2.6.19, Linux supports an alternate syntax for the I</proc/sys/"
1249 "kernel/core_pattern> file. If the first character of this file is a pipe "
1250 "symbol (B<|>), then the remainder of the line is interpreted as the command-"
1251 "line for a user-space program (or script) that is to be executed."
1252 msgstr ""
1253
1254 #. type: Plain text
1255 #: debian-trixie fedora-44 fedora-rawhide
1256 msgid ""
1257 "The value in the file is a bit mask of memory mapping types (see "
1258 "B<mmap>(2)). If a bit is set in the mask, then memory mappings of the "
1259 "corresponding type are dumped; otherwise they are not dumped. The bits in "
1260 "this file have the following meanings:"
1261 msgstr ""
1262
1263 #. type: Plain text
1264 #: debian-trixie fedora-44 fedora-rawhide
1265 #, no-wrap
1266 msgid ""
1267 "$ B<cat /proc/sys/kernel/core_pattern>\n"
1268 "|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e\n"
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: debian-trixie fedora-44 fedora-rawhide
1273 #, no-wrap
1274 msgid ""
1275 "$ B<coredumpctl list | tail -5>\n"
1276 "Wed 2017-10-11 22:25:30 CEST 2748 1000 1000 3 present /usr/bin/sleep\n"
1277 "Thu 2017-10-12 06:29:10 CEST 2716 1000 1000 3 present /usr/bin/sleep\n"
1278 "Thu 2017-10-12 06:30:50 CEST 2767 1000 1000 3 present /usr/bin/sleep\n"
1279 "Thu 2017-10-12 06:37:40 CEST 2918 1000 1000 3 present /usr/bin/cat\n"
1280 "Thu 2017-10-12 08:13:07 CEST 2955 1000 1000 3 present /usr/bin/cat\n"
1281 msgstr ""
1282
1283 #. type: Plain text
1284 #: debian-trixie fedora-44 fedora-rawhide
1285 #, no-wrap
1286 msgid "$ B<coredumpctl dump 2955 -o core>\n"
1287 msgstr ""
1288
1289 #. type: Plain text
1290 #: debian-trixie fedora-44 fedora-rawhide
1291 #, no-wrap
1292 msgid ""
1293 "# B<echo \"kernel.core_pattern=core.%p\" E<gt> \\[rs]>\n"
1294 " B</etc/sysctl.d/50-coredump.conf>\n"
1295 "# B</lib/systemd/systemd-sysctl>\n"
1296 msgstr ""
1297
1298 #. type: Plain text
1299 #: debian-trixie fedora-44 fedora-rawhide
1300 #, no-wrap
1301 msgid "# B<sysctl -w kernel.core_pattern=\"%e-%s.core\">\n"
1302 msgstr ""
1303
1304 #. type: Plain text
1305 #: debian-trixie fedora-44 fedora-rawhide
1306 #, no-wrap
1307 msgid ""
1308 "/* core_pattern_pipe_test.c */\n"
1309 "\\&\n"
1310 "#define _GNU_SOURCE\n"
1311 "#include E<lt>sys/stat.hE<gt>\n"
1312 "#include E<lt>fcntl.hE<gt>\n"
1313 "#include E<lt>limits.hE<gt>\n"
1314 "#include E<lt>stdio.hE<gt>\n"
1315 "#include E<lt>stdlib.hE<gt>\n"
1316 "#include E<lt>unistd.hE<gt>\n"
1317 "\\&\n"
1318 "#define BUF_SIZE 1024\n"
1319 "\\&\n"
1320 "int\n"
1321 "main(int argc, char *argv[])\n"
1322 "{\n"
1323 " ssize_t nread, tot;\n"
1324 " char buf[BUF_SIZE];\n"
1325 " FILE *fp;\n"
1326 " char cwd[PATH_MAX];\n"
1327 "\\&\n"
1328 " /* Change our current working directory to that of the\n"
1329 " crashing process. */\n"
1330 "\\&\n"
1331 " snprintf(cwd, PATH_MAX, \"/proc/%s/cwd\", argv[1]);\n"
1332 " chdir(cwd);\n"
1333 "\\&\n"
1334 " /* Write output to file \"core.info\" in that directory. */\n"
1335 "\\&\n"
1336 " fp = fopen(\"core.info\", \"w+\");\n"
1337 " if (fp == NULL)\n"
1338 " exit(EXIT_FAILURE);\n"
1339 "\\&\n"
1340 " /* Display command-line arguments given to core_pattern\n"
1341 " pipe program. */\n"
1342 "\\&\n"
1343 " fprintf(fp, \"argc=%d\\[rs]n\", argc);\n"
1344 " for (size_t j = 0; j E<lt> argc; j++)\n"
1345 " fprintf(fp, \"argc[%zu]=E<lt>%sE<gt>\\[rs]n\", j, argv[j]);\n"
1346 "\\&\n"
1347 " /* Count bytes in standard input (the core dump). */\n"
1348 "\\&\n"
1349 " tot = 0;\n"
1350 " while ((nread = read(STDIN_FILENO, buf, BUF_SIZE)) E<gt> 0)\n"
1351 " tot += nread;\n"
1352 " fprintf(fp, \"Total bytes in core dump: %zd\\[rs]n\", tot);\n"
1353 "\\&\n"
1354 " fclose(fp);\n"
1355 " exit(EXIT_SUCCESS);\n"
1356 "}\n"
1357 msgstr ""
1358
1359 #. type: TH
1360 #: fedora-44 fedora-rawhide
1361 #, no-wrap
1362 msgid "Linux man-pages 6.13"
1363 msgstr ""
1364
1365 #. type: TH
1366 #: mageia-cauldron
1367 #, no-wrap
1368 msgid "2026-02-08"
1369 msgstr ""
1370
1371 #. type: TH
1372 #: mageia-cauldron
1373 #, no-wrap
1374 msgid "Linux man-pages 6.17"
1375 msgstr ""
1376
1377 #. type: TH
1378 #: opensuse-leap-16-1 opensuse-tumbleweed
1379 #, no-wrap
1380 msgid "Linux man-pages (unreleased)"
1381 msgstr ""