From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 05:56:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B28016A4CE; Tue, 30 Nov 2004 05:56:13 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C99D43D1F; Tue, 30 Nov 2004 05:56:13 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iAU5uBr9074047; Mon, 29 Nov 2004 23:56:11 -0600 (CST) (envelope-from dan) Date: Mon, 29 Nov 2004 23:56:11 -0600 From: Dan Nelson To: David Gilbert Message-ID: <20041130055611.GN5518@dan.emsphone.com> References: <16811.51043.987275.174410@canoe.dclg.ca> <003801c4d685$81192640$1200a8c0@gsicomp.on.ca> <16811.58127.759026.560570@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16811.58127.759026.560570@canoe.dclg.ca> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-list@dclg.ca cc: freebsd-amd64@freebsd.org Subject: Re: isp driver not 64 bit? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 05:56:13 -0000 In the last episode (Nov 29), David Gilbert said: > Well... cam_calc_geometry seems to get called quite a bit. Almost > everytime you touch the disk, in fact. fsck'ing a partition calls > it, for instance. > > Console access is personally expensive (much driving, for instance), > but from memory the debugging I put in cam_calc_geometry() would > print before the correct output from dadone(). Your description > reminds me of this --- but it's no less vexing that the output from > dadone() has the correct sector and volume size and the ccg in > cam_calc_geometry() has bogus data. > > I don't know if it's significant, but the correct numbers were: > > 279353684 sectors of 512 bytes > > The ccg structure comes up with: > > 3737169375 sectors of 3737169374 bytes > > Not entirely sensible. Interesting that they're close values. > However, with different things on the stack, the values changed. Even more interesting is their hex values: DEC0ADDF and DEC0ADDE, aka 0xDEADC0DE. Something's reading memory after the kernel freed it. -- Dan Nelson dnelson@allantgroup.com