Chinaunix
标题:
(分享)在tru64上如何利用core dump 调试程序
[打印本页]
作者:
xiaomao2006
时间:
2007-05-15 00:14
标题:
(分享)在tru64上如何利用core dump 调试程序
1.配置core dump
在Generic 子系统查看内核中core dump 配置情况
sysconfig -q generic | grep dump
确保完整生成core dump 信息
sysconfig -r generic partial_dump=0
使多个程序各自生成的core dump 文件冲突,即有不同的文件名
sysconfig -r proc enhanced_core_name=1
指定core dump 生成目录
mkdir /usr/Corefiles
sysconfig -r generic live_dump_dir_name=/usr/Corefiles
2.验证core dump
sleep 5000 &
ps -ef | grep sleep
kill -s SEGV PID-of-sleep
查看是否有core dump file 生成,并且两个sleep程序是否会生成不同的文件,使后一个不会覆盖前一个生成的core文件
3.利用decladebug调试程序
# decladebug /usr/bin/xxxx ./core.xxxx.host.0.20070515_0724234
Welcome to the Ladebug Debugger Version 69 (built May 4 2003 for Tru64 UNIX)
------------------
object file name: xxxx
core file name./core.xxxx.host.0.20070515_0724234
….
….
作者:
飞天二狭
时间:
2007-05-15 04:20
谢谢分享
作者:
mykings
时间:
2007-05-17 21:10
高级进阶
作者:
czyf2001
时间:
2008-02-12 21:23
dxladebug
dbx
厉害,厉害!呵呵!
作者:
wstar
时间:
2008-08-12 20:56
感谢lz的分享。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2