From nobody Thu Jul 18 10:40:00 2024 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WPq7j6tmQz5RCc5 for ; Thu, 18 Jul 2024 10:40:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WPq7j48h8z4jdp for ; Thu, 18 Jul 2024 10:40:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721299201; a=rsa-sha256; cv=none; b=sIBlUHw7+MmLM3PFeRZ9ULIOPcOTlFMUk4fm6+9VQOIzasWpuHnPjRNAkPDvyL3+OxFq16 Cqn32qZinCQQv/PsGMpgZ+ruPExdWzn+mAZ177REjlorKm+hb+ehoeeTXBxl+UFNaCPJDT 8Ql264mD/VFXmbT934HYZSFVqUCLvfY/BTlsIBzq5HtNwypHfBQU4TOOYvEtIiwtczgSVy QVNGJbG9yzYdb0WZaBF8WsEfON9yHmSAYN4hZ76lQo0m6fQeCxbnt7e52wC5gtqlHKQl98 YC6KK5amQ/hzryiPOOi5omKtYWm/Jc/fUQTQDy6htpQxBMUry7OU95qj6SCiUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721299201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rYch72yGm2Tkf8TL4RUE9r9IZqxyEOVATOvZdaPlwX8=; b=i4lwwoX+wFEGkwpaQLcAbgIcSCoLxZC02GAX5g3ld1aVwjl1i/B6HBCVv1hQ8pQG8TN6Zy ntpiXTnoOejPPzAUW29aoOHKU8eNeuLA011gHkuVCMSjmrtx8b7LBXl3eRrRxbxm7LMtUY ugv0u55Pu2pdUKA5XoayqPB/i+UZe+y11Ro0lYIQEaInc780zwHCZ/21NTaRAZ+Lx1EqsR KTfWebT4R+40MVai6uG9TkExl9DLVwpwgyhtZEYwPfb2daPUcwxHo1UooJlHCwyFLIXlaT neAYY/yAKZwMWvYQ6FMXcNzz1niwINDTraXn/bY+GiOMF7N0jAwlX2BuAM/UVA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WPq7j3cXPzlfQ for ; Thu, 18 Jul 2024 10:40:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46IAe1VT038231 for ; Thu, 18 Jul 2024 10:40:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46IAe1i5038229 for net@FreeBSD.org; Thu, 18 Jul 2024 10:40:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 279875] sockstat: segmentation fault Date: Thu, 18 Jul 2024 10:40:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john@jmarshall.id.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279875 John Marshall changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john@jmarshall.id.au --- Comment #1 from John Marshall --- '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, 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, b=3D0x0000000000000000) at sockstat.c:179:38 frame #1: 0x000002c892dde507 sockstat`displaysock [inlined] files_t_RB_FIND(head=3D, elm=3D) at sockstat.c:18= 1:1 frame #2: 0x000002c892dde4fe sockstat`displaysock(s=3D0x00001790ce24be0= 0, pos=3D) at sockstat.c:1165:10 frame #3: 0x000002c892ddd71f sockstat`display at sockstat.c:1345:4 frame #4: 0x000002c892ddcc07 sockstat`main(argc=3D, argv=3D) at sockstat.c:1577:2 frame #5: 0x000002d0b7f008da libc.so.7`__libc_start1(argc=3D1, argv=3D0x000002d0b2e0ed10, env=3D0x000002d0b2e0ed20, cleanup=3D, 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.=