From nobody Fri Jul 19 10:22:21 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 4WQQht6LF3z5RP0x for ; Fri, 19 Jul 2024 10:22:22 +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 4WQQht5KrBz4Pdy for ; Fri, 19 Jul 2024 10:22:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721384542; a=rsa-sha256; cv=none; b=PO7ga9nzwB8PMIsO6vFo5FHywnVaaSZt2tqBgHTJ18M5P4KoJAXt1B6nnI5ErBwEJJusiZ oehvrXpKxTSWJGlI6lM+TpTMUb0Dik5lRmqk6THr0FfTsam8m6X9qgVkO9aAroNZJQRBJp NfHZ5r8hS8Hs+Oa1jdsH0bfNN1UgbRAzSALuiCH9QGF80bmpztSCI+rZt+ntAk7H651DI2 s5mHxOZImI3KZyzTJcs5nvbhd39RApjumA8amEc8XPTmwx4s+m7rZoloRSjXyGWjP0oWDh oQjsNWVeeHbDCdlW1SdipvTP8EiKzGr061RPpABHXtLvAXaQn3pumpDMHDRwuQ== 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=1721384542; 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=TpapyzKCTG3mVZr2zB4+uvwy3fAu2Jfr921vU+rJRYg=; b=l9c1AaWdAEl7gK9oqwFSZK6K8B8MrSPrlFbKDx+Vu59FEF7ydWOCIXLRv8kxTlXgfPMA8e wPlysHvuWqPSFUArqykhwatcVPujxd+yZgbxYbgwUEClo2eeKRY8eaa/4TNVq82ap+J4A8 6N81XieQNg5EYUiMo2FotOpWoN9juG8Fo8mae100eoBeczGyZRN+F+EYVU5JhAJyuEoU0M lUM+crcRYwUW2GX0PipB5vdkNeNlq6sS6fKrvMoCUZrkGNYjmA+u1sxTMcQMjhdmdBK/Cg pQYB6bRQNJP86aErQQR+Spmh4cajdxsX8u0p0jpXXDJi88Wh1zWatFr5n0ODxA== 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 4WQQht4xh7zShh for ; Fri, 19 Jul 2024 10:22:22 +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 46JAMMNf005784 for ; Fri, 19 Jul 2024 10:22:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46JAMMmG005783 for net@FreeBSD.org; Fri, 19 Jul 2024 10:22:22 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 10:22:21 +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: 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 #4 from John Marshall --- (In reply to Konstantin Belousov from comment #2) Sorry. That re-compile still had -O2. I found that I was able to get it to compile with -O0 by adding 'CFLAGS=3D-O0' to /etc/make.conf. Is there a wa= y to tell make(1) to use -O0 just for 'this' Makefile? Here is a more useful backtrace I hope. rwsrv08#=20 rwsrv08# gdb sockstat GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD] ... Reading symbols from sockstat... Reading symbols from /build/usr/lib/debug//usr/bin/sockstat.debug... (gdb) r Starting program: /usr/bin/sockstat=20 [Detaching after fork from child process 88560] USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS= =20=20=20=20=20=20 root sockstat 88565 6 stream -> [88559 8] root sockstat 88564 6 stream -> [88559 7] ... root syslogd 2948 9 dgram /var/run/logpriv root gssd 2810 3 stream /var/run/gssd.sock Program received signal SIGSEGV, Segmentation fault. Address not mapped to object. 0x0000000001029669 in displaysock (s=3D0x80184b200, pos=3D59) at /kits/src/usr.bin/sockstat/sockstat.c:1169 1169 (u_long)f->xf_pid, f->xf_fd); (gdb) bt #0 0x0000000001029669 in displaysock (s=3D0x80184b200, pos=3D59) at /kits/src/usr.bin/sockstat/sockstat.c:1169 #1 0x000000000102776b in display () at /kits/src/usr.bin/sockstat/sockstat.c:1345 #2 0x0000000001024eab in main (argc=3D0, argv=3D0x7fffffffeb60) at /kits/src/usr.bin/sockstat/sockstat.c:1577 (gdb) --=20 You are receiving this mail because: You are the assignee for the bug.=