[LLVMbugs] [Bug 19521] New: Enable LeakSanitizer by default and make clang bootstrap LeakSanitizer-clean
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 23 02:55:49 PDT 2014
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: kcc at google.com
Reporter: kcc at google.com
CC: earthdok at google.com, llvmbugs at cs.uiuc.edu,
samsonov at google.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140423/4dd809dc/attachment.html>
More information about the llvm-bugs
mailing list