From nobody@FreeBSD.org  Thu May  1 11:18:23 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 53CA5CCF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 May 2014 11:18:23 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 41E601D7A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 May 2014 11:18:23 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s41BIN4s039387
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 May 2014 11:18:23 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s41BIM9U039381;
	Thu, 1 May 2014 11:18:22 GMT
	(envelope-from nobody)
Message-Id: <201405011118.s41BIM9U039381@cgiserv.freebsd.org>
Date: Thu, 1 May 2014 11:18:22 GMT
From: Roar Pettersen <rope1968@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel Panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189183
>Category:       i386
>Synopsis:       [panic] Kernel Panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 11:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 04 04:30:02 UTC 2014
>Originator:     Roar Pettersen
>Release:        FreeBSD 9.2-STABLE #1 r265172
>Organization:
Private
>Environment:
FreeBSD safir.XXX.no 9.2-STABLE FreeBSD 9.2-STABLE #1 r265172: Thu May  1 11:44:24 CEST 2014     root@safir.XXX.no:/usr/obj/usr/src/sys/SAFIR  i386
>Description:
Kernel panic after few minuttes uptime with portupgrade compiling.

# kgdb kernel.debug /var/crash/vmcore.0
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"...

Unread portion of the kernel message buffer:


Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x20:0xc09490c4
stack pointer           = 0x28:0xf00fabb8
frame pointer           = 0x28:0xf00fabd4
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         = 53950 (cc1)
trap number             = 1
panic: privileged instruction fault
cpuid = 0
KDB: stack backtrace:
#0 0xc0743eef at kdb_backtrace+0x4f
#1 0xc070ee8f at panic+0x16f
#2 0xc099fa43 at trap_fatal+0x323
#3 0xc09a0c5a at trap+0x61a
#4 0xc098a34c at calltrap+0x6
#5 0xc094ca12 at vm_map_madvise+0xd2
#6 0xc0950231 at sys_madvise+0xa1
#7 0xc09a019a at syscall+0x34a
#8 0xc098a3b1 at Xint0x80_syscall+0x21
Uptime: 12m55s
Physical memory: 3314 MB
Dumping 148 MB: 133 117 101 85 69 53 37 21 5

#0  doadump (textdump=1) at pcpu.h:249
249             __asm("movl %%fs:%1,%0" : "=r" (td)
(kgdb) backtrace
#0  doadump (textdump=1) at pcpu.h:249
#1  0xc070ebd5 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:454
#2  0xc070eed2 in panic (fmt=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:642
#3  0xc099fa43 in trap_fatal (frame=0xf00fab78, eva=0) at /usr/src/sys/i386/i386/trap.c:1036
#4  0xc09a0c5a in trap (frame=0xf00fab78) at /usr/src/sys/i386/i386/trap.c:746
#5  0xc098a34c in calltrap () at /usr/src/sys/i386/i386/exception.s:170
#6  0xc09490c4 in vm_map_lookup_entry (map=0xc7a5f760, address=700502016, entry=0xf00fac14)
    at /usr/src/sys/vm/vm_map.c:1070
#7  0xc094ca12 in vm_map_madvise (map=0xc7a5f760, start=700502016, end=700522496, 
    behav=<value optimized out>) at /usr/src/sys/vm/vm_map.c:2077
#8  0xc0950231 in sys_madvise (td=0xc885b8d0, uap=0xf00faccc) at /usr/src/sys/vm/vm_mmap.c:764
#9  0xc09a019a in syscall (frame=0xf00fad08) at subr_syscall.c:135
#10 0xc098a3b1 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:270
#11 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) list *0xc09490c4
0xc09490c4 is in vm_map_lookup_entry (/usr/src/sys/vm/vm_map.c:1070).
1065             */
1066            cur = map->root;
1067            if (cur == NULL)
1068                    *entry = &map->header;
1069            else if (address >= cur->start && cur->end > address) {
1070                    *entry = cur;
1071                    return (TRUE);
1072            } else if ((locked = vm_map_locked(map)) ||
1073                sx_try_upgrade(&map->lock)) {
1074                    /*
(kgdb) 
>How-To-Repeat:
Compiling programs
>Fix:


>Release-Note:
>Audit-Trail:

From: Roar Pettersen <rope1968@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-i386@freebsd.org
Cc:  
Subject: Re: i386/189183: Kernel Panic
Date: Thu, 1 May 2014 14:00:09 +0200

 --089e012292f81f7bfd04f85568ee
 Content-Type: text/plain; charset=UTF-8
 
 Fatal trap 1: privileged instruction fault while in kernel mode
 cpuid = 0; apic id = 00
 instruction pointer     = 0x20:0xc070ad28
 stack pointer           = 0x28:0xf00339a4
 frame pointer           = 0x28:0xf00339cc
 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         = 48931 (cc1plus)
 trap number             = 1
 panic: privileged instruction fault
 cpuid = 0
 KDB: stack backtrace:
 #0 0xc0743eef at kdb_backtrace+0x4f
 #1 0xc070ee8f at panic+0x16f
 #2 0xc099fa43 at trap_fatal+0x323
 #3 0xc09a0c5a at trap+0x61a
 #4 0xc098a34c at calltrap+0x6
 #5 0xc0943f97 at vm_fault_hold+0x17c7
 #6 0xc0944f9b at vm_fault+0x8b
 #7 0xc099fc0f at trap_pfault+0x1bf
 #8 0xc09a08e9 at trap+0x2a9
 #9 0xc098a34c at calltrap+0x6
 Uptime: 1h12m54s
 Physical memory: 3314 MB
 Dumping 213 MB: 198 182 166 150 134 118 102 86 70 54 38 22 6
 
 #0  doadump (textdump=1) at pcpu.h:249
 249     pcpu.h: No such file or directory.
         in pcpu.h
 (kgdb) #0  doadump (textdump=1) at pcpu.h:249
 #1  0xc070ebd5 in kern_reboot (howto=260)
     at /usr/src/sys/kern/kern_shutdown.c:454
 #2  0xc070eed2 in panic (fmt=<value optimized out>)
     at /usr/src/sys/kern/kern_shutdown.c:642
 #3  0xc099fa43 in trap_fatal (frame=0xf0033964, eva=0)
     at /usr/src/sys/i386/i386/trap.c:1036
 #4  0xc09a0c5a in trap (frame=0xf0033964) at
 /usr/src/sys/i386/i386/trap.c:746
 #5  0xc098a34c in calltrap () at /usr/src/sys/i386/i386/exception.s:170
 #6  0xc070ad28 in sys_rtprio (td=0xc4b08ef0, uap=0xc1c34ef0)
     at /usr/src/sys/kern/kern_resource.c:438
 #7  0xc0943f97 in vm_fault_hold (map=0xc715b760, vaddr=140619776,
     fault_type=2 '\002', fault_flags=<value optimized out>, m_hold=0x0)
     at /usr/src/sys/vm/vm_fault.c:793
 #8  0xc0944f9b in vm_fault (map=0xc715b760, vaddr=140619776,
     fault_type=<value optimized out>, fault_flags=0)
     at /usr/src/sys/vm/vm_fault.c:229
 #9  0xc099fc0f in trap_pfault (frame=0xf0033d08, usermode=1, eva=140620268)
     at /usr/src/sys/i386/i386/trap.c:916
 #10 0xc09a08e9 in trap (frame=0xf0033d08) at
 /usr/src/sys/i386/i386/trap.c:408
 #11 0xc098a34c in calltrap () at /usr/src/sys/i386/i386/exception.s:170
 #12 0x08532112 in ?? ()
 Previous frame inner to this frame (corrupt stack?)
 (kgdb)
 
 --089e012292f81f7bfd04f85568ee--
>Unformatted:
