| Login

Search this Blog


Links I like to keep around


Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Sep15

Written by:R Teachout
9/15/2008 10:43 PM 

how to use gdb to debug something in asterisk (I used this to help the chan_sccp_b developers to find a bug in the module unloading/loading process

how to use gdb to debug something in asterisk (I used this to help the chan_sccp_b developers to find a bug in the module unloading/loading process

gdb asterisk
then type
set args -cf
(enter)
run
(enter)

Then cause the crash

you should just copy and paste the backtrace once asterisk crashes
type:
bt full
(enter)

That's the information a developer would need to know to find the bug in the module.

 

 

Tags:

Old programmers never die. They just terminate and stay resident.
-Unknown

Inspired by Nina