[llvm-bugs] [Bug 46452] New: disable_coredump=1 does not disable coredump on systemd
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 25 04:11:50 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46452
Bug ID: 46452
Summary: disable_coredump=1 does not disable coredump on
systemd
Product: compiler-rt
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: asan
Assignee: unassignedbugs at nondot.org
Reporter: ed at catmur.co.uk
CC: llvm-bugs at lists.llvm.org
(related: #44214)
If /proc/sys/kernel/core_pattern is a pipe (e.g. '|/usr/bin/coredump
<args...>') then setting RLIMIT_CORE to 0 does not actually disable coredumps;
they are still generated and passed to the coredump helper, which will then
send it to /dev/null (if written to respect RLIMIT_CORE).
Per https://github.com/systemd/systemd/issues/2643#issuecomment-234021824 the
solution is to set RLIMIT_CORE=1 (!) which will fully disable core dumping (no
core is generated, the coredump helper is not invoked, and si_code is
CLD_KILLED not CLD_DUMPED).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200625/a94c40db/attachment.html>
More information about the llvm-bugs
mailing list