Repeatable Trap 12 on 07-29 kernel

Dan Nelson dnelson at allantgroup.com
Mon Aug 2 09:33:51 PDT 2004


I usually run java under libc_r, but if I point java-1.4.2 to libpthreads.so
via libmap.conf, within 5 minutes or so I get a kernel panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 00
fault virtual address   = 0x54
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0565e78
stack pointer           = 0x10:0xdee22b28
frame pointer           = 0x10:0xdee22b48
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 753 (java)

The system locks hard here (can't break into ddb via serial console), so I
don't have a coredump.  addr2line says:

$ addr2line -f -e kernel.debug 0xc0565e78
setrunqueue
../../../kern/kern_switch.c:402

401                        td2 = TAILQ_FIRST(&kg->kg_runq);
402                        KASSERT((td2->td_kse == NULL),
403                            ("unexpected ke present"));

This is with PREEMPTION enabled.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-current mailing list