免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2447 | 回复: 6
打印 上一主题 下一主题

怎么根据shell产生的core文件找错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-27 16:47 |只看该作者 |倒序浏览
我还是第一次注意到shell也会产生core文件,找了半天都不知道怎么调试,哪位还能指点一下啊?
这个shell以前一直是正常运行的,不知道怎么会宕掉,想不明白。难道跟主机繁忙有关系?
leslin 该用户已被删除
2 [报告]
发表于 2004-12-27 22:38 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2004-12-27 22:55 |只看该作者

怎么根据shell产生的core文件找错误

[quote]原帖由 "leslin"]关注,不知是否方便将shell贴出来给大家见识下~[/quote 发表:

9494~~~,正好学习学习!

论坛徽章:
0
4 [报告]
发表于 2004-12-27 23:09 |只看该作者

怎么根据shell产生的core文件找错误

我今天装了个sed新版本,结果一运行也出现core文件了。

不知道core文件怎么看啊。。

论坛徽章:
0
5 [报告]
发表于 2004-12-28 03:34 |只看该作者

怎么根据shell产生的core文件找错误

原帖由 "ZealeS" 发表:
我今天装了个sed新版本,结果一运行也出现core文件了。

不知道core文件怎么看啊。。


It's difficult to analyse core dump file. It bases on how much knowledge you
understand  about system kernel.

Some debuggers used to do it:

gdb, ddd in Linux
adb, mdb, act  in Solaris

论坛徽章:
0
6 [报告]
发表于 2004-12-28 08:59 |只看该作者

怎么根据shell产生的core文件找错误

不好意思啊,不能直接贴出来.shell的作用是到远程主机上去取文件,写起来不是很难。
问题是用用dbx调试的时候,它说:
Type 'help' for help.
Core file program (sh) does not match current program (core ignored)
warning: cannot execute ftpfile.sh
reading symbolic information ...
既然是core文件,居然不能用dbx跟踪,真是奇怪。

请问lightspeed,你在其他主机上用过调试工具跟踪过shell的core文件吗?有什么建议。

论坛徽章:
0
7 [报告]
发表于 2004-12-28 13:08 |只看该作者

怎么根据shell产生的core文件找错误

原帖由 "soloarrow" 发表:
不好意思啊,不能直接贴出来.shell的作用是到远程主机上去取文件,写起来不是很难。
问题是用用dbx调试的时候,它说:
Type 'help' for help.
Core file program (sh) does not match current program (core ignor..........


Core dump analysis is not for end users. I don't think you can get
useful information from it without enough experience and skills.

Leave it alone.  If it happened again and again,  call vendor's support hotline.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP