[Bug 267751] lang/gcc*: Address sanitizer isn't properly enabled: ASan runtime does not come first in initial library list

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 26 Nov 2022 15:05:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267751

--- Comment #13 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=2b4f6e6f7a0b36f4592dc0058e12f55b668d6be2

commit 2b4f6e6f7a0b36f4592dc0058e12f55b668d6be2
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2022-11-25 22:52:13 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2022-11-26 15:02:45 +0000

    lang/gcc11-devel: Re-execute program with ASLR disabled when necessary

    Software compiled with -fsanitize=address needs ASLR to be disabled to
    run successfully.

    Add patches taken from the commits listed below that improve ASLR
    detection and re-execute the program with ASLR disabled if necessary.

   
https://cgit.freebsd.org/src/commit/?id=7cafe89f9ce33effe6e471b185339d413da1ca46
   
https://cgit.freebsd.org/src/commit/?id=930a7c2ac67e1e8e511aa1d0a31a16c632060ebb
   
https://cgit.freebsd.org/src/commit/?id=96fe7c8ab0f65cf829619abd74ae6c126b21e15f

    PR:             267751

 lang/gcc11-devel/Makefile                          |  2 +-
 ...er_sanitizer__common_sanitizer__linux.cpp (new) | 61 ++++++++++++++++++++++
 ...zer__common_sanitizer__linux__libcdep.cpp (new) | 32 ++++++++++++
 3 files changed, 94 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.