In order to activate the core dump do the following:
In /etc/profile
comment the line:
# ulimit -S -c 0 > /dev/null 2>&1
In /etc/security/limits.conf
comment out the line:
* soft core 0
execute the cmd limit coredumpsize unlimited
and check it with cmd limit
:
# limit coredumpsize unlimited
# limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 10240 kbytes
coredumpsize unlimited
memoryuse unlimited
vmemoryuse unlimited
descriptors 1024
memorylocked 32 kbytes
maxproc 528383
#
to check if the corefile gets written you can kill the relating process with cmd kill -s SEGV <PID>
(should not be needed, just in case no core file gets written this can be used as a check):
# kill -s SEGV <PID>
Once the corefile has been written make sure to deactivate the coredump settings again in the relating files (1./2./3.) !