From owner-freebsd-questions@FreeBSD.ORG Mon Apr 19 12:47:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68C3916A4CF for ; Mon, 19 Apr 2004 12:47:54 -0700 (PDT) Received: from voyager.twobirds.us (c-24-18-214-102.client.comcast.net [24.18.214.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id F001743D45 for ; Mon, 19 Apr 2004 12:47:53 -0700 (PDT) (envelope-from joshua@twobirds.us) Received: from [63.226.239.158] (helo=twobirds.us) by voyager.twobirds.us with smtp (Exim 4.31; FreeBSD) id 1BFek9-0002UI-2h; Mon, 19 Apr 2004 12:47:49 -0700 Date: Mon, 19 Apr 2004 12:47:25 -0700 From: Joshua Lokken To: ben@twobirds.us Message-ID: <20040419194725.GA1606@freebsd.jolok.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Organization: Little to none... X-Mailman-Approved-At: Tue, 20 Apr 2004 05:31:00 -0700 Subject: Fw: Re: Kernel debugging question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 19:47:54 -0000 ----- Forwarded message from Greg 'groggy' Lehey ----- From: "Greg 'groggy' Lehey" Date: Mon, 19 Apr 2004 19:36:45 +0930 To: Jorn Argelo Cc: questions@freebsd.org Subject: Re: Kernel debugging question User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project On Monday, 19 April 2004 at 11:45:37 +0200, Jorn Argelo wrote: > On Monday 19 April 2004 00:48, you wrote: >> On Sunday, 18 April 2004 at 20:01:46 +0200, Jorn Argelo wrote: >>> Hey folks, >>> >>> I've been trying to debug my kernel. I've successfully extracted a kernel >>> dump as described in the development handbook. However, as soon as I come >>> across this step, I don't know how to continue: >>> >>> # cd /usr/obj/usr/src/sys/KERNCONF >>> # gdb -k /boot/kernel/kernel.debug /var/crash/vmcore.0 >>> >>> The problem is, kernel.debug doesn't exist at all. >> >> This means you didn't build one. > > I forgot to add the following kernel option: > > makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbol That's about right. > I did enable the rest though. This is the output of the debugging, What is the output of the "debugging"? Your message contained only the panic message and the gdb prompt: > #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 > (kgdb) You want at least a backtrace. > though it seems somewhat different then the output on the FreeBSD > page. Do you think the folks at current or hackers can do something > with this? Yes. > Or am I forgetting something? Yes. Debugging crash dumps is work. People occasionally do work for free, but I'd be very surprised if you found somebody to help you with this one, especially without a debug kernel or even a backtrace. I'd suggest you catch another dump after you've booted your debug kernel, then post the backtrace. That way we'll have something to go on. If I have time, I'll reply with a preliminary analysis. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. ----- End forwarded message ----- --