http://llvm.org/bugs/show_bug.cgi?id=12272
Bug #: 12272
Summary: address sanitizer does not work if clang is built with
CMake
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
When one builds clang with CMake, the resulting clang's -faddress-sanitizer
option does not work.
Doing:
clang -O1 -g -faddress-sanitizer -fno-omit-frame-pointer
example_UseAfterFree.cc
Gives:
Undefined symbols:
"___asan_report_load4", referenced from:
_main in test-w3FGxl.o
"___asan_init", referenced from:
_asan.module_ctor in test-w3FGxl.o
It was confirmed on cfe-dev that the CMake build does not current support
-faddress-sanitizer.
If this is long/hard to fix, could the webpage at least be updated to warn
people to use configure/make instead?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs