From nobody Fri Jul 19 23:04:08 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 4WQlbw2N1Mz5QYQD for ; Fri, 19 Jul 2024 23:04:12 +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 4WQlbw0xwFz4b6t for ; Fri, 19 Jul 2024 23:04:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721430252; a=rsa-sha256; cv=none; b=IwWP5nfxoJzspXa1a7+yi8DBqZkVW/0cd+VjwsgMW0t3brIX5U53ytDok02iClKwHMLKoc MuhoTeoZZTVI+4eNqykyGS8TX1BixbdHUiAYRyv0yE2mIBxYt8j6AfWZ3hJAPqpANp5PvZ /WUYQqy+ijFXocKGIl03v3BhU6qBREWA27RfbSkZ2uDWNFB2s0LjJV9lYnzwxpYboZA/Rr xnv+bT7VzPRBq0PgQqtBIqkSFZAPRkU/JQxxZv3ORbzWPSliZbG0hwGA4ygU5KvnPgFW+x UO5kbtI+BEdyqDeSZWgF01dwUhbv46yQ5ANfuBeVYQytGVepFaF7dfY9IFtheg== 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=1721430252; 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=9atJJaOOhhn0icC6ZoOEjAGEf1CTJjKtbl1pOrn2bLI=; b=kiuXphiqMIGiDCSk/jYmEvVRChe0d1fWhXQsBWqVqiPWqIgRQTnjAgzvurLQPMlfoOz9Hz 7jf3uC63KR73mu3DzoTYhKpOB5+C+tLgJ1Ne+V1gWn4OOTJRaEaHpv424nddpMhawB78ht w9lB8nfrqmYWNPkOLhYneOdTbv7pikOK8qLlZnDO37Q+72IwM2Bw+CFCRv72TMULal2C3J +vs+3UyJWGuRG+X5xvc/qu2EodH68ClX8X7gzBmAkwJ+JBxL6/ftEtUkqmPxJevdq0scGn P+coaT1bngKukkRCoeXxFAXaxcqCj94EAj6Uvkkip2bUdDCZ4n/8Tr0UVB15Jg== 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 4WQlbw0YpSzrsN for ; Fri, 19 Jul 2024 23:04:12 +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 46JN4Cwk005549 for ; Fri, 19 Jul 2024 23:04:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46JN4CYD005548 for net@FreeBSD.org; Fri, 19 Jul 2024 23:04:12 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: Fri, 19 Jul 2024 23:04:08 +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: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 --- Comment #5 from Konstantin Belousov --- Do you have set something that prevents visibility of processes/jails? Like see_other_uids etc? Anyway, please apply this debugging patch and report if the program still SIGSEGVs with it. diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 73b1f00a4481..20a0a5e65e0a 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -1164,6 +1164,7 @@ displaysock(struct sock *s, int pos) f =3D RB_FIND(files_t, &ftree, &(struct file){ .xf_data =3D p->socket }); + if (f !=3D NULL) pos +=3D xprintf("[%lu %d]", (u_long)f->xf_pid, f->xf_fd); } else @@ -1183,6 +1184,7 @@ displaysock(struct sock *s, int pos) f =3D RB_FIND(files_t, &ftree, &(struct file){ .xf_data =3D p->socket }); + if (f !=3D NULL); pos +=3D xprintf("%s[%lu %d]", fref ? "" : ",", (u_long)f->xf_pid, f->xf_fd); --=20 You are receiving this mail because: You are the assignee for the bug.=