From nobody Sat Jan 13 08:19:30 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 4TBrsv0F5jz574dY for ; Sat, 13 Jan 2024 08:19:31 +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 4TBrst6KZQz4fJk for ; Sat, 13 Jan 2024 08:19:30 +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=1705133970; 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=oDyTz4GXkdiUwBuvYj2E22bYQJMWFMHBEszNMTzHF0g=; b=INqPnYKRNMNmrAUjrsvL6LvDlyhglC/0y91liL6WkWdix11wx5o8pdR5T8z9x8Jyx6Jpn5 TsMr7JSQ8Ojo1k5anNvzOx34By0DCf2AZQn/Gi87ntjfGzYktLubOHmfDbRJWoTEaqAf4o XKffq82hDZhE/taq2kCZKP9M7jGqMfHOtCO+HssduGcNo81CySTKLmV6nojbDhF5YoWQTT gT8fNHOL2AESxGlxUt6Db3NMw4Hkd3vJlUrukhrfAvIYt80cKVFuKI8ptMVLlQMSSeq7OD 9xVusHiO0FfJhw+6Bw678Kr5SQbMwqzIp9pBmdQQEWdcof2/mIRBrW94atCdag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705133970; a=rsa-sha256; cv=none; b=D5oV8JRdgKzzrf+r1qjqjPcZDlE5MLIWWusIANWemI6drNhhd8j1GTdHLAU6Dy62P20MFk IkWCtrMRfTeGAcUwPkIgmoZXCd6AASuN8O4cmkc0uPOsLUhqrFMDS5Bx8e3fhJ6fFcxIxA +UUhUD/L0w89e9U2n+QDKNwNaHLrTfya1g80HwPkkRX5Rti6RZDPo1H4x8Y3PUVUZqKRWd 3I4XQELHcgIihiXfaPsQLK4zQRWvrud/3QRc4XLeWWxWtFkqj9x0JyucKDdKhD5y4w/Owu scG7kfUyvj6PB66aeW/ykrstJJwZLTAkJrTQm7f8iZ0c+DGpvqLAOPYuN90p0Q== 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 4TBrst5M1qzMx1 for ; Sat, 13 Jan 2024 08:19:30 +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 40D8JUgF096407 for ; Sat, 13 Jan 2024 08:19:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40D8JUkO096401 for toolchain@FreeBSD.org; Sat, 13 Jan 2024 08:19:30 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:30 +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 #27 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D99c1ed39b70e5c82b3d8d0b01eac6e4= ab8438693 commit 99c1ed39b70e5c82b3d8d0b01eac6e4ab8438693 Author: Lorenzo Salvadore AuthorDate: 2024-01-12 14:25:09 +0000 Commit: Lorenzo Salvadore CommitDate: 2024-01-13 08:18:27 +0000 lang/gcc14-devel: 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. PR: 267751 Reported by: yuri Co-authored-by: Andreas Tobler lang/gcc14-devel/Makefile | 1 + .../patch-libsanitizer_asan_asan__linux.cpp (new) | 23 ++++++++++++++++++= ++++ .../patch-libsanitizer_asan_asan__thread.cpp (new) | 13 ++++++++++++ 3 files changed, 37 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=