system:coredumps
Это старая версия документа!
Add/uncomment to /etc/security/limits.conf
* soft core unlimited
Add to /etc/sysctl.conf
kernel.core_pattern = /var/coredumps/core-%e-%s-%u-%g-%p-%t
Create /var/coredumps/
Run
sysctl -p ulimit -c unlimited
Restart all needed services
For testing create file test.c
int a (int *p) { int y = *p; return y; } int main (void) { int *p = 0; /* null pointer */ return a (p); }
Compile and run
gcc -o test test.c && ./test
system/coredumps.1526384593.txt.gz · Последнее изменение: — bers
