Related:
- How do I analyze a program's core dump file with GDB when it has command-line parameters?
- Core dump file analysis
What are the most common ways to debug a core dump file? The two ways that I have tried are using readelf
:
$ readelf core -a
And then using gdb
:
$ gdb file core
However, with gdb I don't get much information (at least not that I can make sense of). For example it shows:
Reading symbols from file...
(No debugging symbols found in file)
[New LWP 46778]
Core was generated by `./file'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000040100a in ?? ()
>>> bt
#0 0x000000000040100a in ?? ()
#1 0x0000000000000001 in ?? ()
#2 0x00007ffe342c3cbe in ?? ()
#3 0x0000000000000000 in ?? ()
What sense can someone make of that though? What would be an example of how the core
file could be used to make sense of something?