Bug 126821 - [panic] Fatal trap 12 (kdeinit)
Summary: [panic] Fatal trap 12 (kdeinit)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2008-08-25 11:20 UTC by Dmitry A.
Modified: 2022-10-17 12:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A. 2008-08-25 11:20:03 UTC
Received the following error working in KDE, as this is probably not associated with KDE.

Error:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address    = 0x9000a
fault code            = supervisor read, page not present
instruction pointer   = 0x20:0xc053a619
stack pointer         = 0x28:0xe700f708
frame pointer         = 0x28:0xe700f734
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       = 96412 (kdeinit)
trap number           = 12
panic: page fault
cpuid = 0
Uptime: 3d7h31m52s
Physical memory: 1007 MB
Dumping 206 MB: 191 175 159 143 127 111 95 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  79 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  63 47 31 15

	
Additional Information:


[root@zingel /boot/kernel]# kgdb  -v /boot/kernel/kernel /var/crash/vmcore.2
kgdb: core file: /var/crash/vmcore.2
kgdb: kernel image: /boot/kernel/kernel
kgdb: kvm_read:
kgdb: kvm_read:
[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".
Cannot access memory at address 0xc1842fe4
(kgdb) where
#0  sched_switch (td=0xc467a210, newtd=0xc53d0a50, flags=1) at /usr/src/sys/kern/sched_4bsd.c:928
#1  0xc0593c76 in mi_switch (flags=Variable "flags" is not available.
) at /usr/src/sys/kern/kern_synch.c:442
#2  0xc05b999b in sleepq_switch (wchan=Variable "wchan" is not available.
) at /usr/src/sys/kern/subr_sleepqueue.c:478
#3  0xc05b9c3a in sleepq_catch_signals (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:414
#4  0xc05ba399 in sleepq_timedwait_sig (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:612
#5  0xc0554f50 in _cv_timedwait_sig (cvp=0xc07be698, lock=0xc07be680, timo=2001) at /usr/src/sys/kern/kern_condvar.c:369
#6  0xc05c063f in kern_select (td=0xc467a210, nd=11, fd_in=0x2980d840, fd_ou=0x2980d9c4, fd_ex=0x2980db48, tvp=0xe6f87c70)
    at /usr/src/sys/kern/sys_generic.c:786
#7  0xc05c084e in select (td=0xc467a210, uap=0xe6f87cfc) at /usr/src/sys/kern/sys_generic.c:663
#8  0xc070d645 in syscall (frame=0xe6f87d38) at /usr/src/sys/i386/i386/trap.c:1035
#9  0xc06f3c80 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196
#10 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)  info threads
* 1 Thread 100055 (PID=96403: kdeinit)  sched_switch (td=0xc467a210, newtd=0xc53d0a50, flags=1) at /usr/src/sys/kern/sched_4bsd.c:928
(kgdb) backtrace
#0  sched_switch (td=0xc467a210, newtd=0xc53d0a50, flags=1) at /usr/src/sys/kern/sched_4bsd.c:928
#1  0xc0593c76 in mi_switch (flags=Variable "flags" is not available.
) at /usr/src/sys/kern/kern_synch.c:442
#2  0xc05b999b in sleepq_switch (wchan=Variable "wchan" is not available.
) at /usr/src/sys/kern/subr_sleepqueue.c:478
#3  0xc05b9c3a in sleepq_catch_signals (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:414
#4  0xc05ba399 in sleepq_timedwait_sig (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:612
#5  0xc0554f50 in _cv_timedwait_sig (cvp=0xc07be698, lock=0xc07be680, timo=2001) at /usr/src/sys/kern/kern_condvar.c:369
#6  0xc05c063f in kern_select (td=0xc467a210, nd=11, fd_in=0x2980d840, fd_ou=0x2980d9c4, fd_ex=0x2980db48, tvp=0xe6f87c70)
    at /usr/src/sys/kern/sys_generic.c:786
#7  0xc05c084e in select (td=0xc467a210, uap=0xe6f87cfc) at /usr/src/sys/kern/sys_generic.c:663
#8  0xc070d645 in syscall (frame=0xe6f87d38) at /usr/src/sys/i386/i386/trap.c:1035
#9  0xc06f3c80 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196
#10 0x00000033 in ?? ()
(kgdb) up 0
#0  sched_switch (td=0xc467a210, newtd=0xc53d0a50, flags=1) at /usr/src/sys/kern/sched_4bsd.c:928
928             if (td->td_flags & TDF_IDLETD)
(kgdb) list
923                             PMC_SWITCH_CONTEXT(td, PMC_FN_CSW_IN);
924     #endif
925             }
926
927     #ifdef SMP
928             if (td->td_flags & TDF_IDLETD)
929                     idle_cpus_mask |= PCPU_GET(cpumask);
930     #endif
931             sched_lock.mtx_lock = (uintptr_t)td;
932             td->td_oncpu = PCPU_GET(cpuid);
(kgdb) up
#2  0xc05b999b in sleepq_switch (wchan=Variable "wchan" is not available.
) at /usr/src/sys/kern/subr_sleepqueue.c:478
478             mi_switch(SW_VOL, NULL);
(kgdb) up
#3  0xc05b9c3a in sleepq_catch_signals (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:414
414                             sleepq_switch(wchan);
(kgdb) up
#4  0xc05ba399 in sleepq_timedwait_sig (wchan=0xc07be698) at /usr/src/sys/kern/subr_sleepqueue.c:612
612             rcatch = sleepq_catch_signals(wchan);
(kgdb) up
#5  0xc0554f50 in _cv_timedwait_sig (cvp=0xc07be698, lock=0xc07be680, timo=2001) at /usr/src/sys/kern/kern_condvar.c:369
369             rval = sleepq_timedwait_sig(cvp);
(kgdb) up
#6  0xc05c063f in kern_select (td=0xc467a210, nd=11, fd_in=0x2980d840, fd_ou=0x2980d9c4, fd_ex=0x2980db48, tvp=0xe6f87c70)
    at /usr/src/sys/kern/sys_generic.c:786
786                     error = cv_timedwait_sig(&selwait, &sellock, timo);
(kgdb) up
#7  0xc05c084e in select (td=0xc467a210, uap=0xe6f87cfc) at /usr/src/sys/kern/sys_generic.c:663
663             return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp));
(kgdb) up
#8  0xc070d645 in syscall (frame=0xe6f87d38) at /usr/src/sys/i386/i386/trap.c:1035
1035                    error = (*callp->sy_call)(td, args);
(kgdb) up
#9  0xc06f3c80 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196
196             call    syscall
Current language:  auto; currently asm
(kgdb) list
191             pushl   %es
192             pushl   %fs
193             SET_KERNEL_SREGS
194             FAKE_MCOUNT(TF_EIP(%esp))
195             pushl   %esp
196             call    syscall
197             add     $4, %esp
198             MEXITCOUNT
199             jmp     doreti
200
(kgdb) up 7
#10 0x00000033 in ?? ()
(kgdb) list
226             .data
227             .p2align 4
228             .text
229             SUPERALIGN_TEXT
230     MCOUNT_LABEL(bintr)
231
232     #include <i386/isa/atpic_vector.s>
233
234     #ifdef DEV_APIC
235             .data
(kgdb)quit


Thank you
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:15 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:19:23 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>