[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to disable automatic core dumps in Debian 9?



Hi,

how to disable all automatic core dumps upon the process termination
in Debian 9? As Debian does not seem to use systemd-coredump, then I
set the "kernel.core_pattern=|/bin/false" kernel configuration in
sysctl.conf and following pam_limits.so module configuration:

$ grep -w core /etc/security/limits.conf
#        - core - limits the core file size (KB)
*               hard    core            0
root            hard    core            0
#root            hard    core            100000
$

When I execute a program, which crashes, then while the "core dumped"
is printed:

$ ./testprogram
Floating point exception (core dumped)
$

..then no actual core dump does not seem to be created.

Is the configuration above enough to disable core dumps or am I
missing something?

thanks,
Martin


Reply to: