Asterisk gdb如何使用gdb和Asterisk 11.5.1调试崩溃,但仍无法生成核心Dunp为什么?
========================= [root@officekam星号-11.5.1]df-h 已使用的文件系统大小可用已安装的文件系统% /开发/sda2 143G 69G 67G 51%/ /dev/sda1 97M 44M 49M 48%/开机 tmpfs 1008M 0 1008M 0%/dev/shm ==============Asterisk gdb如何使用gdb和Asterisk 11.5.1调试崩溃,但仍无法生成核心Dunp为什么?,gdb,segmentation-fault,asterisk,coredump,Gdb,Segmentation Fault,Asterisk,Coredump,========================= [root@officekam星号-11.5.1]df-h 已使用的文件系统大小可用已安装的文件系统% /开发/sda2 143G 69G 67G 51%/ /dev/sda1 97M 44M 49M 48%/开机 tmpfs 1008M 0 1008M 0%/dev/shm ============== **# /etc/profile** # System wide environment and startup programs, fo
**# /etc/profile**
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT good idea to change this file unless you know what you
# are doing. Much better way is to create custom.sh shell script in
# /etc/profile.d/ to make custom changes to environment. This will
# prevent need for merging in future updates.
每一步都很简单。
/etc/asterisk/asterisk.conf
--
目录
astetcdir=>/etc/asterisk
astmoddir=>/usr/lib/asterisk/modules
astvarlibdir=>/var/lib/asterisk
astdbdir=>/var/lib/asterisk
astkeydir=>/var/lib/asterisk
astdatadir=>/var/lib/asterisk
astagdir=>/var/lib/asterisk/agi-bin
astspooldir=>/var/spool/asterisk
Astrondir=>/var/run/asterisk
astlogdir=>/var/log/asterisk
[options]
;verbose = 3
;debug = 3
;alwaysfork = yes ; Same as -F at startup.
;nofork = yes ; Same as -f at startup.
;quiet = yes ; Same as -q at startup.
;timestamp = yes ; Same as -T at startup.
;execincludes = yes ; Support #exec in config files.
;console = yes ; Run as console (same as -c at startup).
;highpriority = yes ; Run realtime priority (same as -p at
; startup).
;initcrypto = yes ; Initialize crypto keys (same as -i at
; startup).
;nocolor = yes ; Disable console colors.
;dontwarn = yes ; Disable some warnings.
**dumpcore = yes** ; Dump core on crash (same as -g at startup).
======================
我的系统:
/usr/src/asterisk-11.5.1/:
我使用以下命令运行星号:asterisk-U asterisk-vvvvvv gc-dddddddd
注:
gdb正在安装中
ulimit-U unlimit
但核心文件没有生成。
那么如何使用$gdb corefile呢
=======其他设置========
已添加DAEMON\u COREFILE\u LIMIT=unlimited。
守护进程\u COREFILE\u LIMIT=无限制
=============================
**# /etc/profile**
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT good idea to change this file unless you know what you
# are doing. Much better way is to create custom.sh shell script in
# /etc/profile.d/ to make custom changes to environment. This will
# prevent need for merging in future updates.
ulimit-c unlimited>/dev/null 2>&1
**
你需要
1用调试符号编译星号
2在/etc/asterisk/asterisk.conf中启用堆芯转储
查看更多信息,请访问