@cgone can you post the panic backtrace too as a reference point?
ddb.txt06000014000014673124713 7102 ustarrootwheeldb:0:kdb.enter.default> run lockinfodb:1:lockinfo> show locksNo such command; use "help" to list available commandsdb:1:lockinfo> show alllocksNo such command; use "help" to list available commandsdb:1:lockinfo> show lockedvnodsLocked vnodesdb:0:kdb.enter.default> show pcpucpuid = 3dynamic pcpu = 0xfffffe009e97b080curthread = 0xfffff8002d0bc740: pid 23521 tid 102231 critnest 1 "Eastpect Main Event"curpcb = 0xfffff8002d0bcc60fpcurthread = 0xfffff8002d0bc740: pid 23521 "Eastpect Main Event"idlethread = 0xfffff80001974000: tid 100006 "idle: cpu3"self = 0xffffffff83a13000curpmap = 0xfffff801c96ad600tssp = 0xffffffff83a13384rsp0 = 0xfffffe0102b8c000kcr3 = 0x80000003ae08d4b0ucr3 = 0x80000003ae08ccb0scr3 = 0x3ae08ccb0gs32p = 0xffffffff83a13404ldt = 0xffffffff83a13444tss = 0xffffffff83a13434curvnet = 0db:0:kdb.enter.default> btTracing pid 23521 tid 102231 td 0xfffff8002d0bc740kdb_enter() at kdb_enter+0x33/frame 0xfffffe0102b8b9e0panic() at panic+0x43/frame 0xfffffe0102b8ba40trap_fatal() at trap_fatal+0x40b/frame 0xfffffe0102b8baa0calltrap() at calltrap+0x8/frame 0xfffffe0102b8baa0--- trap 0x9, rip = 0xffffffff8108cf63, rsp = 0xfffffe0102b8bb70, rbp = 0xfffffe0102b8bb70 ---pmap_pvh_remove() at pmap_pvh_remove+0x23/frame 0xfffffe0102b8bb70pmap_enter() at pmap_enter+0xd1e/frame 0xfffffe0102b8bc50vm_fault() at vm_fault+0xbb7/frame 0xfffffe0102b8bd70vm_fault_trap() at vm_fault_trap+0x4d/frame 0xfffffe0102b8bdc0trap_pfault() at trap_pfault+0x1be/frame 0xfffffe0102b8be10trap() at trap+0x4ab/frame 0xfffffe0102b8bf30calltrap() at calltrap+0x8/frame 0xfffffe0102b8bf30--- trap 0xc, rip = 0x827eed850, rsp = 0x8414947a8, rbp = 0x841494860 ---
Looks like different panic?db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0149b4b8b0vpanic() at vpanic+0x131/frame 0xfffffe0149b4b9e0panic() at panic+0x43/frame 0xfffffe0149b4ba40trash_ctor() at trash_ctor+0x53/frame 0xfffffe0149b4ba50mb_ctor_pack() at mb_ctor_pack+0x3e/frame 0xfffffe0149b4ba90item_ctor() at item_ctor+0x117/frame 0xfffffe0149b4bae0m_getm2() at m_getm2+0x1aa/frame 0xfffffe0149b4bb50m_uiotombuf() at m_uiotombuf+0x6f/frame 0xfffffe0149b4bbe0uipc_sosend_dgram() at uipc_sosend_dgram+0x170/frame 0xfffffe0149b4bc70sousrsend() at sousrsend+0x79/frame 0xfffffe0149b4bcd0kern_sendit() at kern_sendit+0x1bc/frame 0xfffffe0149b4bd60sendit() at sendit+0x184/frame 0xfffffe0149b4bdb0sys_sendto() at sys_sendto+0x4d/frame 0xfffffe0149b4be00amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe0149b4bf30fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0149b4bf30> panic("Memory modified after free %p(%d) val=%lx @ %p\n", mem, size, *p, p);Yes, well, this seems to point to a memory corruption that's going on for whatever reason, apparently in UDP (which woul also point to the WireGuard kernel module).It could still be the same panic, but since the debug kernel has more panics like this one it tries to catch errors earlier, but here also the damage was already done.The question is if this is caused inherently by hardware and it needs to be replaced or the errors go away without using WireGuard? This doesn't seem to be a prevalent issue, but it could still be a code problem.Cheers,Franco
Timecounter "TSC-low" frequency 1593603556 Hz quality 1000Timecounters tick every 1.000 msecugen0.1: <Intel XHCI root HUB> at usbus0ixl1: Link is up, 1 Gbps Full Duplex, Requested FEC: None, Negotiated FEC: None, Autoneg: True, Flow Control: Noneixl1: link state changed to UPdebugnet_any_ifnet_update: Bad dn_init result from ixl1 (ifp 0xfffff8000326e000), ignoring.ZFS filesystem version: 5ZFS storage pool version: features support (5000)uhub0 on usbus0uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0ugen1.1: <Intel XHCI root HUB> at usbus1uhub1 on usbus1uhub1: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1nvme0: Allocated 64MB host memory buffernda0 at nvme0 bus 0 scbus0 target 0 lun 1nda0: <CT500P3PSSD8 P9CR413 2417487F0AA6>nda0: Serial Number Xnda0: nvme version 1.4nda0: 476940MB (976773168 512 byte sectors)Trying to mount root from zfs:zroot/ROOT/default []...uhub0: 4 ports with 4 removable, self powereduhub1: 16 ports with 16 removable, self poweredugen1.2: <MediaTek Inc. WirelessDevice> at usbus1pid 31 (zpool) is attempting to use unsafe AIO requests - not logging anymore
panic: Memory modified after free 0xfffff8015ea40800(2048) val=1ce4029760df7eac @ 0xfffff8015ea40dc0cpuid = 3time = 1726747522KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0149b4b8b0vpanic() at vpanic+0x131/frame 0xfffffe0149b4b9e0panic() at panic+0x43/frame 0xfffffe0149b4ba40trash_ctor() at trash_ctor+0x53/frame 0xfffffe0149b4ba50mb_ctor_pack() at mb_ctor_pack+0x3e/frame 0xfffffe0149b4ba90item_ctor() at item_ctor+0x117/frame 0xfffffe0149b4bae0m_getm2() at m_getm2+0x1aa/frame 0xfffffe0149b4bb50m_uiotombuf() at m_uiotombuf+0x6f/frame 0xfffffe0149b4bbe0uipc_sosend_dgram() at uipc_sosend_dgram+0x170/frame 0xfffffe0149b4bc70sousrsend() at sousrsend+0x79/frame 0xfffffe0149b4bcd0kern_sendit() at kern_sendit+0x1bc/frame 0xfffffe0149b4bd60sendit() at sendit+0x184/frame 0xfffffe0149b4bdb0sys_sendto() at sys_sendto+0x4d/frame 0xfffffe0149b4be00amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe0149b4bf30fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0149b4bf30--- syscall (133, FreeBSD ELF64, sendto), rip = 0x25520240c57a, rsp = 0x2551ff2eeea8, rbp = 0x2551ff2f30c0 ---KDB: enter: panic
Fatal trap 12: page fault while in kernel modecpuid = 6; apic id = 18fault virtual address = 0x30fault code = supervisor read data, page not presentinstruction pointer = 0x20:0xffffffff810909f0stack pointer = 0x28:0xfffffe01549b0710frame pointer = 0x28:0xfffffe01549b0860code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1processor eflags = interrupt enabled, resume, IOPL = 0current process = 77999 (python3.11)rdi: fffffe001ea27940 rsi: fffff80215ba0740 rdx: 0000000200000000rcx: 0000000000000001 r8: 000007fffffff000 r9: 0000000000000063rax: c6083eb6eceb6cea rbx: fffffffc00000000 rbp: fffffe01549b0860r10: fffff80039fb8ce0 r11: fffff801dace1000 r12: 0000000000000021r13: fffff80000000000 r14: 0000000000000000 r15: 39f7c14913149315trap number = 12panic: page faultcpuid = 6time = 1727378741KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01549b0400vpanic() at vpanic+0x131/frame 0xfffffe01549b0530panic() at panic+0x43/frame 0xfffffe01549b0590trap_fatal() at trap_fatal+0x40b/frame 0xfffffe01549b05f0trap_pfault() at trap_pfault+0x46/frame 0xfffffe01549b0640calltrap() at calltrap+0x8/frame 0xfffffe01549b0640--- trap 0xc, rip = 0xffffffff810909f0, rsp = 0xfffffe01549b0710, rbp = 0xfffffe01549b0860 ---pmap_remove_pages() at pmap_remove_pages+0x5f0/frame 0xfffffe01549b0860vmspace_exit() at vmspace_exit+0x80/frame 0xfffffe01549b0890exit1() at exit1+0x53a/frame 0xfffffe01549b08f0sigexit() at sigexit+0x13d/frame 0xfffffe01549b0d60postsig() at postsig+0x23a/frame 0xfffffe01549b0e20ast_sig() at ast_sig+0x1d7/frame 0xfffffe01549b0ed0ast_handler() at ast_handler+0x88/frame 0xfffffe01549b0f10ast() at ast+0x20/frame 0xfffffe01549b0f30doreti_ast() at doreti_ast+0x1c/frame 0x87e205ef0KDB: enter: panicpanic.txt0600001214675332465 7150 ustarrootwheelpage faultversion.txt0600007414675332465 7553 ustarrootwheelFreeBSD 14.1-RELEASE-p5 stable/24.7-n267840-e62d514886a SMP
It's beginning to look more and more like a hardware issue.Sorry,Franco
<6>pid 77267 (python3.11), jid 0, uid 0: exited on signal 10 (no core dump - bad address)<6>pid 77999 (python3.11), jid 0, uid 0: exited on signal 10 (no core dump - bad address)
2024-09-27T13:43:31 Error opnsense /usr/local/etc/rc.newwanipv6: The command '/bin/kill -'TERM' '73423''(pid:/var/run/unbound.pid) returned exit code '1', the output was 'kill: 73423: No such process' 2024-09-27T13:40:38 Error opnsense /usr/local/sbin/pluginctl: The command '/bin/kill -'TERM' '72153''(pid:/var/run/unbound.pid) returned exit code '1', the output was 'kill: 72153: No such process'
Fatal trap 9: general protection fault while in kernel modecpuid = 9; apic id = 22instruction pointer = 0x20:0xffffffff8108f4eestack pointer = 0x28:0xfffffe0158e9bbd0frame pointer = 0x28:0xfffffe0158e9bc00code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1processor eflags = interrupt enabled, resume, IOPL = 0current process = 26738 (python3.11)rdi: fffffe001ea8a480 rsi: 000000000000000c rdx: 0000000000000024rcx: 46ff382abf19b8e7 r8: 000007fffffff000 r9: fffff8001ac55600rax: fffff80188830168 rbx: fffffe0017e62a28 rbp: fffffe0158e9bc00r10: 80000003ad429425 r11: fffff80000000000 r12: ffffffff81807940r13: 0000000000000000 r14: fffff80188830160 r15: fffffe0158e9bc60trap number = 9panic: general protection faultcpuid = 9time = 1727453132KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0158e9b910vpanic() at vpanic+0x131/frame 0xfffffe0158e9ba40panic() at panic+0x43/frame 0xfffffe0158e9baa0trap_fatal() at trap_fatal+0x40b/frame 0xfffffe0158e9bb00calltrap() at calltrap+0x8/frame 0xfffffe0158e9bb00--- trap 0x9, rip = 0xffffffff8108f4ee, rsp = 0xfffffe0158e9bbd0, rbp = 0xfffffe0158e9bc00 ---pmap_try_insert_pv_entry() at pmap_try_insert_pv_entry+0xbe/frame 0xfffffe0158e9bc00pmap_copy() at pmap_copy+0x549/frame 0xfffffe0158e9bcb0vmspace_fork() at vmspace_fork+0xc90/frame 0xfffffe0158e9bd30fork1() at fork1+0x52e/frame 0xfffffe0158e9bda0sys_fork() at sys_fork+0x54/frame 0xfffffe0158e9be00amd64_syscall() at amd64_syscall+0x100/frame 0xfffffe0158e9bf30fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0158e9bf30--- syscall (0, FreeBSD ELF64, syscall), rip = 0x8262491fa, rsp = 0x838afb3f8, rbp = 0x838afb450 ---KDB: enter: panicpanic.txt0600003014675553714 7152 ustarrootwheelgeneral protection faultversion.txt0600007414675553714 7555 ustarrootwheelFreeBSD 14.1-RELEASE-p5 stable/24.7-n267840-e62d514886a SMP