From owner-freebsd-current@FreeBSD.ORG Thu Feb 9 16:35:36 2006 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 AF95C16A420 for ; Thu, 9 Feb 2006 16:35:36 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6534F43D46 for ; Thu, 9 Feb 2006 16:35:29 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 8095731 for multiple; Thu, 09 Feb 2006 11:34:41 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k19GZQFB068270; Thu, 9 Feb 2006 11:35:27 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org, Cy Schubert Date: Thu, 9 Feb 2006 11:32:48 -0500 User-Agent: KMail/1.9.1 References: <200602081534.k18FYOFe075677@cwsys.cwsent.com> In-Reply-To: <200602081534.k18FYOFe075677@cwsys.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602091132.50258.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1281/Wed Feb 8 14:59:33 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED,AWL autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Subject: Re: Panic In mi_switch+0x7e 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, 09 Feb 2006 16:35:36 -0000 On Wednesday 08 February 2006 10:34, Cy Schubert wrote: > I issue the reboot command and the system panics and drops into DDB. > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor write, page not present > instruction pointer = 0x20:0xc067a1fe > stack pointer = 0x28:0xc6ee19fc > frame pointer = 0x28:0xc6ee1a44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 594 (reboot) > [thread pid 594 tid 100071 ] > Stopped at mi_switch+0x7e: addl %eax,0(%eax) > db> trace > Tracing pid 594 tid 100071 td 0xc18b91a0 > mi_switch(0,0,0,1,c6ee0e6c) at mi_switch+0x7e > db> Hmm, odd. Here's where that maps to on a local kernel (not sure if it's the same exact line on yours though): 0xc06b3e43 is in mi_switch (../../../kern/kern_synch.c:368). 363 td = curthread; /* XXX */ 364 p = td->td_proc; /* XXX */ 365 KASSERT(!TD_ON_RUNQ(td), ("mi_switch: called by old code")); 366 #ifdef INVARIANTS 367 if (!TD_ON_LOCK(td) && !TD_IS_RUNNING(td)) 368 mtx_assert(&Giant, MA_NOTOWNED); 369 #endif 370 KASSERT(td->td_critnest == 1 || (td->td_critnest == 2 && 371 (td->td_owepreempt) && (flags & SW_INVOL) != 0 && 372 newtd == NULL) || panicstr, Hmm, looking at the assembly it doesn't line up. Can you pull up gdb on your kernel.debug and do 'l *mi_switch+0x7e'? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org