[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


http://llvm.org/bugs/show_bug.cgi?id=18320

            Bug ID: 18320
           Summary: lsan reports tons of leaks in clang due to
                    -disable-free
           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
problem. 

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