Tuesday, July 8, 2008

Core dump information

To determine what program dumped an anonymous core file, use gdb:
----------
$ gdb -core core
Core was generated by `a.out'.
Program terminated with signal 6, Abort trap.
----------

If you are on a system without gdb, try the file command:
----------
$ file core
core: ELF 32-bit LSB core file of 'a.out' (signal 6)
$

----------

No comments: