Monday, March 6, 2017

core dump



ulimit -c unlimited

check up
ulimit -a 

echo /tmp/core-%e-%s-%u-%g-%p-%t > /proc/sys/kernel/core_pattern
echo 1 > core_uses_pid
echo 2 > suid_dumpable

Create a dummy test process
sleep 100&

kill and create a dump file
kill -ABRT <pid>


No comments:

Post a Comment