HI, i am recently in a project in linux written in C.
This app has several processes and they share a block of shared memory…When the app run for about several hrs, a process collapsed without any footprints so it’s very diffficult to know what the problem was or where i can start to review the codes….
well, it could be memory overflown or pointer malused…but i dunno exactly…
Do you have any tools or any methods to detect the problems…
It will very appreciated if it get resolved. thanx for your advice…
HI, i am recently in a project in linux written in C. This app
Share
Before you start the program, enable core dumps:
(and make sure the working directory of the process is writeable by the process)
After the process crashes, it should leave behind a
corefile, which you can then examine withgdb:Alternatively, you can run the process under
gdbwhen you start it –gdbwill wake up when the process crashes.