前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >确定core文件是由哪个文件产生的方法

确定core文件是由哪个文件产生的方法

作者头像
血狼debugeeker
发布2018-09-20 14:46:03
1.9K0
发布2018-09-20 14:46:03
举报
文章被收录于专栏:debugeeker的专栏

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://cloud.tencent.com/developer/article/1344559

代码语言:txt
复制
              1.用gdb打开core文件来确定。如下例子:
代码语言:javascript
复制
[xuzhina@localhost ~]$ ls
asm.list    Desktop    Downloads  Pictures  Templates  vmtoolsd
core.22625  Documents  Music      Public    Videos     vmtoolsd.tar.gz
[xuzhina@localhost ~]$ ls core.22625 
core.22625
[xuzhina@localhost ~]$ gdb -c core.22625 
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[New LWP 22625]
[New LWP 22680]
Core was generated by `/usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr --blockFd 3'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) 

2.用file命令来确定,如下例子:

代码语言:javascript
复制
[xuzhina@localhost ~]$ ls -l core.22625 
-rw-------. 1 xuzhina xuzhina 16257024 Sep  5 23:50 core.22625
[xuzhina@localhost ~]$ file core.22625 
core.22625: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr --blockFd 3'
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2015年01月13日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档