jack_zheng 发表于 2007-05-16 18:42

core dump


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: 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:
May 16 17:38:02 jackv unix: sched:
May 16 17:38:02 jackv unix: #pf Page fault
May 16 17:38:02 jackv unix: Bad kernel fault at addr=0xc
May 16 17:38:02 jackv unix: 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
页: [1]
查看完整版本: core dump