How to get crash info from core file with GDB

From Kolmisoft Wiki
Revision as of 14:40, 17 November 2009 by Admin (talk | contribs) (New page: Install gdb: yum install -y gdb Go to /tmp folder: cd /tmp Check for core files which are generated when Asterisk crashes: ls You should see something like this: [root@billing t...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Install gdb:

yum install -y gdb

Go to /tmp folder:

cd /tmp

Check for core files which are generated when Asterisk crashes:

ls

You should see something like this:

[root@billing tmp]# ls
hsperfdata_root  
mor_ast_h323.log  
mor_crash.log
core.billing.nlc.kz-2009-11-13T13:58:06+0600  
core.billing.nlc.kz-2009-11-16T14:53:09+0600  
filegt1h7z                                     
mc-root          
mor_ast_reg.log   
mor_debug.txt

Files marked in bold are core files which we are interested in.

Select one core file, let's say second one and issue:

gdb asterisk core.billing.nlc.kz-2009-11-16T14:53:09+0600

you should see a lot of output which is not interesting for us, when it stops issue: