Hello,
I want to generate core dump files from my program when it crashes. Its a pretty big process and has about 10-11 threads in it.
I have followed the documentation to enable core dump by setting ulimit to unlimited etc. I quickly tried "A demo program creating a core dump" from the following webpage, which succeeds in Segfault and dumping a core file in the directory that I configured.
http://www.shinguz.ch/MySQL/mysql_hunting_the_core.html
However, I tried running my original program and caused it to crash. I did this by making calls to kill(), raise() or the same null pointer access as shown in the webpage above. In each case, my program crashed but did not generate a core dump file. Am I missing something?
My program is in C++ and my environment is Redhat 9.0 (kernel 2.4.20)
Going through the "Why do I NOT get a core dump?" section on the same webpage as above, I can see two potential problems. One - there are issues with the suid/sgid (bullet # 6). I am not able to change any settings with suid because my system does not contain either /proc/sys/fs/suid_dumpable or /proc/sys/kernel/suid_dumpable
Two, my program has threads in it and the bullet # 8 is the problem. Any thoughts on how to solve this would be much appreciated.
thanks in advance
sabeel