From owner-freebsd-questions@FreeBSD.ORG Sun Apr 18 15:48:42 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 1FE2F16A4E9 for ; Sun, 18 Apr 2004 15:48:42 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81DC743D31 for ; Sun, 18 Apr 2004 15:48:41 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 6EFB42BD8F for ; Mon, 19 Apr 2004 08:48:39 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 5D6E651222; Mon, 19 Apr 2004 08:18:37 +0930 (CST) Date: Mon, 19 Apr 2004 08:18:37 +0930 From: Greg 'groggy' Lehey To: Jorn Argelo Message-ID: <20040418224837.GP74025@wantadilla.lemis.com> References: <200404182001.46732.jorn@wcborstel.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W4pDZ/VvazBYHhxQ" Content-Disposition: inline In-Reply-To: <200404182001.46732.jorn@wcborstel.nl> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: questions@freebsd.org Subject: 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: Sun, 18 Apr 2004 22:48:42 -0000 --W4pDZ/VvazBYHhxQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 did an locate.updatedb as root and try to find it then, but I > still couldn't find it. Hopefully somebody can point me into the > right direction First you need to build a debug kernel. This probably means that the dump you have is "the one that got away". You could do some limited analysis of the stripped kernel, but that's Deep Magic. > (I used > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html) You might take a look at http://www.lemis.com/papers/Taiwan/tutorial.pdf, which is a little more update. Note, though, that it's still a draft. If you see any mistakes, please contact me. 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. --W4pDZ/VvazBYHhxQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFAgwXFIubykFB6QiMRAieeAKCa2sJdv3dqK9Of8+XVUzHSOgH2TQCggGax ApSmphVsaQwGxmyzM2IGA7w= =yzrY -----END PGP SIGNATURE----- --W4pDZ/VvazBYHhxQ--