From owner-freebsd-stable@FreeBSD.ORG Thu Feb 22 13:22:26 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FA0D16A402 for ; Thu, 22 Feb 2007 13:22:26 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from alnrmhc16.comcast.net (alnrmhc16.comcast.net [204.127.225.96]) by mx1.freebsd.org (Postfix) with ESMTP id 16AA213C494 for ; Thu, 22 Feb 2007 13:22:25 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-71-198-0-135.hsd1.ca.comcast.net[71.198.0.135]) by comcast.net (alnrmhc16) with ESMTP id <20070222132225b1600ap4uje>; Thu, 22 Feb 2007 13:22:25 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id C02441FA01D; Thu, 22 Feb 2007 05:22:24 -0800 (PST) Date: Thu, 22 Feb 2007 05:22:24 -0800 From: Jeremy Chadwick To: Alexander Shikoff Message-ID: <20070222132224.GA14615@icarus.home.lan> Mail-Followup-To: Alexander Shikoff , freebsd-stable@freebsd.org References: <20070222115644.GA55416@crete.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070222115644.GA55416@crete.org.ua> X-PGP-Key: http://jdc.parodius.com/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org Subject: Re: Cannot obtain kernel dump in /var/crash X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 13:22:26 -0000 On Thu, Feb 22, 2007 at 01:56:44PM +0200, Alexander Shikoff wrote: > Hello, > > I've discovered reproducable kernel panic but I cannot obtain a dump. > > I have in rc.conf: > > dumpdev="/dev/ad2s1b" > savecore_flags="-f" > > ... and in kernel configuration: > > options KDB > options DDB > options KDB_UNATTENDED > makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols > > My RAM size is 768 MB and swap size is 1024 MB. > > When rebooting after a crash I see in console: > Feb 22 13:40:41 crete savecore: unable to force dump - bad magic > Feb 22 13:40:41 crete savecore: no dumps found > > Any suggestions? Thanks. Is /dev/ad2s1b the correct location? Possibly you meant ad0s1b or some other adX device? (Common mistake.) Do you have a swap device defined, particularly in /etc/fstab?o What does swapinfo say? Does the same happen if you say dumpdev="auto" or if you remove the -f flag from savecore_flags? It may be worth peeking through /etc/rc.d/dumpon and imitating some of the commands there to see if you can reproduce it. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |