1833776 Members
2048 Online
110063 Solutions
New Discussion

Re: view core dump

 
cch_1
Occasional Contributor

view core dump

how to find out the cause of of core dump, by just viewing the "core" file? should I use any tools ? or simply use "strings core" for viewing those text... ?or should I should gdb for better debuging...?

dummy developer
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: view core dump

Hi,

In addition,

# file core

If it is a system crash dump, use q4.

Hope this helps. Regards.

Steven Sim Kok Leong
Deepak Extross
Honored Contributor

Re: view core dump

Well, if "file core" or "strings core" gives you the info you need, you need not venture any further.
But if you need to backtrace to the line of code that caused the core dump, then you'll need a debugger like gdb, xdb or adb. There should be some threads in this forum dealing with the usage of debuggers.
Trond Haugen
Honored Contributor

Re: view core dump

I would definitely use 'file core' over strings, as the latter will give you all the "standard text" as well. That will give you the name of the program that left the core file and the signal it went down on.
If you have toe source code and have compiled it with debugging info you can use gdb to debug the program.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Ricardo Bassoi
Regular Advisor

Re: view core dump

Hi,

Its simple to see the main reason that cause the core. Just use the cmd:

what core

"If you never try, never you??ll learn "
If you never try, never will work