From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 3 17:03:48 2007 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F378716A418 for ; Wed, 3 Oct 2007 17:03:47 +0000 (UTC) (envelope-from dana.myers@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id A9AF313C45A for ; Wed, 3 Oct 2007 17:03:47 +0000 (UTC) (envelope-from dana.myers@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so943026anc for ; Wed, 03 Oct 2007 10:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=Uekg6vtJc+ZhyDUq+1HDVq9mQl4pkD/tTlaP8DbC8uA=; b=dch8y8j+sXlMhU+tZNwE4j6rfJEDKuT842yFpqMcVmxtcyRsz2LHe1J0mOZESxbERbzP6mpcoLTOMKFmJ3z+low0APv/f2PNYvuySxerjbZJqux10mu3tY95X6oZQyEn6jZqQkkAYT4c6njhkmJkIRubBzmCqU1TrgFvKFxL46U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=SIK4NMd3Cb+G6nt8oCu3lK/L9YD6qLdaS8DAmpRLFA1BGhY/OvdzyD+1D9hBgA80100HWDUrcVy6NBPI9fNl4vc4Q85dcbKs/4oWutjb/Rg4e/bp5//XhrHCixkr4rPzA1KGXMSV3kuV+TFOvDGj966lYG4/PBHlTW4Wett/MLA= Received: by 10.142.102.5 with SMTP id z5mr898341wfb.1191429555484; Wed, 03 Oct 2007 09:39:15 -0700 (PDT) Received: from ?192.168.0.2? ( [67.180.22.170]) by mx.google.com with ESMTPS id g31sm1584617rvb.2007.10.03.09.39.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Oct 2007 09:39:15 -0700 (PDT) Message-ID: <4703C59C.3040700@gmail.com> Date: Wed, 03 Oct 2007 09:38:52 -0700 From: "Dana H. Myers" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-acpi@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Method returns package results in interpreter panic - is anyone seeing this on FreeBSD ? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 17:03:48 -0000 I'm seeing a kernel panic in the ACPI CA interpreter under Solaris, but I don't believe it is Solaris-specific. The panic reliably happens when evaluating a method which returns a package which contains a named object as an element. method. Here's the panic stack trace, with excess stuff trimmed: ffffff00025c2e90 unix:die+f4 () ffffff00025c2fc0 unix:trap+38e () ffffff00025c2fd0 unix:cmntrap+1d0 () ffffff00025c30e0 acpica:AcpiNsGetParentNode+2b () ffffff00025c3110 acpica:AcpiNsGetPathnameLength+38 () ffffff00025c3160 acpica:AcpiUtGetSimpleObjectSize+8f () ffffff00025c31b0 acpica:AcpiUtGetElementLength+32 () ffffff00025c3230 acpica:AcpiUtWalkPackageTree+aa () ffffff00025c3290 acpica:AcpiUtGetPackageObjectSize+6d () ffffff00025c32d0 acpica:AcpiUtGetObjectSize+3d () ffffff00025c3350 acpica:AcpiEvaluateObject+1d4 () ffffff00025c33c0 acpica:AcpiEvaluateObjectTyped+72 () AcpiNsGetParentNode() panics when it attempts to follow a namespace node peer link. The node, however, is uninitialized. The case which causes this is reproduced reliably by this simplified test case: Method(DANA, 0, NotSerialized) { Name (DOM1, 0x02) Return(Package() { Package() { 0x00, 0x01, DOM1, 0x03, 0x04 } } ) } Simply evaluating DANA causes the panic when AcpiUtGetElementLength() tries to handle DOM1 - it's apparently a "local reference" and the namespace node is apparently uninitialized. So AcpiNsGetParentNode() panics trying to find the parent when it attempts to access memory at 0xCACACACACACACACA. If I replace DOM1 in the package with 0x02, the panic goes away. Has anyone encountered this on FreeBSD? Thanks - Dana