No core-dumps after recent upgrades to systemd?
From the docs on coredump.conf
,
To disable a configuration file supplied by the vendor, the recommended way is to place a symlink to
/dev/null
in the configuration directory in/etc/
, with the same filename as the vendor configuration file.
sudo ln -s /dev/null /etc/sysctl.d/coredump.conf
sudo systemd-sysctl
Since systemd, things are managed differently.
You might want to use the coredumpctl
command to either retrieve your core dump or run gdb on it. That's the 'systemd approved' method of dealing with them. :-/
In a certain sense, it's sort of nice that systemd is capturing all of these things because it will erase them automatically after while, and it also makes it easy to upload crash dumps for bug reports.
But, it was a jarring change with little in the way of notification or hints for people who knew how coredumps worked before systemd got involved. Even dropping a file named 'core.pid.txt' with instructions to use coredumpctl to get your coredump as well as how to turn off the creation of the .txt
files would've been a big help, even though those would've also littered the filesystem for awhile.