From owner-freebsd-current@FreeBSD.ORG Tue Sep 7 19:57:17 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 A7E4416A4CE for ; Tue, 7 Sep 2004 19:57:17 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C6CF43D60 for ; Tue, 7 Sep 2004 19:57:17 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 5119 invoked from network); 7 Sep 2004 19:57:16 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 7 Sep 2004 19:57:16 -0000 Received: from [10.50.40.210] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i87Jv1Fn006626; Tue, 7 Sep 2004 15:57:02 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Tue, 7 Sep 2004 14:42:18 -0400 User-Agent: KMail/1.6.2 References: <1094273843.92485.11.camel@shumai.marcuscom.com> In-Reply-To: <1094273843.92485.11.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409071442.18490.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: current@FreeBSD.org Subject: Re: Kernel panic in 6.0 revisited X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 07 Sep 2004 19:57:17 -0000 On Saturday 04 September 2004 12:57 am, Joe Marcus Clarke wrote: > A few days ago, I reported a kernel panic in HEAD while building > packages on my tinderbox machine. I was unable to get a core dump fro > that crash, and after switching from ULE to 4BSD, I had thought it had > gone away. > > Well, today, the machine panicked twice. It was the same panic both > times, and the same panic I got a few days ago. This time, however, I > was able to get a core dump. Here is the panic message: > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x1c > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc0533d07 > stack pointer = 0x10:0xf5f30a4c > frame pointer = 0x10:0xf5f30a58 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 27441 (cpp0) > Stopped at vfs_vmio_release+0x1b: lock cmpxchgl %ecx,0x1c(%edx) > > And here is the output of "l *vfs_vmio_release+0x1b": > > 0xc0533d07 is in vfs_vmio_release (atomic.h:154). > 149 static __inline int > 150 atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src) > 151 { > 152 int res = exp; > 153 > 154 __asm __volatile ( > 155 " " __XSTRING(MPLOCKED) " " > 156 " cmpxchgl %1,%2 ; " > 157 " setz %%al ; " > 158 " movzbl %%al,%0 ; " > > Kernel config is at http://www.marcuscom.com/downloads/FUGU.kernel and > the dmesg output is at http://www.marcuscom.com/downloads/FUGU.dmesg > > Let me know if you need anything else. Thanks. How about 'l *0xc0533d00' to try and figure out which function is calling that. Also, do you have INVARIANTS turned on? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org