Something about subject you may know, but let me summarize.
gdb is the tool, which can analyze core file.
Check the your version:
$ gdb --version
I will talk about
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
This GDB was configured as "x86_64-linux-gnu".
Syntax of command line is:
$ gdb [bin] [core]
The most rapid command is:
$ gdb core.12345
which prints binary of core, and the reason of core ( Aborted, Segmentaion Fault, and so on )
when you know binary you can retrieve more info about core invoking
$ gdb ./binary core.12345
GDB is iterative tool, after printing initial info, its provide a user prompt:
(gdb)
One of useful command here is "where" (or just "whe", "backtrace", "bac") , which prints the backtrace brought about crash ( or just before aborting and dumping core ).
You can see such abracadabra
#0 0x00007fe1bf1b2015 in raise () from /lib/libc.so.6
#0 0x00007fe1bf1b2015 in raise () from /lib/libc.so.6
#1 0x00007fe1bf1b3b83 in abort () from /lib/libc.so.6
#2 0x00007fe1bf1aad89 in __assert_fail () from /lib/libc.so.6
#3 0x00007fe1c0c86460 in tca::control::ControlChannelEndpoint::ControlChannelEndpoint () from ../lib/libtcacontrol.so
#4 0x00007fffc95045b0 in ?? ()
#5 0x00007fffc9504690 in ?? ()
#6 0x0000000000000190 in ?? ()
#7 0x0000000000000001 in ?? ()
#8 0x00007fffc9504690 in ?? ()
#9 0x000000000064e780 in ?? ()
#10 0x00007fe1bf1fb0a6 in free () from /lib/libc.so.6
#11 0x000000000248fdf8 in ?? ()
#12 0x00007fffc9504570 in ?? ()
#13 0x0000000002491550 in ?? ()
#14 0x00007fffc9504690 in ?? ()
#15 0x000000000064e780 in ?? ()
#16 0x00000000ffffffff in ?? ()
#17 0x00007fe1bf9ff854 in std::basic_filebuf >::overflow () from /usr/lib/libstdc++.so.6
#18 0x0000000000000000 in ?? ()
This steps automated by attached script "acore". It has 2 forms to invoke : en masse and single file.
$ acore ./core*
./core.12803 6,Aborted.
./core.13082 6,Aborted.
./core.15706 6,Aborted.
./core.26637 6,Aborted.
./core.7913 6,Aborted.
$ acore ./core.12803
will dump all useful info auto.
You can upload this script by any sftp client, on windows, one goes with putty package ( PSCP, PSFTP ) to any directory which is in your PATH env (~/bin)
If cannot upload, you can download it from a shell by wget tool
$ wget 'http://vaultsoft.ru/files/acore'
| Attachment | Size |
|---|---|
| acore | 1.84 KB |