[LLVMbugs] [Bug 19598] New: leak in clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 29 01:02:01 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19598
Bug ID: 19598
Summary: leak in
clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl
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: dblaikie at gmail.com, echristo at gmail.com,
llvmbugs at cs.uiuc.edu
Blocks: 19521
Classification: Unclassified
Reproduce (under lsan or valgrind):
clang -cc1 ~/llvm/tools/clang/test/CodeGen/2009-01-21-InvalidIterator.c
-emit-llvm -g -o /dev/null
Direct leak of 536 byte(s) in 1 object(s) allocated from:
#0 0x7bcf88 in __interceptor_malloc
projects/compiler-rt/lib/asan/asan_malloc_linux.cc:75
#1 0x1eab1d3 in llvm::MDNode::getTemporary lib/IR/Metadata.cpp:285
#2 0x6383b34 in llvm::DIBuilder::createForwardDecl lib/IR/DIBuilder.cpp:905
#3 0x36317f9 in clang::CodeGen::CGDebugInfo::getOrCreateRecordFwdDecl
tools/clang/lib/CodeGen/CGDebugInfo.cpp:626
#4 0x364a821 in clang::CodeGen::CGDebugInfo::CreateLimitedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2305
#5 0x3640668 in clang::CodeGen::CGDebugInfo::getOrCreateLimitedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2260
#6 0x363ee59 in clang::CodeGen::CGDebugInfo::CreateTypeDefinition
tools/clang/lib/CodeGen/CGDebugInfo.cpp:1537
#7 0x364953e in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2198
#8 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088
#9 0x3630b9c in clang::CodeGen::CGDebugInfo::CreateQualifiedType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:549
#10 0x3648d71 in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2160
#11 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088
#12 0x36312ab in clang::CodeGen::CGDebugInfo::CreatePointerLikeType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:645
#13 0x364926c in CreateType tools/clang/lib/CodeGen/CGDebugInfo.cpp:575
#14 0x364926c in clang::CodeGen::CGDebugInfo::CreateTypeNode
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2191
#15 0x362b66f in clang::CodeGen::CGDebugInfo::getOrCreateType
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2088
#16 0x365215a in clang::CodeGen::CGDebugInfo::EmitDeclare
tools/clang/lib/CodeGen/CGDebugInfo.cpp:2790
#17 0x38ad87f in clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca
tools/clang/lib/CodeGen/CGDecl.cpp:976
#18 0x38a68a6 in EmitAutoVarDecl tools/clang/lib/CodeGen/CGDecl.cpp:822
#19 0x38a68a6 in clang::CodeGen::CodeGenFunction::EmitVarDecl
tools/clang/lib/CodeGen/CGDecl.cpp:146
#20 0x36b098a in clang::CodeGen::CodeGenFunction::EmitDeclStmt
tools/clang/lib/CodeGen/CGStmt.cpp:895
#21 0x369d816 in clang::CodeGen::CodeGenFunction::EmitSimpleStmt
tools/clang/lib/CodeGen/CGStmt.cpp:185
#22 0x369c97d in clang::CodeGen::CodeGenFunction::EmitStmt
tools/clang/lib/CodeGen/CGStmt.cpp:49
#23 0x36b27de in
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope
tools/clang/lib/CodeGen/CGStmt.cpp:220
#24 0x36d3302 in clang::CodeGen::CodeGenFunction::EmitFunctionBody
tools/clang/lib/CodeGen/CodeGenFunction.cpp:696
#25 0x36d4425 in clang::CodeGen::CodeGenFunction::GenerateCode
tools/clang/lib/CodeGen/CodeGenFunction.cpp:827
#26 0x36fa1fd in
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition
tools/clang/lib/CodeGen/CodeGenModule.cpp:2229
#27 0x36f29c1 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition
tools/clang/lib/CodeGen/CodeGenModule.cpp:1339
#28 0x36f7680 in clang::CodeGen::CodeGenModule::EmitGlobal
tools/clang/lib/CodeGen/CodeGenModule.cpp:1197
#29 0x36feb4d in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
tools/clang/lib/CodeGen/CodeGenModule.cpp:3009
#30 0x361da05 in ::CodeGeneratorImpl::HandleTopLevelDecl
tools/clang/lib/CodeGen/ModuleBuilder.cpp:80
#31 0x361b6d0 in clang::BackendConsumer::HandleTopLevelDecl
tools/clang/lib/CodeGen/CodeGenAction.cpp:99
This is the most frequent leak report when running check-clang under lsan
(bug 19521)
--
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/20140429/be224721/attachment.html>
More information about the llvm-bugs
mailing list