From 85ec1b6efadf3466bd1d265950f3d967a43cb1d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Aug 2023 12:09:15 +0200 Subject: [PATCH] coredump: explicitly document that in order to process a coredump we have to write it to disk first Prompted by: #28740 --- man/coredump.conf.xml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/man/coredump.conf.xml b/man/coredump.conf.xml index f36a6e1eae..ac8d984670 100644 --- a/man/coredump.conf.xml +++ b/man/coredump.conf.xml @@ -57,18 +57,22 @@ Storage= Controls where to store cores. One of none, - external, and journal. When - none, the core dumps may be logged (including the backtrace if - possible), but not stored permanently. When external (the - default), cores will be stored in /var/lib/systemd/coredump/. - When journal, cores will be stored in the journal and rotated - following normal journal rotation patterns. + external, and journal. When none, the core + dumps may be logged (including the backtrace if possible), but not stored permanently. When + external (the default), cores will be stored in + /var/lib/systemd/coredump/. When journal, cores will be + stored in the journal and rotated following normal journal rotation patterns. - When cores are stored in the journal, they might be - compressed following journal compression settings, see + When cores are stored in the journal, they might be compressed following journal compression + settings, see journald.conf5. - When cores are stored externally, they will be compressed - by default, see below. + When cores are stored externally, they will be compressed by default, see below. + + Note that in order to process a coredump (i.e. extract a stack trace) the core must be written + to disk first. Thus, unless ProcessSizeMax= is set to 0 (see below), the core will + be written to /var/lib/systemd/coredump/ either way (under a temporary filename, + or even in an unlinked file), Storage= thus only controls whether to leave it + there even after it was processed. @@ -84,7 +88,7 @@ ProcessSizeMax= The maximum size in bytes of a core which will be processed. Core dumps exceeding - this size may be stored, but the backtrace will not be generated. Like other sizes in this same + this size may be stored, but the stack trace will not be generated. Like other sizes in this same config file, the usual suffixes to the base of 1024 are allowed (B, K, M, G, T, P, and E). Defaults to 1G on 32-bit systems, 32G on 64-bit systems.