Dumpheaderfromdevice:/dev/nvd0p3Architecture:amd64ArchitectureVersion:2DumpLength:970199040Blocksize:512Compression:noneDumptime:2023-05-1714:07:58+0100Hostname:displacementactivityMagic:FreeBSDKernelDumpVersionString:FreeBSD14.0-CURRENT#2 main-n261806-d3a49f62a284: Mon Mar 27 16:15:25 UTC 2023tj@displacementactivity:/usr/obj/usr/src/amd64.amd64/sys/GENERICPanicString:Duplicatefreeof0xfffff80339ef3000fromzone0xfffffe001ec2ea00(malloc-2048) slab0xfffff80325789168(0)DumpParity:3958266970Bounds:0DumpStatus:good
$kgdbkernel.debugvmcore.0Unreadportionofthekernelmessagebuffer:panic:Assertion!tcp_in_hpts(tp) failedat/usr/src/sys/netinet/tcp_subr.c:2432cpuid=2time = 1706644478KDB:stackbacktrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0047d2f480vpanic() at vpanic+0x132/frame 0xfffffe0047d2f5b0panic() at panic+0x43/frame 0xfffffe0047d2f610tcp_discardcb() at tcp_discardcb+0x25b/frame 0xfffffe0047d2f660tcp_usr_detach() at tcp_usr_detach+0x51/frame 0xfffffe0047d2f680sorele_locked() at sorele_locked+0xf7/frame 0xfffffe0047d2f6b0tcp_close() at tcp_close+0x155/frame 0xfffffe0047d2f6e0rack_check_data_after_close() at rack_check_data_after_close+0x8a/frame 0xfffffe0047d2f720rack_do_fin_wait_1() at rack_do_fin_wait_1+0x141/frame 0xfffffe0047d2f7a0rack_do_segment_nounlock() at rack_do_segment_nounlock+0x243b/frame 0xfffffe0047d2f9a0rack_do_segment() at rack_do_segment+0xda/frame 0xfffffe0047d2fa00tcp_input_with_port() at tcp_input_with_port+0x1157/frame 0xfffffe0047d2fb50tcp_input() at tcp_input+0xb/frame 0xfffffe0047d2fb60ip_input() at ip_input+0x2ab/frame 0xfffffe0047d2fbc0netisr_dispatch_src() at netisr_dispatch_src+0xad/frame 0xfffffe0047d2fc20ether_demux() at ether_demux+0x17a/frame 0xfffffe0047d2fc50ether_nh_input() at ether_nh_input+0x39f/frame 0xfffffe0047d2fca0netisr_dispatch_src() at netisr_dispatch_src+0xad/frame 0xfffffe0047d2fd00ether_input() at ether_input+0xd9/frame 0xfffffe0047d2fd60vtnet_rxq_eof() at vtnet_rxq_eof+0x73e/frame 0xfffffe0047d2fe20vtnet_rx_vq_process() at vtnet_rx_vq_process+0x9c/frame 0xfffffe0047d2fe60ithread_loop() at ithread_loop+0x266/frame 0xfffffe0047d2fef0fork_exit() at fork_exit+0x82/frame 0xfffffe0047d2ff30fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0047d2ff30---trap0,rip=0,rsp=0,rbp=0---KDB:enter:panicReadingsymbolsfrom/boot/kernel/zfs.ko...Readingsymbolsfrom/usr/lib/debug//boot/kernel/zfs.ko.debug...Readingsymbolsfrom/boot/kernel/tcp_rack.ko...Readingsymbolsfrom/usr/lib/debug//boot/kernel/tcp_rack.ko.debug...Readingsymbolsfrom/boot/kernel/tcphpts.ko...Readingsymbolsfrom/usr/lib/debug//boot/kernel/tcphpts.ko.debug...__curthread() at /usr/src/sys/amd64/include/pcpu_aux.h:5757__asm(“movq%%gs:%P1,%0”:“=r” (td) :“n” (offsetof(struct pcpu,(kgdb)
(kgdb) bt...#10 0xffffffff80b51233 in vpanic (fmt=0xffffffff811f87ca “Assertion %s failed at %s:%d”, ap=ap@entry=0xfffffe0047d2f5f0) at /usr/src/sys/kern/kern_shutdown.c:953
#11 0xffffffff80b51013 in panic (fmt=0xffffffff81980420 <cnputs_mtx> “\371\023\025\201\377\377\377\377”) at /usr/src/sys/kern/kern_shutdown.c:889
#12 0xffffffff80d5483b in tcp_discardcb (tp=tp@entry=0xfffff80008584a80) at /usr/src/sys/netinet/tcp_subr.c:2432#13 0xffffffff80d60f71 in tcp_usr_detach (so=0xfffff800100b6b40) at /usr/src/sys/netinet/tcp_usrreq.c:215#14 0xffffffff80c01357 in sofree (so=0xfffff800100b6b40) at /usr/src/sys/kern/uipc_socket.c:1209#15 sorele_locked (so=so@entry=0xfffff800100b6b40) at /usr/src/sys/kern/uipc_socket.c:1236#16 0xffffffff80d545b5 in tcp_close (tp=<optimized out>) at /usr/src/sys/netinet/tcp_subr.c:2539#17 0xffffffff82e37e0a in tcp_tv_to_usectick (sv=0xfffffe0047d2f698) at /usr/src/sys/netinet/tcp_hpts.h:177#18 tcp_get_usecs (tv=0xfffffe0047d2f698) at /usr/src/sys/netinet/tcp_hpts.h:232...(kgdb) frame12#12 0xffffffff80d5483b in tcp_discardcb (tp=tp@entry=0xfffff80008584a80) at /usr/src/sys/netinet/tcp_subr.c:2432warning:Sourcefileismorerecentthanexecutable.2432(kgdb) list2427#endif24282429CC_ALGO(tp) =NULL;2430if ((m =STAILQ_FIRST(&tp->t_inqueue)) !=NULL) {2431structmbuf*prev;24322433STAILQ_INIT(&tp->t_inqueue);2434STAILQ_FOREACH_FROM_SAFE(m,&tp->t_inqueue,m_stailqpkt,prev)2435m_freem(m);2436}
$lldb--core../gdb/coredump/vmcore.0../gdb/coredump/kernel-debug/kernel.debug(lldb) targetcreate“../gdb/coredump/kernel-debug/kernel.debug”--core“../gdb/coredump/vmcore.0”Corefile'/home/tj/code/scripts/gdb/coredump/vmcore.0' (x86_64) was loaded.(lldb)
(lldb) pmsgbufp->msg_ptr+msgbufp->msg_rseq(char *) 0xfffff8001ffeba99 “panic: Assertion !tcp_in_hpts(tp) failed at /usr/src/sys/netinet/tcp_subr.c:2432\ncpuid = 2\ntime = 1706644478\nKDB: stack backtrace:\ndb_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0047d2f480\nvpanic() at vpanic+0x132/frame 0xfffffe0047d2f5b0\npanic() at panic+0x43/frame 0xfffffe0047d2f610\ntcp_discardcb() at tcp_discardcb+0x25b/frame 0xfffffe0047d2f660\ntcp_usr_detach() at tcp_usr_detach+0x51/frame 0xfffffe0047d2f680\nsorele_locked() at sorele_locked+0xf7/frame 0xfffffe0047d2f6b0\ntcp_close() at tcp_close+0x155/frame 0xfffffe0047d2f6e0\nrack_check_data_after_close() at rack_check_data_after_close+0x8a/frame 0xfffffe0047d2f720\nrack_do_fin_wait_1() at rack_do_fin_wait_1+0x141/frame 0xfffffe0047d2f7a0\nrack_do_segment_nounlock() at rack_do_segment_nounlock+0x243b/frame 0xfffffe0047d2f9a0\nrack_do_segment() at rack_do_segment+0xda/frame 0xfffffe0047d2fa00\ntcp_input_with_port() at tcp_input_with_port+0x1157/frame 0xfffffe0047d2fb50\ntcp_input() at tcp_input+0xb/frame 0xfffffe0047d2fb60\nip_input() at ip_in”...
(lldb) x/bmsgbufp->msg_ptr+msgbufp->msg_rseq0xfffff8001ffeba99: “panic: Assertion !tcp_in_hpts(tp) failed at /usr/src/sys/netinet/tcp_subr.c:2432\ncpuid = 2\ntime = 1706644478\nKDB: stack backtrace:\ndb_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0047d2f480\nvpanic() at vpanic+0x132/frame 0xfffffe0047d2f5b0\npanic() at panic+0x43/frame 0xfffffe0047d2f610\ntcp_discardcb() at tcp_discardcb+0x25b/frame 0xfffffe0047d2f660\ntcp_usr_detach() at tcp_usr_detach+0x51/frame 0xfffffe0047d2f680\nsorele_locked() at sorele_locked+0xf7/frame 0xfffffe0047d2f6b0\ntcp_close() at tcp_close+0x155/frame 0xfffffe0047d2f6e0\nrack_check_data_after_close() at rack_check_data_after_close+0x8a/frame 0xfffffe0047d2f720\nrack_do_fin_wait_1() at rack_do_fin_wait_1+0x141/frame 0xfffffe0047d2f7a0\nrack_do_segment_nounlock() at rack_do_segment_nounlock+0x243b/frame 0xfffffe0047d2f9a0\nrack_do_segment() at rack_do_segment+0xda/frame 0xfffffe0047d2fa00\ntcp_input_with_port() at tcp_input_with_port+0x1157/frame 0xfffffe0047d2fb50\ntcp_input() at tcp_input+0xb/frame 0xfffffe0047d2fb60\nip_input() at ip_i”
warning:unabletofindaNULLterminatedstringat0xfffff8001ffeba99.Considerincreasingthemaximumreadlength.(lldb) x/2048bmsgbufp->msg_ptr+msgbufp->msg_rseqerror:Normally,‘memoryread’willnotreadover1024bytesofdata.error:Pleaseuse--forcetooverridethisrestrictionjustonce.error:orsettarget.max-memory-read-sizeifyouwilloftenneedalargerlimit.
(lldb) command script import ./msgbuf.luaUnread portion of the kernel message buffer:panic: Assertion !tcp_in_hpts(tp) failed at /usr/src/sys/netinet/tcp_subr.c:2432cpuid =2time =1706644478KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0047d2f480vpanic() at vpanic+0x132/frame 0xfffffe0047d2f5b0panic() at panic+0x43/frame 0xfffffe0047d2f610tcp_discardcb() at tcp_discardcb+0x25b/frame 0xfffffe0047d2f660tcp_usr_detach() at tcp_usr_detach+0x51/frame 0xfffffe0047d2f680sorele_locked() at sorele_locked+0xf7/frame 0xfffffe0047d2f6b0tcp_close() at tcp_close+0x155/frame 0xfffffe0047d2f6e0rack_check_data_after_close() at rack_check_data_after_close+0x8a/frame 0xfffffe0047d2f720rack_do_fin_wait_1() at rack_do_fin_wait_1+0x141/frame 0xfffffe0047d2f7a0rack_do_segment_nounlock() at rack_do_segment_nounlock+0x243b/frame 0xfffffe0047d2f9a0rack_do_segment() at rack_do_segment+0xda/frame 0xfffffe0047d2fa00tcp_input_with_port() at tcp_input_with_port+0x1157/frame 0xfffffe0047d2fb50tcp_input() at tcp_input+0xb/frame 0xfffffe0047d2fb60ip_input() at ip_input+0x2ab/frame 0xfffffe0047d2fbc0netisr_dispatch_src() at netisr_dispatch_src+0xad/frame 0xfffffe0047d2fc20ether_demux() at ether_demux+0x17a/frame 0xfffffe0047d2fc50ether_nh_input() at ether_nh_input+0x39f/frame 0xfffffe0047d2fca0netisr_dispatch_src() at netisr_dispatch_src+0xad/frame 0xfffffe0047d2fd00ether_input() at ether_input+0xd9/frame 0xfffffe0047d2fd60vtnet_rxq_eof() at vtnet_rxq_eof+0x73e/frame 0xfffffe0047d2fe20vtnet_rx_vq_process() at vtnet_rx_vq_process+0x9c/frame 0xfffffe0047d2fe60ithread_loop() at ithread_loop+0x266/frame 0xfffffe0047d2fef0fork_exit() at fork_exit+0x82/frame 0xfffffe0047d2ff30fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0047d2ff30--- trap 0, rip = 0, rsp = 0, rbp = 0 ---KDB: enter: panic