From nobody@FreeBSD.org  Mon Feb 26 15:11:35 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3BF8316A405
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 15:11:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 205EE13C4A8
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 15:11:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1QFBYS7034119
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 15:11:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1QFBYk7034118;
	Mon, 26 Feb 2007 15:11:34 GMT
	(envelope-from nobody)
Message-Id: <200702261511.l1QFBYk7034118@www.freebsd.org>
Date: Mon, 26 Feb 2007 15:11:34 GMT
From: "Serge A. Pechiony"<darkhost@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Reboot server with "Fatal trap 12"
X-Send-Pr-Version: www-3.0

>Number:         109568
>Category:       i386
>Synopsis:       [panic] Reboot server with "Fatal trap 12"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 26 15:20:04 GMT 2007
>Closed-Date:    Wed Oct 12 14:38:06 UTC 2011
>Last-Modified:  Wed Oct 12 14:38:06 UTC 2011
>Originator:     Serge A. Pechiony
>Release:        FreeBSD 5.4
>Organization:
PAC Group
>Environment:
FreeBSD core.pac.ru 5.4-RELEASE-p22 FreeBSD 5.4-RELEASE-p22 #0: Mon Feb 19 11:01:36 MSK 2007     psa@core.pac.ru:/usr/src/sys/i386/compile/CORE.kernel  i386
>Description:
The server is reboot periodically with error:

Feb 25 16:03:26 core syslogd: kernel boot file is /boot/kernel/kernel
Feb 25 16:03:26 core kernel:
Feb 25 16:03:26 core kernel:
Feb 25 16:03:26 core kernel: Fatal trap 12: page fault while in kernel mode
Feb 25 16:03:26 core kernel: cpuid = 0; apic id = 00
Feb 25 16:03:26 core kernel: fault virtual address      = 0x14
Feb 25 16:03:26 core kernel: fault code         = supervisor read, page not present
Feb 25 16:03:26 core kernel: instruction pointer        = 0x8:0xc0609b43
Feb 25 16:03:26 core kernel: stack pointer              = 0x10:0xe4ab8c70
Feb 25 16:03:26 core kernel: frame pointer              = 0x10:0xe4ab8c9c
Feb 25 16:03:26 core kernel: code segment               = base 0x0, limit 0xfffff, type 0x1b
Feb 25 16:03:26 core kernel: = DPL 0, pres 1, def32 1, gran 1
Feb 25 16:03:26 core kernel: processor eflags   = interrupt enabled, resume, IOPL = 0
Feb 25 16:03:26 core kernel: current process            = 53 (swi0: uart uart si*)
Feb 25 16:03:26 core kernel: trap number                = 12
Feb 25 16:03:26 core kernel: panic: page fault
Feb 25 16:03:26 core kernel: cpuid = 0
Feb 25 16:03:26 core kernel: boot() called on cpu#0
Feb 25 16:03:26 core kernel: Uptime: 6d0h41m22s
Feb 25 16:03:26 core kernel: Dumping 1024 MB
Feb 25 16:03:26 core kernel: 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 928 944 960 976 992 1008
Feb 25 16:03:26 core kernel: Dump complete
Feb 25 16:03:26 core kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Feb 25 16:03:26 core kernel: Rebooting...
Feb 25 16:03:26 core kernel: cpu_reset called on cpu#0
Feb 25 16:03:26 core kernel: cpu_reset: Stopping other CPUs
Feb 25 16:03:26 core kernel: Copyright (c) 1992-2005 The FreeBSD Project.
Feb 25 16:03:26 core kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Feb 25 16:03:26 core kernel: The Regents of the University of California. All rights reserved.
Feb 25 16:03:26 core kernel: FreeBSD 5.4-RELEASE-p22 #0: Mon Feb 19 11:01:36 MSK 2007
Feb 25 16:03:26 core kernel: psa@core.pac.ru:/usr/src/sys/i386/compile/CORE.kernel
Feb 25 16:03:26 core kernel: MPTable: <AMI      CNB30LE     >
Feb 25 16:03:26 core kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Feb 25 16:03:26 core kernel: CPU: Intel(R) Pentium(R) III CPU family      1266MHz (1262.68-MHz 686-class CPU)

Please report me how i can fix this problem.
>How-To-Repeat:
This problem repeat every week. Uptime of system does not been higher then 10 days.
>Fix:

