[LLVMbugs] [Bug 2975] New: memory leak in Type.cpp

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 29 03:17:16 PDT 2008


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

           Summary: memory leak in Type.cpp
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


SVN r58373.

==6329== 928 (440 direct, 488 indirect) bytes in 5 blocks are definitely lost
in loss record 20 of 23
==6329==    at 0x4C21849: operator new(unsigned long) (vg_replace_malloc.c:230)
==6329==    by 0xA43776: llvm::PointerType::get(llvm::Type const*, unsigned)
(Type.cpp:1333)
==6329==    by 0x9C75DF: llvm::BitcodeReader::ParseTypeTable()
(BitcodeReader.cpp:490)
==6329==    by 0x9CE030: llvm::BitcodeReader::ParseModule(std::string const&)
(BitcodeReader.cpp:1070)
==6329==    by 0x9CF294: llvm::BitcodeReader::ParseBitcode()
(BitcodeReader.cpp:1359)
==6329==    by 0x9CF334: llvm::getBitcodeModuleProvider(llvm::MemoryBuffer*,
std::string*) (BitcodeReader.cpp:2070)
==6329==    by 0x9CF3B2: llvm::ParseBitcodeFile(llvm::MemoryBuffer*,
std::string*) (BitcodeReader.cpp:2086)
==6329==    by 0x7399FE: main (opt.cpp:435)
==6329==
==6329==
==6329== 1,872 (1,280 direct, 592 indirect) bytes in 18 blocks are definitely
lost in loss record 22 of 23
==6329==    at 0x4C21849: operator new(unsigned long) (vg_replace_malloc.c:230)
==6329==    by 0xA57051: llvm::User::operator new(unsigned long, unsigned)
(Value.cpp:384)
==6329==    by 0xA007C8: llvm::ConstantInt::operator new(unsigned long)
(Constants.h:55)
==6329==    by 0x9F2D7E: llvm::ConstantInt::get(llvm::APInt const&)
(Constants.cpp:272)
==6329==    by 0x9F2DFF: llvm::ConstantInt::get(llvm::Type const*, unsigned
long, bool) (Constants.cpp:254)
==6329==    by 0x9C91DB: llvm::BitcodeReader::ParseConstants()
(BitcodeReader.cpp:849)
==6329==    by 0x9CE090: llvm::BitcodeReader::ParseModule(std::string const&)
(BitcodeReader.cpp:1082)
==6329==    by 0x9CF294: llvm::BitcodeReader::ParseBitcode()
(BitcodeReader.cpp:1359)
==6329==    by 0x9CF334: llvm::getBitcodeModuleProvider(llvm::MemoryBuffer*,
std::string*) (BitcodeReader.cpp:2070)
==6329==    by 0x9CF3B2: llvm::ParseBitcodeFile(llvm::MemoryBuffer*,
std::string*) (BitcodeReader.cpp:2086)
==6329==    by 0x7399FE: main (opt.cpp:435)


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list