This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: address sanitizer gcc-6.4 failing on bsd10 (cross build)
- From: Ed Maste <emaste at freebsd dot org>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 10 Sep 2018 15:22:17 -0400
- Subject: Re: address sanitizer gcc-6.4 failing on bsd10 (cross build)
- References: <039af0958c6e4297a970e8c8ec6deff0@sandvine.com>
On 29 August 2018 at 09:11, Ken Faiczak <kfaiczak@sandvine.com> wrote:
> Building the same manner (tools etc) for RH7 and BSD10
>
> * Works fine on linux
>
> * BSD10.3 crashes first time something tries to access what looks like the ShadowMemory
>
> * g++ is a cross build (target bsd10, host rh7)
>
> o I had to specifically configure -enable-libsanitizer (so maybe its generally not supported?)
Hi Ken.
The sanitizers are usable in contemporary Clang versions on FreeBSD
but I'm not aware of any effort on getting the GCC ones to work. I
suspect you're correct and it's just disabled by default because it's
unsupported.
I haven't compared the Clang and GCC implementations so I'm not sure
if there's a straightforward way to use the Clang one as a reference.