How to use core dump?

Hi all,

One of my application exits abnormally if the system load is high. I can’t
figure out what is happening. It produces dump in the var/dumps directory
but does not show any indication of it (core dumped etc.). How can I use the
core dump to find out the problem?

Thanks

Hi,
Brief info you could get by ‘coreinfo’ utility. Also you could use debuger (gdb, for example) and
connect it to core file in order to see what’s happening. (see help pages for coreinfo and gdb in
utilities and programer guid topics for details).
Best regards.

Eduard.
ed1k at ukr dot net

Farooque Khan <farooquek@concretioindia.com> wrote in article <aggu5m$qvh$1@inn.qnx.com>…

Hi all,

One of my application exits abnormally if the system load is high. I can’t
figure out what is happening. It produces dump in the var/dumps directory
but does not show any indication of it (core dumped etc.). How can I use the
core dump to find out the problem?

Thanks

Thanks a lot. I used DDD to read the file. It’s a very good tool. It showed
me the source file and line at which point my proggy dumped.

Thanks again.

-Farooque

“ed1k” <ed1k@spamerstrap.com> wrote in message
news:01c2280d$5b2f2f20$106fa8c0@ED1K…

Hi,
Brief info you could get by ‘coreinfo’ utility. Also you could use debuger
(gdb, for example) and
connect it to core file in order to see what’s happening. (see help pages
for coreinfo and gdb in
utilities and programer guid topics for details).
Best regards.

Eduard.
ed1k at ukr dot net

Farooque Khan <> farooquek@concretioindia.com> > wrote in article
aggu5m$qvh$> 1@inn.qnx.com> >…
Hi all,

One of my application exits abnormally if the system load is high. I
can’t
figure out what is happening. It produces dump in the var/dumps
directory
but does not show any indication of it (core dumped etc.). How can I use
the
core dump to find out the problem?

Thanks

Thanks a lot. I used DDD to read the file. It’s a very good tool. It showed
me the source file and line at which point my proggy dumped.

Thanks again.

-Farooque

“ed1k” <ed1k@spamerstrap.com> wrote in message
news:01c2280d$5b2f2f20$106fa8c0@ED1K…

Hi,
Brief info you could get by ‘coreinfo’ utility. Also you could use debuger
(gdb, for example) and
connect it to core file in order to see what’s happening. (see help pages
for coreinfo and gdb in
utilities and programer guid topics for details).
Best regards.

Eduard.
ed1k at ukr dot net

Farooque Khan <> farooquek@concretioindia.com> > wrote in article
aggu5m$qvh$> 1@inn.qnx.com> >…
Hi all,

One of my application exits abnormally if the system load is high. I
can’t
figure out what is happening. It produces dump in the var/dumps
directory
but does not show any indication of it (core dumped etc.). How can I use
the
core dump to find out the problem?

Thanks

Run ‘gdb /usr/local/bin/myapp /var/dumps/myapp.core’, and then in gdb run
‘bt’ to get a backtrace.

Cheers,
Shaun


Farooque Khan <farooquek@concretioindia.com> wrote in message
news:aggu5m$qvh$1@inn.qnx.com

Hi all,

One of my application exits abnormally if the system load is high. I can’t
figure out what is happening. It produces dump in the var/dumps directory
but does not show any indication of it (core dumped etc.). How can I use
the
core dump to find out the problem?

Thanks