On 07/26/2015 10:48 PM, Hanno Böck wrote:> Hi,
>
> On Sun, 26 Jul 2015 12:34:22 -0700
> Konstantin Serebryany <[email protected]> wrote:
>
>> First, is that clang or gcc, and which version?
>> Second, is that C or C++?
>
> C, both gcc and clang, no difference.
>
>> If this is C, try adding -fno-common (in C, some of the globals are
>> not instrumented with asan unless you use -fno-common).
>
> Okay, with -fno-common I get an error. That's interesting to know, it
> sounds like -fno-common is a useful addition to asan when trying to find
> bugs.

FYI we also use -U_FORTIFY_SOURCE because modern distributions seem to enable fortification by default thus basically disabling ASan interceptors (https://code.google.com/p/address-sanitizer/issues/detail?id=247). Probably both should be mentioned in FAQ (https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer#FAQ).

-Y

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to