From nobody@FreeBSD.org  Wed Jul 30 08:23:17 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8E7B4106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jul 2008 08:23:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 84DE58FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jul 2008 08:23:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6U8NGQO093852
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jul 2008 08:23:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m6U8NG8X093851;
	Wed, 30 Jul 2008 08:23:16 GMT
	(envelope-from nobody)
Message-Id: <200807300823.m6U8NG8X093851@www.freebsd.org>
Date: Wed, 30 Jul 2008 08:23:16 GMT
From: Mani chandra <mchandra@iitk.ac.in>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fatal trap 12: page fault while in kernel mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126089
>Category:       kern
>Synopsis:       [panic] Fatal trap 12: page fault while in kernel mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 30 08:30:01 UTC 2008
>Closed-Date:    Sun May 22 06:54:28 UTC 2011
>Last-Modified:  Sun May 22 06:54:28 UTC 2011
>Originator:     Mani chandra
>Release:        FreeBSD 7.0 RELENG_7 patched with CTM;src-7.0300xEmpty.gz
>Organization:
>Environment:
FreeBSD Death-Star 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Jul 23 02:57:35 IST 2008     root@Death-Star:/usr/obj/usr/src/sys/DEATHSTAR  i386

>Description:
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x8021
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc071c2c7
stack pointer           = 0x28:0xe7386920
frame pointer           = 0x28:0xe7386958
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         = 25119 (make)
trap number             = 12
panic: page fault
cpuid = 1
Uptime: 21m41s
Physical memory: 3573 MB
Dumping 219 MB: 204 188 172 156 140 124 108 92 76 60 44 28 12

#0  doadump () at pcpu.h:195
195     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc0579cf1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0579fc4 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc078b144 in trap_fatal (frame=0xe73868e0, eva=32801) at /usr/src/sys/i386/i386/trap.c:899
#4  0xc078b394 in trap_pfault (frame=0xe73868e0, usermode=0, eva=32801) at /usr/src/sys/i386/i386/trap.c:812
#5  0xc078bcfa in trap (frame=0xe73868e0) at /usr/src/sys/i386/i386/trap.c:490
#6  0xc07736ab in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc071c2c7 in allocdirect_merge (adphead=0x1, newadp=0xc8cd4480, oldadp=0x8001)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:1744
#8  0xe7386974 in ?? ()
#9  0xc6c9f440 in ?? ()
#10 0x00080120 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00004000 in ?? ()
#13 0xc6c45a70 in ?? ()
#14 0xc865cd00 in ?? ()
#15 0x00000000 in ?? ()
#16 0xcb6e6e70 in ?? ()
#17 0xc6c21800 in ?? ()
#18 0xe73869e4 in ?? ()
#19 0xc070f6a1 in ffs_update (vp=0x926ce860, waitfor=1166802943) at /usr/src/sys/ufs/ffs/ffs_inode.c:110
Previous frame inner to this frame (corrupt stack?)

My hardware is the DELL Vostro 1400 with the following specs:-
Intel Core 2 Duo T9300 @ 2.5 GHz
4 GB DDR2 RAM @ 667 MHz
200 GB Harddrive @ 7200 rpm (ad4: 190782MB <Seagate ST9200420ASG 3.ADD> at ata2-master SATA300)
NVIDIA GeForce 8400M GS

My make.conf is:-
CPUTYPE=core2
CFLAGS= -O2 -fno-strict-aliasing -pipe
CXXFLAGS+= -fconserve-space
COPTFLAGS= -O -pipe
# added by use.perl 2008-06-29 04:07:27
PERL_VER=5.8.8
PERL_VERSION=5.8.8
KERNCONF=DEATHSTAR

FETCH_CMD=/usr/local/bin/wget
DISABLE_SIZE=YES


>How-To-Repeat:
I don't know. Seems to be random.
>Fix:


>Release-Note:
>Audit-Trail:

From: "Remko Lodder" <remko@elvandar.org>
To: "Mani chandra" <mchandra@iitk.ac.in>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/126089: Fatal trap 12: page fault while in kernel mode
Date: Wed, 30 Jul 2008 15:06:36 +0200 (CEST)

 Hello,
 
 Can you please remove the specific make.conf options and test whether the
 problem keeps occuring with those settings? Additionally can you make sure
 that you include the -g flag (See below)
 
 makeoptions     DEBUG=-g
 
 and possibly include other  KGDB options etc so that we might be able to
 analyze this a bit better.
 
 Thanks!
 remko
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jul 31 14:42:22 UTC 2008 
State-Changed-Why:  
Note that feedback was requested. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126089 

From: Mani chandra <mchandra@iitk.ac.in>
To: bug-followup@FreeBSD.org, mchandra@iitk.ac.in
Cc:  
Subject: Re: kern/126089: [panic] Fatal trap 12: page fault while in kernel
 mode
Date: Fri, 01 Aug 2008 01:04:00 +0530

 Hi,
    Thanks for looking into it. I noticed that the make options that I 
 set were being enabled by default even when I don't set anything in my 
 make.conf(except for the CPUTYPE variable). I only copied the default 
 options in the example make.conf. Also I did include the debugging 
 symbols options in my kernel configuration with the following option.
 
 makeoptions     DEBUG=-g
 
 How do I include additional kgdb options?
 
 Also, I don't know if this helps but I added the following option to my 
 loader.conf(which is empty except for the following option).
 
 kern.maxfiles="40000"
 
 Thanking you,
 Mani chandra

