Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 14:50:15 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Michael Reynolds <wshs@delinked.us>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Debugging kernel panics
Message-ID:  <20030916052015.GA7654@wantadilla.lemis.com>
In-Reply-To: <3F5D853F.6000106@delinked.us>
References:  <3F5D853F.6000106@delinked.us>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030916052015.GA7654>