From nobody Sat Jan 13 08:19:34 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 4TBrsz2Cynz5750K for ; Sat, 13 Jan 2024 08:19:35 +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 4TBrsy4jjZz4fZF for ; Sat, 13 Jan 2024 08:19:34 +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=1705133974; 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=1bjJ8znCaoq8ONAKoJ4v52Hfb6/AFCvIxmt0ml5+ic4=; b=rEo9GAzJ1paJHE+PrANaUz0+90eKI4DObDlmlFwGN5ACvP9TBVKIz4wJXCFkgPF34Ft+h5 jUtwbqJmbLj8sglVGKs7PITGZOgmfEw+YcUemwsUd226QGtKS3HwaRBlgB1O6UB/PkWvpW lHyBOZ85JVuAMAuiW9lNkwYaI9sjr8Y3H13lfizUD8YhTs8HoJ6VZPSaiSJhQPOBBEZWFl /N4h25NItolVeyK5IhD6H4UpK5SAKkBzzChCX93bUflCSziRktkV1eJz8N2xtQgzR8e4Vg xUblz2ZpIUs27RZ3PSoCnC8v7EM2lIc1nX+l6y6RDatdr5HKOwev5Tel3eANPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705133974; a=rsa-sha256; cv=none; b=fPPH2DmF0dN2+1Slghx3mc4XgJ5onwlu1BaKzCqK8rfoP5pxI44tpRUNQsW8pL73Pn2nus H4rhX2qQ7Rzokn4qlvtfDuDPbxTxS/gb/fnRhxi3sTF8oqXNOZyx776lLw7p7sK2an1QhM r5bOeGVTvC6wbWObqbDqkmTKxqGuwFs69KNW66uCkbxLW2bTblfqfBXOY0XZ4tX8K8dk/v mKcbPnQcrDZbusy3sWhmb3uNfB+k1jRiJIRwqv2v5GXhTgNsrWK8RBNZ7j/2rPpOZ2ytb2 L8RKMN0g5/O/FqmzORJe/x17exAGYjI+MGkjnqmAd02WxkXxN/NNfXIBdzWuUg== 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 4TBrsy3j90zNKK for ; Sat, 13 Jan 2024 08:19:34 +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 40D8JYvV096696 for ; Sat, 13 Jan 2024 08:19:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40D8JYRE096695 for toolchain@FreeBSD.org; Sat, 13 Jan 2024 08:19:34 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:34 +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 #29 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D9c8633f6b2061d35c78e745fbafb766= 6357eaa8e commit 9c8633f6b2061d35c78e745fbafb7666357eaa8e Author: Lorenzo Salvadore AuthorDate: 2022-11-23 11:51:44 +0000 Commit: Lorenzo Salvadore CommitDate: 2024-01-13 08:17:23 +0000 lang/gcc13-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. 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-devel/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.=