I have a program that crashes, After it crashes I want to know the stack trace. coredump can give me that. I am trying to enable this before program starts, so that once the program crashes I would know where exactly it is crashing.
I have enabled core dump using
ulimit -c unlimited
and then gave a command
gcore pid
I get a file core.pid in my current working Directory.
But I am not able to view its content.
I am not sure that the steps i did for generating the dump are correct also how to open this core file.
I have enabled core dump using
ulimit -c unlimited
and then gave a command
gcore pid
I get a file core.pid in my current working Directory.
But I am not able to view its content.
I am not sure that the steps i did for generating the dump are correct also how to open this core file.
Comment