Date: Sun, 27 Nov 2022 10:10:58 +0000 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 Message-ID: <bug-267751-29464-l42KuyXfsc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267751-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-267751-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267751 --- Comment #17 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Db185b74b28f80aa7fbeb4122a326741= 211af404d commit b185b74b28f80aa7fbeb4122a326741211af404d Author: Lorenzo Salvadore <salvadore@FreeBSD.org> AuthorDate: 2022-11-26 20:51:57 +0000 Commit: Lorenzo Salvadore <salvadore@FreeBSD.org> CommitDate: 2022-11-27 10:09:05 +0000 lang/gcc12-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 lang/gcc12-devel/Makefile | 1 + .../patch-libsanitizer_asan_asan__linux.cpp (new) | 18 ++++++++++++++= ++++ 2 files changed, 19 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267751-29464-l42KuyXfsc>