From owner-freebsd-current@FreeBSD.ORG Sat Jun 21 07:08:14 2003 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 882B537B401; Sat, 21 Jun 2003 07:08:14 -0700 (PDT) Received: from pozo.com (pozo.com [216.101.162.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8045F43F75; Sat, 21 Jun 2003 07:08:13 -0700 (PDT) (envelope-from null@pozo.com) Received: from quad.pozo.com (quad.pozo.com [192.168.0.61]) by pozo.com (8.12.9/8.12.9) with ESMTP id h5LE8AQJ000615 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Sat, 21 Jun 2003 07:08:12 -0700 (PDT) (envelope-from null@pozo.com) Message-Id: <5.2.1.1.2.20030621070520.00a7fff0@pozo.com> X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Sat, 21 Jun 2003 07:08:10 -0700 To: Robert Watson From: Manfred Antar In-Reply-To: References: <5.2.1.1.2.20030620085142.00a72ae8@pozo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: current@freebsd.org Subject: Re: Current kernel Fatal Trap 12 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: Sat, 21 Jun 2003 14:08:14 -0000 At 12:21 PM 6/20/2003 -0400, Robert Watson wrote: >If you have a version of the kernel in question on disk and with debugging >symbols, could you attach gdb -k to it and send us the results of: > > l *0xc01f6212 > >That will provide a bit more information about where the panic is >occuring. This is likely a NULL pointer dereference. I was able to capture the whole error, there are 2 instruction pointers that I checked: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfec08000 cpu1 (AP): apic id: 12, version: 0x00040011, at 0xfec08000 io0 (APIC): apic id: 13, version: 0x00170011, at 0xfec00000 Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = 00000000 fault virtual address = 0xcf8f9fec fault code = supervisor write, page not present instruction pointer = 0x8:0xc032188c stack pointer = 0x10:0xc04c7bbc frame pointer = 0x10:0xc04c7bbc 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 = 0 (swapper) trap number = 12 panic: page fault cpuid = 0; lapic.id = 00000000 Uptime: 1s WARNING: Driver mistake: make_dev(geom.ctl) called before SI_SUB_DRIVERS (kgdb) l *0xc032188c 0xc032188c is in cpu_thread_setup (../../../i386/i386/vm_machdep.c:312). 307 { 308 309 td->td_pcb = 310 (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; 311 td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb - 16) - 1; 312 td->td_pcb->pcb_ext = NULL; 313 } 314 315 /* 316 * Initialize machine state (pcb and trap frame) for a new thread about to Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = 00000000 fault virtual address = 0x38 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01f813e stack pointer = 0x10:0xc04c776c frame pointer = 0x10:0xc04c776c 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 = 0 (swapper) trap number = 12 panic: page fault cpuid = 0; lapic.id = 00000000 Uptime: 1s (kgdb) l *0xc01f813e 0xc01f813e is in device_shutdown (../../../kern/subr_bus.c:1499). 1494 } 1495 1496 int 1497 device_shutdown(device_t dev) 1498 { 1499 if (dev->state < DS_ATTACHED) 1500 return (0); 1501 return (DEVICE_SHUTDOWN(dev)); 1502 } 1503 Manfred ================================== || null@pozo.com || || Ph. (415) 681-6235 || ==================================