回忆之城
生命在于折腾
posts - 575,comments - 9,trackbacks - 0
方法一:
fuser -v /path/to/file

方法二:
lsof
方法三:

vim 打开core文件,用二进制方式显示,vim命令行中输入 :%!xxd,
在80,81行(不同程序不一样)看到程序名,
for example

80 00004f0: 612e 6f75 7400 0000 0000 0000 0000 0000  a.out...........
81 0000500: 2e2f 612e 6f75 7420 0000 0000 0000 0000  ./a.out ........

这个coredump是由./a.out引起的

posted on 2014-09-18 14:19 回忆之城 阅读(1122) 评论(0)  编辑 收藏 引用 所属分类: unix/linuxshell
只有注册用户登录后才能发表评论。