From: Mani chandra <mchandra@iitk.ac.in>
To: bug-followup@FreeBSD.org, mchandra@iitk.ac.in
Cc:  
Subject: Re: kern/126089: [panic] Fatal trap 12: page fault while in kernel
 mode
Date: Sun, 03 Aug 2008 22:16:50 +0530

 Hi,
     I had another crash today and the following is the backtrace.
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 1; apic id = 01
 fault virtual address   = 0x810698bc
 fault code              = supervisor read, page not present
 instruction pointer     = 0x20:0xc05dab78
 stack pointer           = 0x28:0xe6e86b98
 frame pointer           = 0x28:0xe6e86bb8
 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         = 858 (gkrellm)
 trap number             = 12
 panic: page fault
 cpuid = 1
 Uptime: 26m3s
 Physical memory: 3573 MB
 Dumping 217 MB: 202 186 170 154 138 122 106 90 74 58 42 26 10
 
 #0  doadump () at pcpu.h:195
 195     pcpu.h: No such file or directory.
         in pcpu.h
 (kgdb) bt
 #0  doadump () at pcpu.h:195
 #1  0xc0579cf1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
 #2  0xc0579fc4 in panic (fmt=Variable "fmt" is not available.
 ) at /usr/src/sys/kern/kern_shutdown.c:563
 #3  0xc078b144 in trap_fatal (frame=0xe6e86b58, eva=2164693180) at 
 /usr/src/sys/i386/i386/trap.c:899
 #4  0xc078b394 in trap_pfault (frame=0xe6e86b58, usermode=0, 
 eva=2164693180) at /usr/src/sys/i386/i386/trap.c:812
 #5  0xc078bcfa in trap (frame=0xe6e86b58) at 
 /usr/src/sys/i386/i386/trap.c:490
 #6  0xc07736ab in calltrap () at /usr/src/sys/i386/i386/exception.s:139
 #7  0xc05dab78 in brelse (bp=0xc74054a4) at /usr/src/sys/kern/vfs_bio.c:321
 #8  0xc05b2741 in soo_write (fp=0xc6fdeab0, uio=0xe6e86c60, 
 active_cred=0xc7368b00, flags=0, td=0xc7407440)
     at /usr/src/sys/kern/sys_socket.c:103
 #9  0xc05ac085 in dofilewrite (td=0xc7407440, fd=3, fp=0xc6fdeab0, 
 auio=0xe6e86c60, offset=-1, flags=0) at file.h:254
 #10 0xc05ac321 in kern_writev (td=0xc7407440, fd=3, auio=0xe6e86c60) at 
 /usr/src/sys/kern/sys_generic.c:401
 #11 0xc05ac38d in write (td=0xc7407440, uap=0xe6e86cfc) at 
 /usr/src/sys/kern/sys_generic.c:317
 #12 0xc078b6d5 in syscall (frame=0xe6e86d38) at 
 /usr/src/sys/i386/i386/trap.c:1035
 #13 0xc0773710 in Xint0x80_syscall () at 
 /usr/src/sys/i386/i386/exception.s:196
 #14 0x00000033 in ?? ()
 Previous frame inner to this frame (corrupt stack?)
 

From: Mani chandra <mchandra@iitk.ac.in>
To: bug-followup@FreeBSD.org, mchandra@iitk.ac.in
Cc:  
Subject: Re: kern/126089: [panic] Fatal trap 12: page fault while in kernel
 mode
Date: Sun, 03 Aug 2008 22:39:04 +0530

 Also the following is my df -h output
 
 Filesystem     Size    Used   Avail Capacity  Mounted on
 /dev/ad4s1a    496M    246M    210M    54%    /
 devfs          1.0K    1.0K      0B   100%    /dev
 /dev/ad4s1e    496M    9.8M    446M     2%    /tmp
 /dev/ad4s1f    174G    135G     25G    84%    /usr
 /dev/ad4s1d    4.8G    871M    3.6G    19%    /var
 linprocfs      4.0K    4.0K      0B   100%    /usr/compat/linux/proc
 
 I have 4 GB of ram and 1 GB of swap space

From: Mani chandra <mchandra@iitk.ac.in>
To: bug-followup@FreeBSD.org, mchandra@iitk.ac.in
Cc:  
Subject: Re: kern/126089: [panic] Fatal trap 12: page fault while in kernel
 mode
Date: Sun, 03 Aug 2008 22:51:57 +0530

 I ran memtest86 for about 20 hrs and it ran successfully. So I guess the 
 ram is ok. Also after the first crash I removed the option kern.maxfiles 
 = "40000" from my /boot/loader.conf. The second crash was without any 
 options in my /boot/loader.conf
 
 Mani chandra
State-Changed-From-To: feedback->open 
State-Changed-By: jh 
State-Changed-When: Sun Mar 27 10:38:15 UTC 2011 
State-Changed-Why:  
Back to open. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126089 
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sun Mar 27 10:38:48 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on a supported release? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126089 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sun May 22 06:54:26 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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