From owner-freebsd-current@FreeBSD.ORG Mon Dec 8 22:47:43 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F751065672 for ; Mon, 8 Dec 2008 22:47:43 +0000 (UTC) (envelope-from nakaji@kankyo-u.ac.jp) Received: from www.heimat.gr.jp (unknown [IPv6:2001:3e0:a84::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3C6B48FC08 for ; Mon, 8 Dec 2008 22:47:42 +0000 (UTC) (envelope-from nakaji@kankyo-u.ac.jp) X-Virus-Scanned: amavisd-new at heimat.gr.jp Received: from ra333.heimat.gr.jp.kankyo-u.ac.jp (ra333.heimat.gr.jp [IPv6:2001:3e0:a84:0:200:4cff:fe17:573c]) by www.heimat.gr.jp (8.14.3/8.14.3) with ESMTP id mB8MlZfZ097267; Tue, 9 Dec 2008 07:47:36 +0900 (JST) (envelope-from nakaji@kankyo-u.ac.jp) From: NAKAJI Hiroyuki To: freebsd-current@freebsd.org References: <87zljb8nw6.fsf@roddy.4407.kankyo-u.ac.jp> <3a142e750812050613w4e9155bat950f03716aa58beb@mail.gmail.com> <863ah2qivi.fsf@ra333.heimat.gr.jp> Date: Tue, 09 Dec 2008 07:47:35 +0900 In-Reply-To: <863ah2qivi.fsf@ra333.heimat.gr.jp> (NAKAJI Hiroyuki's message of "Sat, 06 Dec 2008 08:53:21 +0900") Message-ID: <86iqpu2sjc.fsf@ra333.heimat.gr.jp> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.0 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, FAKEDWORD_ZERO, MIMEQENC, NO_RELAYS, QENCPTR1, QENCPTR2 autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on www.heimat.gr.jp Cc: Subject: Re: Fatal trap 12: page fault while in kernel mode 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: Mon, 08 Dec 2008 22:47:43 -0000 >>>>> In <863ah2qivi.fsf@ra333.heimat.gr.jp>=20 >>>>> NAKAJI Hiroyuki wrote: > So, what I have to do are three: > 1. Full upgrade to the latest kernel and userland (world) > 2. Observe whether a panic occurs, and > 3. When panic, save the crash dump and get full bt with kgdb > I hope it will not reach to the step three. Thanks. Unfortunately, I faced to "db> " on my serial console. db> bt Tracing pid 964 tid 100131 td 0xc49876c0 svc_run_internal(e6861d24,c0850793,c44f2780,e6861d38,1,...) at svc_run_inte= rnal+ 0x575 svc_thread_start(c44f2780,e6861d38,1,0,4836bd14,...) at svc_thread_start+0x= 10 fork_exit(c0a57fe0,c44f2780,e6861d38) at fork_exit+0x93 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip =3D 0xc, esp =3D 0x33, ebp =3D 0 --- db> call doadump Physical memory: 1010 MB Dumping 250 MB: 235 219 203 187 171 155 139 123 107 91 75 59 43 27 11 Dump complete =3D 0xf db> bt Tracing pid 964 tid 100131 td 0xc49876c0 svc_run_internal(e6861d24,c0850793,c44f2780,e6861d38,1,...) at svc_run_inte= rnal+ 0x575 svc_thread_start(c44f2780,e6861d38,1,0,4836bd14,...) at svc_thread_start+0x= 10 fork_exit(c0a57fe0,c44f2780,e6861d38) at fork_exit+0x93 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip =3D 0xc, esp =3D 0x33, ebp =3D 0 --- db> reset And then, I used kgdb. # kgdb /boot/kernel/kernel.symbols vmcore.9=20 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x0 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc0a57a75 stack pointer =3D 0x28:0xe6861c44 frame pointer =3D 0x28:0xe6861cec code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 964 (nfsd: service) Physical memory: 1010 MB Dumping 250 MB: 235 219 203 187 171 155 139 123 107 91 75 59 43 27 11 Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /boot= /kernel/linprocfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/linprocfs.ko Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/ker= nel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/kernel/smbus.ko...Reading symbols from /boot/ker= nel/smbus.ko.symbols...done. done. Loaded symbols for /boot/kernel/smbus.ko Reading symbols from /boot/kernel/aio.ko...Reading symbols from /boot/kerne= l/aio.ko.symbols...done. done. Loaded symbols for /boot/kernel/aio.ko Reading symbols from /boot/kernel/mga.ko...Reading symbols from /boot/kerne= l/mga.ko.symbols...done. done. Loaded symbols for /boot/kernel/mga.ko Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kerne= l/drm.ko.symbols...done. done. Loaded symbols for /boot/kernel/drm.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/= kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from /boot/ke= rnel/nullfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/nullfs.ko Reading symbols from /boot/kernel/logo_saver.ko...Reading symbols from /boo= t/kernel/logo_saver.ko.symbols...done. done. Loaded symbols for /boot/kernel/logo_saver.ko #0 doadump () at pcpu.h:246 246 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump () at pcpu.h:246 #1 0xc04c2a69 in db_fncall (dummy1=3D-1059812576, dummy2=3D0, dummy3=3D-10= 67505768,=20 dummy4=3D0xe68619d8 "=EF=BF=BD:i=EF=BF=BD\2008'=EF=BF=BD") at /usr/src/= sys/ddb/db_command.c:548 #2 0xc04c2e61 in db_command (last_cmdp=3D0xc0d3e85c, cmd_table=3D0x0, dopa= ger=3D1) at /usr/src/sys/ddb/db_command.c:445 #3 0xc04c2fba in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 #4 0xc04c4dfd in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_main= .c:229 #5 0xc08a2456 in kdb_trap (type=3D12, code=3D0, tf=3D0xe6861c04) at /usr/src/sys/kern/subr_kdb.c:534 #6 0xc0b8059f in trap_fatal (frame=3D0xe6861c04, eva=3D0) at /usr/src/sys/i386/i386/trap.c:920 #7 0xc0b80860 in trap_pfault (frame=3D0xe6861c04, usermode=3D0, eva=3D0) at /usr/src/sys/i386/i386/trap.c:842 #8 0xc0b8126a in trap (frame=3D0xe6861c04) at /usr/src/sys/i386/i386/trap.= c:522 #9 0xc0b652cb in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #10 0xc0a57a75 in svc_run_internal (pool=3D0xc44f2780, ismaster=3D0) at /usr/src/sys/rpc/svc.c:787 #11 0xc0a57ff0 in svc_thread_start (arg=3D0xc44f2780) at /usr/src/sys/rpc/svc.c:1188 #12 0xc0850793 in fork_exit (callout=3D0xc0a57fe0 ,=20 arg=3D0xc44f2780, frame=3D0xe6861d38) at /usr/src/sys/kern/kern_fork.c:= 821 #13 0xc0b65340 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:= 270 (kgdb)=20 In addition, # addr2line -e /boot/kernel/kernel.symbols 0xc0a57a75 /usr/src/sys/rpc/svc.c:787 Any help is appreciated. Thanks. --=20 NAKAJI Hiroyuki