Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #209834

How to disable automatic core dumps in Debian 9?

From Martin T <m4rtntns@gmail.com>
Newsgroups linux.debian.user
Subject How to disable automatic core dumps in Debian 9?
Date 2019-06-12 11:50 +0200
Message-ID <y883g-5Is-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to disable automatic core dumps in Debian 9? Martin T <m4rtntns@gmail.com> - 2019-06-12 11:50 +0200
  Re: How to disable automatic core dumps in Debian 9? Reco <recoverym4n@enotuniq.net> - 2019-06-12 14:00 +0200
    Re: How to disable automatic core dumps in Debian 9? Martin T <m4rtntns@gmail.com> - 2019-06-12 16:20 +0200
      Re: How to disable automatic core dumps in Debian 9? Reco <recoverym4n@enotuniq.net> - 2019-06-12 16:40 +0200

csiph-web