|
Linux Open coredump
mkdir -p / home / data / core file
chmod 777 / home / data / corefile
echo "ulimit -S -c unlimited> / dev / null 2> & 1" >> / etc / profile
source / etc / profile
echo "1"> / proc / sys / kernel / core_uses_pid
echo "/ home / data / corefile / core-% e-% p_% t"> / proc / sys / kernel / core_pattern
echo "1"> / proc / sys / fs / suid_dumpable
After executing the above command
If any program on this machine a core out, it will generate a core file in / home / data / corefile, easy to reproduce the problem. |
|
|
|