pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/57115: lang/gcc10 regression: no sanitizers



The following reply was made to PR pkg/57115; it has been noted by GNATS.

From: Rhialto <rhialto%falu.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: rhialto%falu.nl@localhost
Subject: Re: pkg/57115: lang/gcc10 regression: no sanitizers
Date: Sun, 18 Dec 2022 13:52:39 +0100

 Some further experimenting with a test program (I use
 https://gitlab.com/Rhialto/macro11; it has sanitizer options commented
 out in the Makefile) shows that the base compiler from NetBSD/amd64 9.3
 (gcc version 7.5.0 (nb4 20200810)) works fine. It doesn't require me to
 disable ASLR with paxctl. It also detects the memory leak in
 __cxa_atexit_internal.
 
 lang/gcc8 and lang/gcc10 (with the patches from this PR) seem to work
 about equally well, which is to say they don't work but fail with
 
 ==19445==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.                                                                
 
 and following the suggestion about LD_PRELOAD doesn't help.
 -lasan is definitely linked, just not first.
 


Home | Main Index | Thread Index | Old Index