: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: michael.thayer at oracle dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
Created attachment 40957
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80027
--- Comment #2 from Michael Thayer ---
Adding -static-libasan to the build and link flags and linking to libasan.a
(for some reason it is not always done automatically, but our build system is
rather complex) produces a segmentation fault as belo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80027
--- Comment #3 from Michael Thayer ---
Seems my mistake. I think the ASAN library was still getting loaded
dynamically. Now I have the following problem, which I think means that code
(constructors?) getting called before ASAN is initialised is
Assignee: unassigned at gcc dot gnu.org
Reporter: michael.thayer at oracle dot com
Target Milestone: ---
Created attachment 42508
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42508&action=edit
Test case
I have a test case, a simplified version of our actual code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #1 from Michael Thayer ---
Created attachment 42509
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42509&action=edit
gcc -v -save-temps -c -Wextra -Werror -x c -o test.o test.c > gcc-out 2>&1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #2 from Michael Thayer ---
Created attachment 42510
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42510&action=edit
Preprocessor output (almost identical to source)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #3 from Michael Thayer ---
Created attachment 42511
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42511&action=edit
Assembly output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #5 from Michael Thayer ---
This works for the test case I provided above, but not for our original source.
Attaching a new test case. This one is slightly more involved, as it requires
both g++ and address sanitizer. Should I creat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #6 from Michael Thayer ---
Created attachment 42514
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42514&action=edit
New test case
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #7 from Michael Thayer ---
Created attachment 42515
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42515&action=edit
g++ -v -save-temps -c -Wextra -Werror -fsanitize=address -o test.o test.cpp >
gcc-out 2>&1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #8 from Michael Thayer ---
Created attachment 42516
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42516&action=edit
Preprocessor output (almost identical to source)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
--- Comment #9 from Michael Thayer ---
Created attachment 42517
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42517&action=edit
Assembly output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
Michael Thayer changed:
What|Removed |Added
CC||dodji at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82792
Michael Thayer changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|INVALID
14 matches
Mail list logo