>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@elvandar.org>
To: "Serge A. Pechiony" <darkhost@mail.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/109568: Reboot server with "Fatal trap 12"
Date: Mon, 26 Feb 2007 17:56:10 +0100

 Sadly this is not telling us enough to get this going (at least it
 is not telling me enough to get this rolling): can you have a look
 at http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 and follow the instructions listed there? That way we have a better
 and detailed view on what is going on.
 
 In addition, are you perhaps able to confirm whether this is also
 the case on 6.x?
 
 Thanks!
 remko
 
 
 -- 
 Kind regards,
 
      Remko Lodder               ** remko@elvandar.org
      FreeBSD                    ** remko@FreeBSD.org
 
      /* Quis custodiet ipsos custodes */

 Adding to audit trail from misfiled PR ports/XXX:

 Date: Mon, 05 Mar 2007 10:47:14 +0300
 From: An An <darkhost@mail.ru>
 
 I'm sorry for responding too late. This is debug from 5.4 version.
 
 core# cd /sys/i386/compile/CORE.kernel
 core# kgdb kernel.debug /var/crash/vmcore.9
 
 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
 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 conditions.
 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".
 #0  doadump () at pcpu.h:159
 159             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
 (kgdb) list 0xc0609582
 Function "0xc0609582" not defined.
 (kgdb) list *0xc0609582
 0xc0609582 is at ../../../i386/i386/support.s:490.
 485             cmpl    %ecx,%eax                       /* overlapping && src < dst? */
 486             jb      1f
 487
 488             shrl    $2,%ecx                         /* copy by 32-bit words */
 489             cld                                     /* nope, copy forwards */
 490             rep
 491             movsl
 492             movl    20(%esp),%ecx
 493             andl    $3,%ecx                         /* any bytes left? */
 494             rep
 (kgdb) backtrace
 #0  doadump () at pcpu.h:159
 #1  0xc04d069b in boot (howto=260) at ../../../kern/kern_shutdown.c:410
 #2  0xc04d09c1 in panic (fmt=0xc063218a "%s") at ../../../kern/kern_shutdown.c:566
 #3  0xc060b414 in trap_fatal (frame=0xe4ab8c34, eva=20) at ../../../i386/i386/trap.c:817
 #4  0xc060b157 in trap_pfault (frame=0xe4ab8c34, usermode=0, eva=20) at ../../../i386/i386/trap.c:735
 #5  0xc060adb1 in trap (frame=
       {tf_fs = 24, tf_es = -993722352, tf_ds = -65520, tf_edi = -1040256448, tf_esi = 20, tf_ebp = -458519392, tf_isp = -458519456, tf_ebx = 108, tf_edx = 108, tf_ecx = 27, tf_eax = -1040256468, tf_trapno = 12, tf_err = 0, tf_eip = -1067412094, tf_cs = 8 , tf_eflags = 66054, tf_esp = 0, tf_ss = -1035447752})
     at ../../../i386/i386/trap.c:425
 #6  0xc05f944a in calltrap () at ../../../i386/i386/exception.s:140
 #7  0x00000018 in ?? ()
 #8  0xc4c50010 in ?? ()
 #9  0xffff0010 in ?? ()
 #10 0xc1fef240 in ?? ()
 #11 0x00000014 in ?? ()
 #12 0xe4ab8ca0 in ?? ()
 #13 0xe4ab8c60 in ?? ()
 #14 0x0000006c in ?? ()
 #15 0x0000006c in ?? ()
 #16 0x0000001b in ?? ()
 #17 0xc1fef22c in ?? ()
 #18 0x0000000c in ?? ()
 #19 0x00000000 in ?? ()
 #20 0xc0609582 in generic_bcopy () at ../../../i386/i386/support.s:489
 #21 0x00000000 in ?? ()
 #22 0xc2485238 in ?? ()
 #23 0xc05025f9 in q_to_b (clistp=0x8, dest=0xc1fef240 "\220 B\204\234,9\220=B\201QMSpN\001@u\r6\2064 \001GtN-{\204", amount=200)
     at ../../../kern/tty_subr.c:290
 #24 0xc05e7df5 in comstart (tp=0xc2485200) at ../../../dev/sio/sio.c:2469
 #25 0xc0542992 in pppstart (tp=0xc2485200) at ../../../net/ppp_tty.c:759
 #26 0xc05e77e1 in siopoll (dummy=0x0) at linedisc.h:129
 #27 0xc04bc645 in ithread_loop (arg=0xc1fd4400) at ../../../kern/kern_intr.c:547
 #28 0xc04bb6e1 in fork_exit (callout=0xc04bc4ec <ithread_loop>, arg=0xc1fd4400, frame=0xe4ab8d48) at ../../../kern/kern_fork.c:791
 #29 0xc05f94ac in fork_trampoline () at ../../../i386/i386/exception.s:209
 (kgdb) quit
 
 I will install the 6.2 version on my production server just to watch if
  this problem persists.
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 06:24:48 UTC 2010 
State-Changed-Why:  
Hello, is this still relevant for recent versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109568 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 14:38:05 UTC 2011 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109568 
>Unformatted:
