From owner-freebsd-ppc@FreeBSD.ORG Tue Dec 7 14:56:30 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 389E7106566B for ; Tue, 7 Dec 2010 14:56:30 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 0A29D8FC13 for ; Tue, 7 Dec 2010 14:56:29 +0000 (UTC) MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_UlkK1XXgH3nPGhGNjYtmpg)" Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LD200800C64ZF00@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 07 Dec 2010 08:56:28 -0600 (CST) Received: from [10.0.2.97] (adsl-71-150-248-187.dsl.mdsnwi.sbcglobal.net [71.150.248.187]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LD2003CEC5X1T20@smtpauth3.wiscmail.wisc.edu>; Tue, 07 Dec 2010 08:56:28 -0600 (CST) Date: Tue, 07 Dec 2010 08:56:21 -0600 From: Nathan Whitehorn In-reply-to: To: Justin Hibbits Message-id: X-Mailer: Apple Mail (2.936) X-Spam-Report: AuthenticatedSender=yes, SenderIP=10.0.2.97 X-Spam-PmxInfo: Server=avs-10, Version=5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.12.7.144515, SenderIP=10.0.2.97 References: Cc: FreeBSD PowerPC ML Subject: Re: Kernel panic in moea_pvo_to_pte X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 14:56:30 -0000 --Boundary_(ID_UlkK1XXgH3nPGhGNjYtmpg) Content-type: text/plain; CHARSET=US-ASCII; format=flowed; delsp=yes Content-transfer-encoding: 7BIT On Dec 7, 2010, at 7:23 AM, Justin Hibbits wrote: > Since I started rebuilding ports yesterday, I've been hit by this > panic > (copied from a low-res camera): > > panic: moea_pvo_to_pte: pvo 0x17e6810 pte does not match pte > 0x26e0740 in > moea_pteg_table > > 0xe52f68a0: at panic+0x13c > 0xe52f68f0: at moea_pvo_to_pte+0x154 > 0xe52f6910: at moea_pvo_remove+0x20 > 0xe52f6930: at moea_remove+0x94 > 0xe52f6960: at pmap_remove+0x80 > 0xe52f6980: at vm_map_delete+0x1d0 > 0xe52f69e0: at vm_map_remove+0x74 > 0xe52f6a00: at vmspace_exit+0x108 > 0xe52f6a30: at exit1+0x48c > 0xe52f6a70: at sys_exit+0x1c > 0xe52f6a80: at syscallenter+0x258 > ... > > The svn version is r215752, I'm currently building r216254 hoping > that might > fix something. This panic seems to occur after about 1-2 hours of > ports > building, so is reproducible to me. I also have the crash dumps > available > (2). This is a serious bug. Could you rebuild the kernel with the attached patch? That should provide some information on why the kernel has triggered this panic. Also, could you provide some more details on your system? I'm guessing it is some variety of G4, but knowing the specific CPU model and whether it is SMP would be very helpful. -Nathan --Boundary_(ID_UlkK1XXgH3nPGhGNjYtmpg) Content-type: application/octet-stream; x-unix-mode=0644; name=test.diff Content-transfer-encoding: 7bit Content-disposition: attachment; filename=test.diff Index: mmu_oea.c =================================================================== --- mmu_oea.c (revision 216174) +++ mmu_oea.c (working copy) @@ -2116,7 +2116,9 @@ if (((pt->pte_lo ^ pvo->pvo_pte.pte.pte_lo) & ~(PTE_CHG|PTE_REF)) != 0) { panic("moea_pvo_to_pte: pvo %p pte does not match " - "pte %p in moea_pteg_table", pvo, pt); + "pte %p in moea_pteg_table (%#x.%#x, %#x.%#x)", + pvo, pt, pt->pte_hi, pt->pte_lo, + pvo->pvo_pte.pte.pte_hi, pvo->pvo_pte.pte.pte_lo); } mtx_assert(&moea_table_mutex, MA_OWNED); --Boundary_(ID_UlkK1XXgH3nPGhGNjYtmpg)--