From owner-freebsd-current@FreeBSD.ORG Fri Sep 24 20:15:06 2004 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 72F1F16A4CF; Fri, 24 Sep 2004 20:15:06 +0000 (GMT) Received: from cedar.ie.tusur.ru (fet-gw.ttk.tusur.ru [212.192.163.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3369D43D2D; Fri, 24 Sep 2004 20:14:52 +0000 (GMT) (envelope-from pg@rainbow.ie.tusur.ru) Received: from rainbow.ie.tusur.ru (rainbow.ie.tusur.ru [212.192.122.75]) by cedar.ie.tusur.ru (8.12.11/8.12.11) with ESMTP id i8OKEhtA079197; Sat, 25 Sep 2004 03:14:43 +0700 (TSD) (envelope-from pg@rainbow.ie.tusur.ru) Received: from rainbow.ie.tusur.ru (localhost.ie.tusur.ru [127.0.0.1]) by rainbow.ie.tusur.ru (8.12.9p2/8.12.9) with ESMTP id i8OKCu4D096295; Sat, 25 Sep 2004 03:12:56 +0700 (TSD) (envelope-from pg@rainbow.ie.tusur.ru) Received: (from pg@localhost) by rainbow.ie.tusur.ru (8.12.9p2/8.12.9/Submit) id i8OKCu41096294; Sat, 25 Sep 2004 03:12:56 +0700 (TSD) (envelope-from pg) Date: Sat, 25 Sep 2004 03:12:56 +0700 From: Pavel Gubin To: John Baldwin Message-ID: <20040924201256.GB67823@ie.tusur.ru> References: <20040922095257.GA81709@ie.tusur.ru> <200409221628.51977.jhb@FreeBSD.org> <20040923042447.GA88335@ie.tusur.ru> <200409231029.47945.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409231029.47945.jhb@FreeBSD.org> User-Agent: Mutt/1.4i Organization: TUCSR, Industrial Electronics dept X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on cedar.ie.tusur.ru X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on rainbow.ie.tusur.ru X-Virus-Status: Clean X-Virus-Status: Clean cc: freebsd-current@freebsd.org Subject: "xlock already held" panics on 5.3-BETA(3,4,5) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pavel Gubin List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 20:15:06 -0000 On Thu, Sep 23, 2004 at 10:29:47AM -0400, John Baldwin wrote: > > > > panic: _sx_xlock (user map): xlock already held @ > > > > /var/data/5/src/sys/vm/vm_map.c:2997 cpuid = 0 > > > > KDB: stack backtrace: > > > > kdb_backtrace(100,c0f794e0,c0e983c8,1,bb5) at kdb_backtrace+0x29 > > > > panic(c05eaffa,c05d320c,c05fd313,c05fd393,bb5) at panic+0x114 > > > > _sx_xlock(c0e983c8,c05fd393,bb5) at _sx_xlock+0x44 > > > > _vm_map_lock_read(c0e98384,c05fd393,bb5,1f49a0c,c113692c) at _vm_map_lock_read+0x37 > > > > vm_map_lookup(c9f49a64,bfca2000,1,c9f49a68,c9f49a58) at vm_map_lookup+0x28 > > > > vm_fault(c0e98384,bfca2000,1,0,c0f794e0) at vm_fault+0x66 > > > > trap_pfault(c9f49b2c,0,bfca253c) at trap_pfault+0xd2 > > > > trap(18,10,10,c0e98444,c0c95c48) at trap+0x30d > > > > calltrap() at calltrap+0x5 > > > > --- trap 0xc, eip = 0xc05b541c, esp = 0xc9f49b6c, ebp = 0xc9f49b78 --- > > > > pmap_enter_quick(c0e98444,2894f000,c0d7c2e8,0,0) at pmap_enter_quick+0xc8 > > > > > > This is the real bug, can you do 'l *0xc05b541c' from kgdb? > > > > (kgdb) l *0xc05b541c > > 0xc05b541c is in pmap_enter_quick > > (/var/data/5/src/sys/i386/i386/pmap.c:2130). [] > > 2129 pte = vtopte(va); > > 2130 if (*pte) { > > 2131 if (mpte != NULL) { > > 2132 pmap_unwire_pte_hold(pmap, mpte); > > 2133 mpte = NULL; > > 2134 } I've digged a bit... Seems that `if (*pte)' causes a Page Fault. So, is it legal for page to be non-resident here? -- Pavel Gubin TUSC&R / Industrial Electronics dept / System Administrator 2:5005/14@fidonet / Phone +7-3822-423067 / ICQ 28835566