https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #8 from Kostya Serebryany kcc at gcc dot gnu.org ---
(In reply to Peter Wu from comment #7)
(In reply to Kostya Serebryany from comment #6)
How does your GCC behave with the test case? The sanitizer code in GCC is
imported from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
Kostya Serebryany kcc at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #9 from Peter Wu peter at lekensteyn dot nl ---
Tested with
clang version 3.7.0 (http://llvm.org/git/clang.git
6b7e300a9c14a2ff364d8ef8a0f7510378f38dbc) (http://llvm.org/git/llvm
258b7710d59c086656f7b26f02326d7ca69d71fd)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #7 from Peter Wu peter at lekensteyn dot nl ---
(In reply to Kostya Serebryany from comment #6)
How does your GCC behave with the test case? The sanitizer code in GCC is
imported from Clang, I believe, so it probably does not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #3 from Peter Wu peter at lekensteyn dot nl ---
GCC 4.9.2 cannot include the headers, it blows up on lines such as:
In file included from
/usr/lib/clang/3.5.1/include/sanitizer/common_interface_defs.h:16:0,
from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #2 from Kostya Serebryany kcc at gcc dot gnu.org ---
and for gcc:
% ~/gcc-inst/bin/g++ -fsanitize=address -static-libasan d.cc ./a.out
0x0134f900 is located 0 bytes inside of global variable 'foo' defined in
'd.cc:2:5'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #1 from Kostya Serebryany kcc at gcc dot gnu.org ---
What happens if you properly include sanitizer/asan_interface.h?
This is what I see with fresh clang:
% cat d.cc
#include sanitizer/asan_interface.h
int foo[10];
int main(void) {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #4 from Kostya Serebryany kcc at gcc dot gnu.org ---
(In reply to Peter Wu from comment #3)
GCC 4.9.2 cannot include the headers, it blows up on lines such as:
In file included from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #6 from Kostya Serebryany kcc at gcc dot gnu.org ---
How does your GCC behave with the test case? The sanitizer code in GCC is
imported from Clang, I believe, so it probably does not crash either?
I get this:
~/gcc-inst/bin/gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285
--- Comment #5 from Peter Wu peter at lekensteyn dot nl ---
(In reply to Kostya Serebryany from comment #4)
I think I know what your problem is.
In C, the globals by default have common linkage and asan does not
instrument them at all and
10 matches
Mail list logo