Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2001 17:36:41 -0500
From:      dfisher <dfisher@vt.edu>
To:        freebsd-questions@freebsd.org
Subject:   kernel debug
Message-ID:  <3A731724@zathras.cc.vt.edu>

next in thread | raw e-mail | index | archive | help
hello,

I'm running 4.2-Release and my machine will crash sometimes for no apparent 
reason.
The last time this happened I recompiled my kernel with:
makeoptions     DEBUG=-g
And added dumpdev="/dev/ad0s1b" to my rc.conf

Last night my machine rebooted again so I decided to try some kernel 
debugging.

The first thing I noticed is that I couldn't find kernel.debug, which I 
thought was supposed to be created for me.
So I ran the following commands & got this error:

# cp kernel kernel.debug
# strip -g kernel
/usr/libexec/elf/strip: kernel: rename: Operation not permitted

I figured it was some permission error and didn't worry about it.
Next I went to my kernel compile directory and ran:

# gdb -k
(kgdb) symbol-file /kernel.debug
Reading symbols from /kernel.debug...(no debugging symbols found)...done.

I thought the above error was strange, but since I don't know what I'm doing I 
continued with:

(kgdb) exec-file /var/crash/kernel.0 
(kgdb) core-file /var/crash/vmcore.0

And got the following output:

IdlePTD 3235840
initial pcb at 298c40
panicstr: ffs_fsync: not dirty
panic messages:
---
panic: ffs_fsync: not dirty

syncing disks... 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 
giving up on 88 buffers
Uptime: 4d14h31m58s

dumping to dev #ad/0x20001, offset 327680
dump ata0: resetting devices .. done
96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 
70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 
44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 
18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  0xc013c2ba in dumpsys ()


Can anyone give some insight into what's going on here?
Thanks...

--
Daniel Fisher



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A731724>