[LLVMbugs] [Bug 18320] New: lsan reports tons of leaks in clang due to -disable-free

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 24 07:06:56 PST 2013


            Bug ID: 18320
           Summary: lsan reports tons of leaks in clang due to
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: earthdok at google.com
          Reporter: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The clang driver (lib/Driver/Tools.cpp) calls clang with -disable-free,
which causes LeakSanitizer to report tons of leaks.
Commenting out the line 'CmdArgs.push_back("-disable-free");' fixes the

We need to find a more general way to remove -disable-free in presence 
of a leak detector (so that it works with pure lsan, asan+lsan. msan+lsan, etc)

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/20131224/8067c489/attachment.html>

More information about the llvm-bugs mailing list