From owner-freebsd-questions Thu Mar 8 11:14:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from priv-edtnes09-hme0.telusplanet.net (mtaout.telus.net [199.185.220.235]) by hub.freebsd.org (Postfix) with ESMTP id 34C4237B719 for ; Thu, 8 Mar 2001 11:14:32 -0800 (PST) (envelope-from trevin@mail.com) Received: from CRX.sfu.ca ([209.53.63.29]) by priv-edtnes09-hme0.telusplanet.net (InterMail vM.4.01.03.10 201-229-121-110) with ESMTP id <20010308191427.WPJK22442.priv-edtnes09-hme0.telusplanet.net@CRX.sfu.ca> for ; Thu, 8 Mar 2001 12:14:27 -0700 Message-Id: <5.0.2.1.2.20010308111416.02ab43e8@mail.trevinchow.com> X-Sender: tmchow@mail.trevinchow.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 08 Mar 2001 11:17:42 -0800 To: questions@freebsd.org From: Trevin Chow Subject: Trying to debug my kernel -- but lost :) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi guys, I'm trying to follow the directions in the FreeBSD handbook about debugging the kernel using my dumped core with gbd, but I'm totally lost :) I followed the directions about entering "symbol-file kernel.debug", "exec-file /var/crash/kernel.0" and "exec-file /var/crash/vmcore.0". Now I'm in gdb with no idea what to do.. I've never debugged with gdb and I have no clue where to go from here.... this is all a little beyond me :) Here's the output from my session: ------------------------------------- (/sys/compile/BENNY)--# gdb -k (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...done. (kgdb) exec-file /var/crash/kernel.0 (kgdb) core-file /var/crash/vmcore.0 IdlePTD 2830336 initial pcb at 2380e0 panicstr: ffs_valloc: dup alloc panic messages: --- panic: ffs_valloc: dup alloc syncing disks... 119 117 91 61 28 7 done Uptime: 1d18h32m12s dumping to dev #ad/0x20001, offset 163840 dump ata0: resetting devices .. done 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 dumpsys () at ../../kern/kern_shutdown.c:469 469 if (dumping++) { (kgdb) where #0 dumpsys () at ../../kern/kern_shutdown.c:469 #1 0xc01392ef in boot (howto=256) at ../../kern/kern_shutdown.c:309 #2 0xc013966c in poweroff_wait (junk=0xc0208621, howto=-1071610368) at ../../kern/kern_shutdown.c:556 #3 0xc0196bc4 in ffs_valloc (pvp=0xc4f3ed40, mode=33133, cred=0xc0a57000, vpp=0xc4feaca4) at ../../ufs/ffs/ffs_alloc.c:609 #4 0xc01a8fc3 in ufs_makeinode (mode=33133, dvp=0xc4f3ed40, vpp=0xc4feaee0, cnp=0xc4feaef4) at ../../ufs/ufs/ufs_vnops.c:2082 #5 0xc01a6978 in ufs_create (ap=0xc4feae00) at ../../ufs/ufs/ufs_vnops.c:184 #6 0xc01a917d in ufs_vnoperate (ap=0xc4feae00) at ../../ufs/ufs/ufs_vnops.c:2287 #7 0xc016bdd8 in vn_open (ndp=0xc4feaecc, fmode=1550, cmode=365) at vnode_if.h:106 #8 0xc0168004 in open (p=0xc4f8e8e0, uap=0xc4feaf80) at ../../kern/vfs_syscalls.c:995 #9 0xc01e7a29 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134817981, tf_esi = 27, tf_ebp = -1077937464, tf_isp = -989941804, tf_ebx = 1549, tf_edx = 27, tf_ecx = -30, tf_eax = 5, tf_trapno = 7, tf_err = 2, tf_eip = 134680024, tf_cs = 31, tf_eflags = 518, tf_esp = -1077937828, tf_ss = 47}) at ../../i386/i386/trap.c:1150 #10 0xc01dc4a5 in Xint0x80_syscall () #11 0x8050a1d in ?? () #12 0x8052da2 in ?? () #13 0x8048135 in ?? () (kgdb) -------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message