You are not logged in.
Pages: 1
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
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
@op - This should do it:
/etc/systemd/coredump.conf
[Coredump]
Storage=none
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
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
@op - This should do it:
/etc/systemd/coredump.conf [Coredump] Storage=none
This seems to have worked. Thanks a lot!
Offline
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
Pages: 1