gdb如何查看core文件中各个线程的信号
时间:2008-12-18
来源:互联网
原来在solaris上调core的时候都是pflags+pstack,用pflags看到是哪个线程core了之后用pstack来看相关的堆栈,
现在用gdb的thread all apply倒是可以获取core文件所有线程的堆栈,但是每个线程的信号不知道如何获取
现在用gdb的thread all apply倒是可以获取core文件所有线程的堆栈,但是每个线程的信号不知道如何获取
作者: newskying 发布时间: 2008-12-18
linux环境生成的core会记录线程的信号么?
作者: newskying 发布时间: 2008-12-18
一般打开core的时候倒是有core的停止信号,但是不知道是哪个线程的。怎么能看出core在哪个线程上的?
Core was generated by `imapsvcd -name cmdc_agent -sysagent 10.121.71.153 -port 31153 -agentid 0 -threa'.
Program terminated with signal 6, Aborted.
用info threads status获取到的信息就这些了,但事实上搜索各个线程后才发现是core在8号线程上的
(gdb) 14 process 31930 0xffffe410 in __kernel_vsyscall ()
13 process 31993 0xffffe410 in __kernel_vsyscall ()
12 process 31994 0xffffe410 in __kernel_vsyscall ()
11 process 31995 0xffffe410 in __kernel_vsyscall ()
10 process 31996 0xffffe410 in __kernel_vsyscall ()
9 process 32036 0xffffe410 in __kernel_vsyscall ()
8 process 32037 0xffffe410 in __kernel_vsyscall ()
7 process 32160 0xffffe410 in __kernel_vsyscall ()
6 process 32253 0xffffe410 in __kernel_vsyscall ()
5 process 32258 0xffffe410 in __kernel_vsyscall ()
4 process 32259 0xffffe410 in __kernel_vsyscall ()
3 process 32302 0xffffe410 in __kernel_vsyscall ()
2 process 367 0xffffe410 in __kernel_vsyscall ()
* 1 process 31834 0xffffe410 in __kernel_vsyscall ()
Core was generated by `imapsvcd -name cmdc_agent -sysagent 10.121.71.153 -port 31153 -agentid 0 -threa'.
Program terminated with signal 6, Aborted.
用info threads status获取到的信息就这些了,但事实上搜索各个线程后才发现是core在8号线程上的
(gdb) 14 process 31930 0xffffe410 in __kernel_vsyscall ()
13 process 31993 0xffffe410 in __kernel_vsyscall ()
12 process 31994 0xffffe410 in __kernel_vsyscall ()
11 process 31995 0xffffe410 in __kernel_vsyscall ()
10 process 31996 0xffffe410 in __kernel_vsyscall ()
9 process 32036 0xffffe410 in __kernel_vsyscall ()
8 process 32037 0xffffe410 in __kernel_vsyscall ()
7 process 32160 0xffffe410 in __kernel_vsyscall ()
6 process 32253 0xffffe410 in __kernel_vsyscall ()
5 process 32258 0xffffe410 in __kernel_vsyscall ()
4 process 32259 0xffffe410 in __kernel_vsyscall ()
3 process 32302 0xffffe410 in __kernel_vsyscall ()
2 process 367 0xffffe410 in __kernel_vsyscall ()
* 1 process 31834 0xffffe410 in __kernel_vsyscall ()
作者: newskying 发布时间: 2008-12-19
一看就是我司员工,咳
作者: scwinter 发布时间: 2011-12-16
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28