From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 22:20:20 2003 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 9371716A4C2 for ; Mon, 15 Sep 2003 22:20:20 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F8B243F3F for ; Mon, 15 Sep 2003 22:20:18 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C5542526C1; Tue, 16 Sep 2003 14:50:15 +0930 (CST) Date: Tue, 16 Sep 2003 14:50:15 +0930 From: Greg 'groggy' Lehey To: Michael Reynolds Message-ID: <20030916052015.GA7654@wantadilla.lemis.com> References: <3F5D853F.6000106@delinked.us> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <3F5D853F.6000106@delinked.us> User-Agent: Mutt/1.4i 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: freebsd-questions@freebsd.org Subject: Re: Debugging kernel panics 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: Tue, 16 Sep 2003 05:20:20 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 9 September 2003 at 3:46:07 -0400, Michael Reynolds wrote: > I've recently cvsup'd from 4.8-STABLE to 4.9-PRERELEASE. After a > reboot, my machine's kernel panics at the initialization of the xl1 > device (a 3com nic). I've checked out the FAQ on the site, under > advanced topics, regarding kernel panics, and read the relevant man > pages. I have 2 swap partitions, ad0s1b, and ad2s1b. I have set > dumpdev to "ad2s1b" in /etc/rc.conf and /boot/loader.conf. I've also > built a debug kernel. However, it appears a kernel core is not being > dumped on panic. I've manually executed savecore, with force option, > and it wrote a 0 byte vmcore. That probably means that there wasn't a dump there. You normally don't need to force it. > Is there anywhere else I need to specify the dump device? No, that's all. > Do I need to specify the full path instead of just the device? Ah, yes, of course. There's no way for the dump routines to guess a path. Try /dev/ad2s1b. > I've not had a kernel panic before, so I'm pretty much a newbie when > it comes to that aspect. I have no custom code added to the kernel. > Any help will be *greatly* appreciated. A couple of other points: 1. Your swap partition needs to be at least fractionally larger than your real memory. The dump routines write a dump and a header. 2. You need enough space for the dump on /var/crash. Otherwise it won't save the dump. 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 See complete headers for address and phone numbers --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/Zp2PIubykFB6QiMRAoIdAKCuKliCfPEGwCmci+226SlzHARzhwCgkyyV bzG3JQCYMR0yRq3hsy/UQL0= =9VAP -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--