Bug 240710

Summary: Fatal trap 12: page fault while in kernel mode : swi4: clock (0)
Product: Base System Reporter: Martin Filla <freebsd>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me Keywords: crash
Priority: ---    
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
memory.good.state.txt
none
core.txt.3 none

Description Martin Filla 2019-09-20 15:46:10 UTC
Created attachment 207653 [details]
memory.good.state.txt

I wanted upgrade memory from 4GB to 8GB but 
i have still problem with panics. I did memory test
to 8g but nothig error in memory. 
In my opinion motherboard dont support timing 8g memory with other timing memory
and kernel then have this problem. In memout file is my current good state with 4GB.
I have problem with type of memory 8GB 2Rx8 PC3l 12800S - 11 - 13 - F3 HMT41GS6BFA8A - PB NO AA


FreeBSD  12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC  amd64

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x80023b660
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff80b7ac6d
stack pointer	        = 0x28:0xfffffe003ef45970
frame pointer	        = 0x28:0xfffffe003ef459e0
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 12 (swi4: clock (0))
trap number		= 12
panic: page fault
cpuid = 0
time = 1568990550
KDB: stack backtrace:
#0 0xffffffff80be78d7 at kdb_backtrace+0x67
#1 0xffffffff80b9b4b3 at vpanic+0x1a3
#2 0xffffffff80b9b303 at panic+0x43
#3 0xffffffff81074bff at trap_fatal+0x35f
#4 0xffffffff81074c59 at trap_pfault+0x49
#5 0xffffffff8107427e at trap+0x29e
#6 0xffffffff8104f625 at calltrap+0x8
#7 0xffffffff80dd7822 at frag6_slowtimo+0x82
#8 0xffffffff80c26064 at pfslowtimo+0x54
#9 0xffffffff80bb549e at softclock_call_cc+0x12e
#10 0xffffffff80bb5989 at softclock+0x79
#11 0xffffffff80b5ed67 at ithread_loop+0x1a7
#12 0xffffffff80b5be83 at fork_exit+0x83
#13 0xffffffff8105061e at fork_trampoline+0xe
Uptime: 10s
Dumping 452 out of 7943 MB:..4%..11%..22%..32%..43%..54%..61%..71%..82%..92%

__curthread () at ./machine/pcpu.h:234
234	./machine/pcpu.h: No such file or directory.
(kgdb) bt
#0  __curthread () at ./machine/pcpu.h:234
#1  doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:366
#2  0xffffffff80b9b09b in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:446
#3  0xffffffff80b9b513 in vpanic (fmt=<optimized out>, ap=0xfffffe003ef456c0) at /usr/src/sys/kern/kern_shutdown.c:872
#4  0xffffffff80b9b303 in panic (fmt=<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:799
#5  0xffffffff81074bff in trap_fatal (frame=0xfffffe003ef458b0, eva=34362078816) at /usr/src/sys/amd64/amd64/trap.c:929
#6  0xffffffff81074c59 in trap_pfault (frame=0xfffffe003ef458b0, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:765
#7  0xffffffff8107427e in trap (frame=0xfffffe003ef458b0) at /usr/src/sys/amd64/amd64/trap.c:441
#8  <signal handler called>
#9  __mtx_lock_sleep (c=0xfffffe00025934e0, v=<optimized out>) at /usr/src/sys/kern/kern_mutex.c:565
#10 0xffffffff80dd7822 in frag6_slowtimo () at /usr/src/sys/netinet6/frag6.c:849
#11 0xffffffff80c26064 in pfslowtimo (arg=0xfffffe00025934e0) at /usr/src/sys/kern/uipc_domain.c:508
#12 0xffffffff80bb549e in softclock_call_cc (c=<optimized out>, cc=0xffffffff81ff3f00 <cc_cpu>, direct=<optimized out>)
    at /usr/src/sys/kern/kern_timeout.c:731
#13 0xffffffff80bb5989 in softclock (arg=0xffffffff81ff3f00 <cc_cpu>) at /usr/src/sys/kern/kern_timeout.c:869
#14 0xffffffff80b5ed67 in intr_event_execute_handlers (p=<optimized out>, ie=<optimized out>) at /usr/src/sys/kern/kern_intr.c:1043
#15 ithread_execute_handlers (p=<optimized out>, ie=<optimized out>) at /usr/src/sys/kern/kern_intr.c:1056
#16 ithread_loop (arg=<optimized out>) at /usr/src/sys/kern/kern_intr.c:1136
#17 0xffffffff80b5be83 in fork_exit (callout=0xffffffff80b5ebc0 <ithread_loop>, arg=0xfffff80003060d80, frame=0xfffffe003ef45c00)
    at /usr/src/sys/kern/kern_fork.c:1057
#18 <signal handler called>
(kgdb)
Comment 1 Martin Filla 2019-09-20 15:49:23 UTC
Created attachment 207654 [details]
core.txt.3
Comment 2 Martin Filla 2020-12-26 12:25:32 UTC
FreeBSD 12.0 is unsupported. In next version is without this issue.