From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 20:34:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03E95106570C for ; Mon, 1 Dec 2008 20:34:15 +0000 (UTC) (envelope-from kwoody@citytel.net) Received: from pop.citytel.net (pop.citytel.net [209.145.111.50]) by mx1.freebsd.org (Postfix) with ESMTP id D7B878FC1A for ; Mon, 1 Dec 2008 20:34:14 +0000 (UTC) (envelope-from kwoody@citytel.net) Received: from pop.citytel.net (pop.citytel.net [209.145.111.50]) by pop.citytel.net (Postfix) with ESMTP id 73A59208BA; Mon, 1 Dec 2008 12:34:14 -0800 (PST) Date: Mon, 1 Dec 2008 12:34:14 -0800 (PST) From: Keith To: Mel In-Reply-To: <200812012031.25424.fbsd.questions@rachie.is-a-geek.net> Message-ID: <20081201122714.D81770@pop.citytel.net> References: <20081201101311.C81770@pop.citytel.net> <200812012031.25424.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Page Fault. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 20:34:15 -0000 On Mon, 1 Dec 2008, Mel wrote: |->On Monday 01 December 2008 19:32:59 Keith wrote: |->> |->> ====== |->> kernel trap 12 with interrupts disabled |->> |->> Fatal trap 12: page fault while in kernel mode |->> cpuid = 2; apic id = 02 |->> fault virtual address = 0x104 |->> fault code = supervisor read, page not present |->> instruction pointer = 0x20:0xc066ca51 |->> stack pointer = 0x28:0xe6ec0c90 |->> frame pointer = 0x28:0xe6ec0c9c |->> code segment = base 0x0, limit 0xfffff, type 0x1b |->> = DPL 0, pres 1, def32 1, gran 1 |->> processor eflags = resume, IOPL = 0 |->> current process = 9 (thread taskq) |->> trap number = 12 |->> panic: page fault |->> Uptime: 6d6h23m45s |->> #0 doadump () at pcpu.h:165 |->> 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); |->> ============ |->> |->frame 0 useless. You need the frame after calltrap(). |->And: |-> |->> instruction pointer = 0x20:0xc066ca51 |->list *0xc066ca51 |-> |->Generally a bt will show the needed information. |->Likely cause: file system corruption, caused by background_fsck, but a |->backtrace should show more. Ok, so how does one fix corruption if that is the case? Here is a backtrace, but means nothing to me unfortunately. (kgdb) backtrace #0 doadump () at pcpu.h:165 #1 0xc067582a in boot (howto=260) at ../../../kern/kern_shutdown.c:409 #2 0xc0675b51 in panic (fmt=0xc08f090b "%s") at ../../../kern/kern_shutdown.c:565 #3 0xc0899f1c in trap_fatal (frame=0xe6ec0c50, eva=260) at ../../../i386/i386/trap.c:837 #4 0xc089968e in trap (frame={tf_fs = 8, tf_es = -920256472, tf_ds = -420741080, tf_edi = -936184704, tf_esi = 4, tf_ebp = -420737892, tf_isp = -420737924, tf_ebx = -920236452, tf_edx = 6, tf_ecx = -936306488, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip = -1067005359, tf_cs = 32, tf_eflags = 65538, tf_esp = -930065784, tf_ss = 4}) at ../../../i386/i386/trap.c:270 #5 0xc08859ca in calltrap () at ../../../i386/i386/exception.s:139 #6 0xc066ca51 in _mtx_lock_sleep (m=0xc9264e5c, tid=3358782592, opts=0, file=0x0, line=0) at ../../../kern/kern_mutex.c:546 #7 0xc06bbdb6 in unp_gc (arg=0x0, pending=1) at ../../../kern/uipc_usrreq.c:1714 #8 0xc06964d3 in taskqueue_run (queue=0xc843fa80) at ../../../kern/subr_taskqueue.c:257 #9 0xc06969b6 in taskqueue_thread_loop (arg=0x1) at ../../../kern/subr_taskqueue.c:376 #10 0xc065ef6d in fork_exit (callout=0xc0696924 , arg=0xc09f1d28, frame=0xe6ec0d38) at ../../../kern/kern_fork.c:821 #11 0xc0885a2c in fork_trampoline () at ../../../i386/i386/exception.s:208