From owner-freebsd-questions@FreeBSD.ORG Fri Dec 1 20:22:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0510716A403 for ; Fri, 1 Dec 2006 20:22:37 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FE5243CCE for ; Fri, 1 Dec 2006 20:21:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 349C71A4D9A; Fri, 1 Dec 2006 12:22:02 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C3D475125E; Fri, 1 Dec 2006 15:21:43 -0500 (EST) Date: Fri, 1 Dec 2006 15:21:43 -0500 From: Kris Kennaway To: Cheng Jin Message-ID: <20061201202143.GA27869@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: 5.4 kernel crashdump not consistently working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2006 20:22:37 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 01, 2006 at 11:48:06AM -0800, Cheng Jin wrote: > hi, >=20 > i have run into this strange problem of kernel crashdump not > working consistently under FreeBSd 5.4. we have bunch of development > machines with identical physical configurations, and every one of > them is setup to save the vmcore after a panic. The difference > as far as i could tell is the FreeBSD 5.4 version, which=20 > different people installed using different methods, CD, network, CVS... >=20 > I followed the instructions found on the official FreeBSD site > as far as i could tell. >=20 > including in the kernel config file the following options >=20 > options DDB > options KDB > options GDB > options KDB_UNATTENDED >=20 > include in the /etc/rc.conf file >=20 > dumpdev=3D"/dev/ad0s1b" # 2GB swap partition with 1GB of physical memory > dumpdir=3D"/usr/crash" # >=20 > and making sure the dir exists >=20 > crashdump works on some of these machines, but not on others, and > on those that don't work, i just see >=20 > Dumping 1014MB >=20 > and the system just sits there. I added a printf line into the > dumpsys function, and it seems that it just loops without ever > writing anything to disk. for those that are curious about the > details, the variables "i", "mb" are always just zero, "count goes > up everytime i press a key, and "va" stays at the same memory > address, and left never decreases. >=20 > Comments would be greatly appreciated. Some disk drivers seem to have problems dumping (each driver has its own dump routine so there is scope for bugs especially on less commonly used devices). Try a later version of FreeBSD, e.g. 6.1 or 6.2. Kris --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFcI7XWry0BWjoQKURAonwAKDyTLcEkecuhm8zMlCVDhMWHSKdvwCglyj+ 9pWYnE6f2RD/G4Ysbxlzir4= =EZgX -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--