From owner-freebsd-current@FreeBSD.ORG Thu Nov 3 16:14:15 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 484CD16A422 for ; Thu, 3 Nov 2005 16:14:15 +0000 (GMT) (envelope-from pho@holm.cc) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id E5B7143D49 for ; Thu, 3 Nov 2005 16:14:12 +0000 (GMT) (envelope-from pho@holm.cc) Received: (qmail 47766 invoked from network); 3 Nov 2005 16:14:11 -0000 Received: from unknown (HELO peter.osted.lan) (unknown) by unknown with SMTP; 3 Nov 2005 16:14:11 -0000 X-pair-Authenticated: 80.161.118.233 Received: from peter.osted.lan (localhost.osted.lan [127.0.0.1]) by peter.osted.lan (8.13.1/8.13.1) with ESMTP id jA3GEAp7043564; Thu, 3 Nov 2005 17:14:10 +0100 (CET) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.13.1/8.13.1/Submit) id jA3GEANk043563; Thu, 3 Nov 2005 17:14:10 +0100 (CET) (envelope-from pho) Date: Thu, 3 Nov 2005 17:14:10 +0100 From: Peter Holm To: John Baldwin Message-ID: <20051103161410.GA43544@peter.osted.lan> References: <971FCB6690CD0E4898387DBF7552B90E0346CAFB@orsmsx403.amr.corp.intel.com> <20051103142446.GA1787@flame.pc> <20051103144013.GA43086@peter.osted.lan> <200511031043.13285.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511031043.13285.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org, Giorgos Keramidas , jkim@freebsd.org, robert.moore@intel.com Subject: Re: Panic on boot with new ACPI-CA X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 03 Nov 2005 16:14:15 -0000 On Thu, Nov 03, 2005 at 10:43:10AM -0500, John Baldwin wrote: > On Thursday 03 November 2005 09:40 am, Peter Holm wrote: > > On Thu, Nov 03, 2005 at 04:24:46PM +0200, Giorgos Keramidas wrote: > > > On 2005-11-03 03:47, Giorgos Keramidas wrote: > > > >On 2005-11-02 17:03, Nate Lawson wrote: > > > >> As I mentioned to Jung-uk, the problem is likely an error in > > > >> acpi-ca modifying memory after it has freed it. The way to > > > >> track this down is to enable memguard(9). See the man page for > > > >> info. You need to add options DEBUG_MEMGUARD to your kernel, > > > >> set the malloc type to watch to M_ACPICA, and rebuild your > > > >> kernel and modules. Memguard sets page permissions so we can > > > >> catch the culprit who is modifying the memory. > > > > > > > > This is exactly the messgae printed on my console at panic time > > > > -- of memory modified after free. I'm building a kernel with > > > > MEMGUARD now, but it's probably going to be a bit hard to get a > > > > kernel dump, because the panic happens before disks are > > > > available and I don't have a serial console here. > > > > > > This is definitely something that is ACPI-related. I updated my > > > sources to the last commit before the start of the ACPI import: > > > > > > build@flame:/home/build/src$ cvs -qR up -APd -D '2005/11/01 22:00:00 > > > UTC' > > > > > > Rebuilt everything and I see no panics now. > > > > > > I'll use the watchpoint trick Nate posted when I have a new build > > > to test. > > > > I've had the same problem with two of my boxes. Here's the result of a > > watchpoint: > > > > http://people.freebsd.org/~pho/stress/log/acpi.html > > > > I too came to the conclusion that the damage happened between > > > > 2005-11-01 22:00:00 UTC OK > > 2005-11-01 22:45:00 UTC panic > > Does this diff make a difference perhaps? > It did not make any difference as far as I can tell. - Peter > Index: acpi_resource.c > =================================================================== > RCS file: /usr/cvs/src/sys/dev/acpica/acpi_resource.c,v > retrieving revision 1.35 > diff -u -r1.35 acpi_resource.c > --- acpi_resource.c 11 Sep 2005 18:39:01 -0000 1.35 > +++ acpi_resource.c 3 Nov 2005 15:42:14 -0000 > @@ -168,6 +168,7 @@ > > /* Fetch the device's current resources. */ > buf.Length = ACPI_ALLOCATE_BUFFER; > + buf.Pointer = NULL; > if (ACPI_FAILURE((status = AcpiGetCurrentResources(handle, &buf)))) { > if (status != AE_NOT_FOUND) > printf("can't fetch resources for %s - %s\n", > > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" = http://www.FreeBSD.org