Voir :
Note : Avec SystemD le core est à configurer dans le service
ulimit -S -c 0
/etc/security/limits.conf
* soft core unlimited
Vérif
ulimit -H -c ulimit -S -c
echo "/var/lib/core" > /proc/sys/kernel/core_pattern
/etc/sysctl.conf
# Controls whether core dumps will append the PID to the core filename # Useful for debugging multi-threaded applications kernel.core_uses_pid = 1
# cat /proc/sys/kernel/core_pattern |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e
crash.c
int main() { return 1/0; }
gcc crash.c ./a.out
kill -s SIGSEGV 1234
coredumpctl info
coredumpctl -r
# coredumpctl -1 TIME PID UID GID SIG COREFILE EXE Tue 2026-10-27 11:41:43 CET 2290233 0 0 11 none /home/ansible/malloc_bad.bin