2009-12-22 15:06:10 -05:00
|
|
|
#!/bin/sh
|
2010-01-21 19:30:42 -05:00
|
|
|
fspid=$(cat /usr/local/freeswitch/run/freeswitch.pid)
|
2009-02-25 12:14:44 -05:00
|
|
|
gcore -o /usr/local/freeswitch/log/freeswitch.gcore $fspid && \
|
|
|
|
gdb /usr/local/freeswitch/bin/freeswitch \
|
|
|
|
-c /usr/local/freeswitch/log/freeswitch.gcore.$fspid \
|
2008-07-24 12:14:20 -04:00
|
|
|
--eval-command='set pagination off' \
|
|
|
|
--eval-command='bt' \
|
|
|
|
--eval-command='bt full' \
|
|
|
|
--eval-command='thread apply all bt' \
|
|
|
|
--eval-command='thread apply all bt full' \
|
|
|
|
--eval-command='quit'
|
2009-02-25 12:14:44 -05:00
|
|
|
#rm /usr/local/freeswitch/log/freeswitch.gcore.$fspid
|