From owner-freebsd-current@FreeBSD.ORG Thu Nov 27 21:03:28 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84BF816A4CE; Thu, 27 Nov 2003 21:03:28 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48D7143F93; Thu, 27 Nov 2003 21:03:27 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p2/8.12.9) with ESMTP id hAS53Plg071018; Thu, 27 Nov 2003 22:03:25 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 27 Nov 2003 22:03:11 -0700 (MST) Message-Id: <20031127.220311.38782698.imp@bsdimp.com> To: truckman@freebsd.org From: "M. Warner Losh" In-Reply-To: <200311280333.hAS3XkeF016528@gw.catspoiler.org> References: <61677.24.0.61.35.1069989467.squirrel@mail.yazzy.org> <200311280333.hAS3XkeF016528@gw.catspoiler.org> X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: masta@wifibsd.org cc: current@freebsd.org Subject: Re: panic inserting CF card. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2003 05:03:28 -0000 In message: <200311280333.hAS3XkeF016528@gw.catspoiler.org> Don Lewis writes: : Offhand I'd guess that adp->heads and/or adp->sectors is zero. If : you've got a core file, try backtracking from there with gdb, otherwise : sprinkle some printf's around. Either this calculation is new, or some : recent change is causing the heads and sectors to be initialized to : zero. I have patches in my tree that prevent the panic. However, they prevent the panic by not dividing by zero, rather than fixing the underlying problem. Warner