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


Groups > linux.debian.user > #209840

Re: How to disable automatic core dumps in Debian 9?

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: How to disable automatic core dumps in Debian 9?
Date 2019-06-12 14:00 +0200
Message-ID <y8a53-6St-1@gated-at.bofh.it> (permalink)
References <y883g-5Is-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	Hi.

On Wed, Jun 12, 2019 at 12:49:14PM +0300, Martin T wrote:
> As Debian does not seem to use systemd-coredump,

It's a feature, not a flaw.


> then I set the "kernel.core_pattern=|/bin/false" kernel configuration
> in sysctl.conf

sysctl -w kernel.core_pattern=/dev/null

There's no need to pipe the core to /bin/false if you don't need the
core in the first place.


> 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
> $

rgrep core /etc/security/limits*

Would be more correct. Files at /etc/security/limits.d/ can override
limits.conf.


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

A simple 'ulimit -c' would suffice.

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | 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