http://llvm.org/bugs/show_bug.cgi?id=19521
Bug ID: 19521
Summary: Enable LeakSanitizer by default and make clang
bootstrap LeakSanitizer-clean
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Depends on: 19520
Classification: Unclassified
This is a meta bug for cleaning up clang from leaks.
If we enable lsan by default there will be quite a few leaks during
the clang bootstrap -- we need to clean them first.
reproduce on x86_64 linux:
1. Enable lsan by editing projects/compiler-rt/lib/asan/asan_rtl.cc
- cf->detect_leaks = false; // CAN_SANITIZE_LEAKS;
+ cf->detect_leaks = CAN_SANITIZE_LEAKS;
You can not achieve the same by setting ASAN_OPTIONS because the lit runner
strips env vars.
2. Build clang
3. Build another clang using the clang from step 2 with
-DLLVM_USE_SANITIZER=Address
4. Run "make check-clang check-llvm"
--
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