[LLVMbugs] [Bug 19553] New: leak of ObjectFile in tools/lli/lli.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 25 04:08:53 PDT 2014


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

            Bug ID: 19553
           Summary: leak of ObjectFile in tools/lli/lli.cpp
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu, rafael.espindola at gmail.com
            Blocks: 19521
    Classification: Unclassified

When running check-llvm under lsan (bug 19521) I see the following report on
the test ExecutionEngine/MCJIT/load-object-a.ll:

Direct leak of 392 byte(s) in 1 object(s) allocated from:
    #0 0x5c0bc0 in operator new(unsigned long)
projects/compiler-rt/lib/asan/asan_new_delete.cc:62               
    #1 0x1d4bf73 in
llvm::object::ObjectFile::createELFObjectFile(llvm::MemoryBuffer*, bool)
lib/Object/ELFObjectFile.cpp:72
    #2 0x1d43682 in
llvm::object::ObjectFile::createObjectFile(llvm::MemoryBuffer*, bool,
llvm::sys::fs::file_magic) lib/Object/ObjectFile.cpp:68
    #3 0x1d43997 in release include/llvm/Object/ObjectFile.h:321                
    #4 0x1d43997 in llvm::object::ObjectFile::createObjectFile(llvm::StringRef)
lib/Object/ObjectFile.cpp:92     
    #5 0x5e1878 in main tools/lli/lli.cpp:532
    #6 0x7fdbea1ad76c in __libc_start_main
/build/buildd/eglibc-2.15/csu/libc-start.c:226         

Rafael, any suggestion what's going on here?
(Valgrind complains too)

-- 
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/20140425/ea728dd9/attachment.html>


More information about the llvm-bugs mailing list