免费注册 查看新帖 |

Chinaunix

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

core dump [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-16 18:42 |只看该作者 |倒序浏览

when trying to load the block driver, the system crashed and gave a core dump.

use dumpadm to show where the dump file is,
-bash-3.00# dumpadm
      Dump content: kernel pages
       Dump device: /dev/dsk/c0d0s1 (swap)
Savecore directory: /var/crash/sunhost
  Savecore enabled: yes

but on solaris 6 or earlier release, modify /etc/inid.d/syssetup to change the directory.

-bash-3.00# ls -l
total 117202
-rw-r--r--   1 root     root           2 May 16 17:41 bounds
-rw-r--r--   1 root     root     1241958 May 16 17:41 unix.0
-rw-r--r--   1 root     root     58707968 May 16 17:41 vmcore.0

Fortunately, there are some clues in the system log. So no need to do analysis of the dump file.

May 16 17:38:02 jackv genunix: [ID 335743 kern.notice] BAD TRAP: type=e (#pf Page fault) rp=d6270c30 addr=c occu
rred in module "block_1" due to a NULL pointer dereference
May 16 17:38:02 jackv unix: [ID 100000 kern.notice]
May 16 17:38:02 jackv unix: [ID 839527 kern.notice] sched:
May 16 17:38:02 jackv unix: [ID 753105 kern.notice] #pf Page fault
May 16 17:38:02 jackv unix: [ID 532287 kern.notice] Bad kernel fault at addr=0xc
May 16 17:38:02 jackv unix: [ID 243837 kern.notice] pid=0, pc=0xfa452482, sp=0xfa4521d0, eflags=0x10286
find the bug in the code. It was a NULL pointer.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38597/showart_302708.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP