Bug 189183 - [panic] Kernel Panic
Summary: [panic] Kernel Panic
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: 9.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-i386 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 12:20 UTC by Roar Pettersen
Modified: 2018-05-28 19:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roar Pettersen 2014-05-01 12:20:00 UTC
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 rx0, 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
Comment 1 Roar Pettersen 2014-05-01 13:00:09 UTC
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 rx0, 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)
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:45:26 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.