Date: Thu, 18 Jul 2024 10:40:00 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 279875] sockstat: segmentation fault Message-ID: <bug-279875-7501-9oOJkkIw2j@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-279875-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-279875-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279875 John Marshall <john@jmarshall.id.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john@jmarshall.id.au --- Comment #1 from John Marshall <john@jmarshall.id.au> --- 'Me too' Recent 14-STABLE amd64 FreeBSD 14.1-STABLE #0 stable/14-n268159-60f78f8ed14d: Tue Jul 16 19:25:41 AEST 2024=20=20=20=20 john@rwsrv08.gfn.riverwillow.net.au:/build/obj/john/kits/src/amd64.amd64/sy= s/RWSRV08 No segfault if I specify -j to restrict dispaly to one of the jails, only i= f I specify -j0 or omit -j. This is my third build of 14-STABLE (beginning early May) and all of them have done the same. Same vintage 14-STABLE on i386 is fine. I only have the two systems running FreeBSD. rwsrv08# lldb -X sockstat (lldb) target create "sockstat" Current executable set to '/usr/bin/sockstat' (x86_64). (lldb) run Process 87548 launched: '/usr/bin/sockstat' (x86_64) USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS= =20=20=20=20=20=20 root sockstat 87554 6 stream -> [87548 8] root sockstat 87553 6 stream -> [87548 7] ... root syslogd 2948 9 dgram /var/run/logpriv root gssd 2810 3 stream /var/run/gssd.sock Process 87548 stopped * thread #1, name =3D 'sockstat', stop reason =3D signal SIGSEGV: address n= ot mapped to object (fault address: 0x18) frame #0: 0x000002c892dde507 sockstat`displaysock [inlined] file_compare(a=3D<unavailable>, b=3D0x0000000000000000) at sockstat.c:179:38 176 static int64_t 177 file_compare(const struct file *a, const struct file *b) 178 { -> 179 return ((int64_t)(a->xf_data/2 - b->xf_data/2)); ^ 180 } 181 RB_GENERATE_STATIC(files_t, file, file_tree, file_compare); 182=20=20 (lldb) bt * thread #1, name =3D 'sockstat', stop reason =3D signal SIGSEGV: address n= ot mapped to object (fault address: 0x18) * frame #0: 0x000002c892dde507 sockstat`displaysock [inlined] file_compare(a=3D<unavailable>, b=3D0x0000000000000000) at sockstat.c:179:38 frame #1: 0x000002c892dde507 sockstat`displaysock [inlined] files_t_RB_FIND(head=3D<unavailable>, elm=3D<unavailable>) at sockstat.c:18= 1:1 frame #2: 0x000002c892dde4fe sockstat`displaysock(s=3D0x00001790ce24be0= 0, pos=3D<unavailable>) at sockstat.c:1165:10 frame #3: 0x000002c892ddd71f sockstat`display at sockstat.c:1345:4 frame #4: 0x000002c892ddcc07 sockstat`main(argc=3D<unavailable>, argv=3D<unavailable>) at sockstat.c:1577:2 frame #5: 0x000002d0b7f008da libc.so.7`__libc_start1(argc=3D1, argv=3D0x000002d0b2e0ed10, env=3D0x000002d0b2e0ed20, cleanup=3D<unavailable= >, mainX=3D(sockstat`main at sockstat.c:1434)) at libc_start1.c:157:7 frame #6: 0x000002c892ddb18d sockstat`_start at crt1_s.S:83 (lldb) q --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279875-7501-9oOJkkIw2j>