From nobody Sat Jan 13 08:19:32 2024 X-Original-To: toolchain@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 4TBrsw4Z0Dz574tp for ; Sat, 13 Jan 2024 08:19:32 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TBrsw2xxjz4fJl for ; Sat, 13 Jan 2024 08:19:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705133972; 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=S/Z7VP9i2kzQttZ4cTztpwjsTwk4+Yg55eKh4uh9fgU=; b=r8eZihbcKwR/uB4+B5T+n1Kd/IKvWJgAD9XMQDmCfn8Tq9OuiZz7AiEAvtJPyaxKxdkC4h +KigzWla6IYWVrdnBDugtG6nI4QlpzkG6e3ajhiYvhrGHoxT+P3dN2JYaljmfWnjnTXmhU ocWl6H7/y9stWzkGWrmiBYeMn4lJHNHqBaYBnx2nWiobQJKl81bs/8Dh/L0Trdy9yAFd+9 YF07uJ0SRbnPSRTEe748sehh2mEw5VYEY6S8chtotWDfQdXIg17xGqPPziOTBoWIpsBPAJ noI08DWJ5sRysvOGPCsiqNuUPvZz80OIm0MfCJWdsWXpdRNac+k9r/k90N5UJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705133972; a=rsa-sha256; cv=none; b=Nur2yo/bDjB9vnfZsct4+oKNXGmNL1TdYU6v+SdcPz3RWgf3CejIVcHp9BrlrBB4iLlEfB sQXtb++KIJCp6/yBJ598aj1nga0BSNC3b1BaHQHLsJOQd1Dk6hJwayl/kWSR7S7ykouTKU LMoLO/tHVCPMRVlqIXNnWRLErbs+/eRfL3yDoAc4y+CJwiiI6y18nXf3X8MIpWWxc7vi1v rsROpyTDxm1e04RLkldkLnD6QAnQI4q/vEk04afwgcK/6lgelOrquRDK4lhNJL/l29krbs YFXVEnlsXN/02Vd5DuGKsX/c1UNGwqPEhF4Q29ALkxT3iHR/E+xEM5Devmzdfg== 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 4TBrsw22G7zNPY for ; Sat, 13 Jan 2024 08:19:32 +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 40D8JWSZ096520 for ; Sat, 13 Jan 2024 08:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40D8JWXD096519 for toolchain@FreeBSD.org; Sat, 13 Jan 2024 08:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 267751] lang/gcc*: Address sanitizer isn't properly enabled: ASan runtime does not come first in initial library list Date: Sat, 13 Jan 2024 08:19:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: salvadore@freebsd.org X-Bugzilla-Flags: maintainer-feedback+ 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267751 --- Comment #28 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D11e18f525a8390fda31c44838bde003= e23176b95 commit 11e18f525a8390fda31c44838bde003e23176b95 Author: Lorenzo Salvadore AuthorDate: 2024-01-12 14:34:58 +0000 Commit: Lorenzo Salvadore CommitDate: 2024-01-13 08:18:34 +0000 lang/gcc13: Fix Address sanitizer Software compiled with -fsanitize=3Daddress fails to run with the error message "ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD". This commit fixes the issue by ignoring the [vdso] loaded shared library instead of linux-vdso.so. To successfully run the software compiled with -fsanitize=3Daddress it = is still necessary to disable ASLR. PR: 267751 Reported by: yuri Co-authored-by: Andreas Tobler lang/gcc13/Makefile | 2 +- .../patch-libsanitizer_asan_asan__linux.cpp (new) | 23 ++++++++++++++++++= ++++ .../patch-libsanitizer_asan_asan__thread.cpp (new) | 13 ++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=