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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Nov 2022 19:59:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267751

            Bug ID: 267751
           Summary: lang/gcc11: Address sanitizer isn't properly enabled:
                    ASan runtime does not come first in initial library
                    list
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: salvadore@freebsd.org
          Reporter: yuri@freebsd.org
             Flags: maintainer-feedback?(salvadore@freebsd.org)
          Assignee: salvadore@freebsd.org

Programs compiled with:
> g++11 -g -fsanitize=address -fno-omit-frame-pointer x.cpp -I /usr/local/include/ -fopenmp

fail:
> $ ./a.out 
> ==59390==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.


13.1-STABLE

-- 
You are receiving this mail because:
You are the assignee for the bug.