Greg Wooledge wrote on 12/4/25 2:38 PM:
On Thu, Dec 04, 2025 at 14:34:06 -0700, D. R. Evans wrote:
"man core" says: "By default, a core dump file is named core, but the
/proc/sys/kernel/core_pattern file (since Linux 2.6 and 2.4.21) can be set
to define a template that is used to name core dump files". FWIW, in my case
/proc/sys/kernel/core_pattern contains only the four bytes: core. But for
some reason (that is as clear as mud to me) the dot and the PID is still
being appended to the name when the core file is created.
It goes on to say:
For backward compatibility, if /proc/sys/kernel/core_pattern
does not include %p and /proc/sys/kernel/core_uses_pid (see below)
is nonzero, then .PID will be appended to the core filename.
This is core(5) for the record. "man core" may bring up other pages
depending on what's installed.
Brilliant! Thank you very much.
Something (not I) must have changed the value in
/proc/sys/kernel/core_uses_pid. I've never messed with any of these
/proc/sys/kernel files, but the behaviour has changed at some point in the
not-very-distant past. (I suspect the upgrade to trixie -- I'm fairly sure
that I was seeing the old behaviour up until that point -- but it doesn't
really matter what caused the change. Now I know how to get the old behaviour
back :-) )
Doc
--
Web: http://enginehousebooks.com/drevans