I am not getting a coredump with the whole process
I am trying to get a coredump, so I am using:
ulimit -c unlimited
I run my program in the background and I kill it:
kill -SEGV %1
But I just get:
[1]+ Exit 1 ./Test
And no releases are created. I have done the same with other programs and it works, so why doesn't it work with everyone? Can anyone help me?
Thanks. (GNU / Linux, Debian 2.6.26)
a source to share
If your program intercepts the SEGV signal and does something else, it will not call the OS kernel reset routine. Make sure he doesn't.
On Linux, processes that change their user ID using setuid, seteuid or some other parameter are excluded from the reset base for security reasons (Think: / bin / passwd flushes the kernel when reading / etc / shadow into memory)
You can re-enable kernel dumping in Linux programs that change their user ID by calling prctl () after the UID has changed
a source to share