You are not logged in.

#1 2016-06-26 22:34:22

scummos
Member
Registered: 2013-03-08
Posts: 14

disable systemd coredumps?

Hey,

I do software development. During that, programs segfault, and they do that often. I really do not want something to create a 300 MB core file each time something segfaults. How do I turn that off? I tried setting

[Coredump]
Storage=none

in /etc/systemd/coredump.conf.d/custom.conf, and setting

kernel.core_pattern =

in /etc/sysctl.d/50-no-coredump.conf, but the former did nothing apparently and the latter just makes all the dumps have an empty file name (except for the dot and the PID).

Any ideas?
Greetings,
Sven

Offline

#2 2016-06-26 22:37:32

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,403
Website

Re: disable systemd coredumps?

Have you tried masking systemd-coredump.socket?

Disclaimer: I haven't tried this, I have no idea if there are any negative consequences beyond stopping the coredump handling.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-06-26 23:06:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: disable systemd coredumps?

@op - This should do it:

/etc/systemd/coredump.conf
[Coredump]
Storage=none

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-06-27 16:46:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: disable systemd coredumps?

OP may have found this in https://wiki.archlinux.org/index.php/Core_dump , so maybe the wiki needs fixing.
See also a recent edit: https://wiki.archlinux.org/index.php?ti … did=432913

Offline

#5 2016-06-27 19:27:35

scummos
Member
Registered: 2013-03-08
Posts: 14

Re: disable systemd coredumps?

graysky wrote:

@op - This should do it:

/etc/systemd/coredump.conf
[Coredump]
Storage=none

This seems to have worked. Thanks a lot!

Offline

#6 2016-07-10 12:58:28

wkd
Member
Registered: 2016-04-04
Posts: 28

Re: disable systemd coredumps?

This will prevent the storage of coredumps, but you can disable their generation completely by symlinking /etc/sysctl.d/50-coredump.conf to /dev/null.

Offline

Board footer

Powered by FluxBB