From owner-freebsd-questions Sun Jan 21 14:36:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.161.193]) by hub.freebsd.org (Postfix) with ESMTP id 1A28A37B401 for ; Sun, 21 Jan 2001 14:36:23 -0800 (PST) Received: from mail.vt.edu (gkar.cc.vt.edu [198.82.161.190]) by lennier.cc.vt.edu (8.11.0/8.11.0) with ESMTP id f0LMaLv374885 for ; Sun, 21 Jan 2001 17:36:21 -0500 (EST) Received: from zathras.cc.vt.edu ([198.82.162.117]) by gkar.cc.vt.edu (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0G7J007SJASK8E@gkar.cc.vt.edu> for freebsd-questions@freebsd.org; Sun, 21 Jan 2001 17:36:20 -0500 (EST) Date: Sun, 21 Jan 2001 17:36:41 -0500 From: dfisher Subject: kernel debug To: freebsd-questions@freebsd.org Message-id: <3A731724@zathras.cc.vt.edu> MIME-version: 1.0 X-Mailer: WebMail (Hydra) SMTP v3.61 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-WebMail-UserID: dfisher X-EXP32-SerialNo: 00002964 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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