[LLVMbugs] [Bug 19522] New: leak in clang::MicrosoftVTableContext::computeVTablePaths tools/clang/lib/AST/VTableBuilder.cpp
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 23 03:17:34 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19522
Bug ID: 19522
Summary: leak in
clang::MicrosoftVTableContext::computeVTablePaths
tools/clang/lib/AST/VTableBuilder.cpp
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: rnk at google.com
Reporter: kcc at google.com
CC: llvmbugs at cs.uiuc.edu, timurrrr at google.com
Blocks: 19521
Classification: Unclassified
reproduce (under valgrind or lsan, see bug 19521):
clang -cc1 -triple x86_64-unknown-win32 -fno-rtti -emit-llvm-only
~/llvm/tools/clang/test/CodeGenCXX/destructor-exception-spec.cpp -std=c++11
Direct leak of 160 byte(s) in 1 object(s) allocated from:
#0 0x7bb200 in operator new(unsigned long)
llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
#1 0x5f7cb5d in clang::MicrosoftVTableContext::computeVTablePaths(bool,
clang::CXXRecordDecl const*, llvm::SmallVector<clang::VPtrInfo*, 2u>&)
llvm/tools/clang/lib/AST/VTableBuilder.cpp:3163
#2 0x5f80de5 in
clang::MicrosoftVTableContext::computeVTableRelatedInformation(clang::CXXRecordDecl
const*) llvm/tools/clang/lib/AST/VTableBuilder.cpp:3293
#3 0x5f7f1bd in
clang::MicrosoftVTableContext::getVFPtrOffsets(clang::CXXRecordDecl const*)
llvm/tools/clang/lib/AST/VTableBuilder.cpp:3440
#4 0x378f05c in (anonymous
namespace)::MicrosoftCXXABI::getAddrOfVTable(clang::CXXRecordDecl const*,
clang::CharUnits) llvm/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp:898
#5 0x378ecc0 in (anonymous
namespace)::MicrosoftCXXABI::getVTableAddressPointForConstExpr(clang::BaseSubobject,
clang::CXXRecordDecl const*)
llvm/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp:877
#6 0x3648fe1 in (anonymous
namespace)::ConstStructBuilder::Build(clang::APValue const&, clang::RecordDecl
const*, bool, clang::CXXRecordDecl const*, clang::CharUnits)
llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:415
#7 0x3639c65 in BuildStruct
llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:546
#8 0x3639c65 in
clang::CodeGen::CodeGenModule::EmitConstantValue(clang::APValue const&,
clang::QualType, clang::CodeGen::CodeGenFunction*)
llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:1164
#9 0x363743c in EmitConstantValueForMemory
llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:1219
#10 0x363743c in
clang::CodeGen::CodeGenModule::EmitConstantInit(clang::VarDecl const&,
clang::CodeGen::CodeGenFunction*)
llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:995
#11 0x36c981f in
clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*)
llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:1820
#12 0x36c11ca in
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:1377
#13 0x36c60d0 in
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:1231
#14 0x36cde0d in
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:2994
#15 0x36d69ba in
clang::CodeGen::CodeGenModule::EmitNamespace(clang::NamespaceDecl const*)
llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:2956
#16 0x36cd674 in
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:3012
#17 0x35eda75 in (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
llvm/tools/clang/lib/CodeGen/ModuleBuilder.cpp:80
#18 0x35eb740 in
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:99
#19 0x43d33f3 in clang::ParseAST(clang::Sema&, bool, bool)
llvm/tools/clang/lib/Parse/ParseAST.cpp:143
#20 0x35e8dc7 in clang::CodeGenAction::ExecuteAction()
llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:611
#21 0x290b44a in clang::FrontendAction::Execute()
llvm/tools/clang/lib/Frontend/FrontendAction.cpp:388
#22 0x288fea7 in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:727
#23 0x2a5fe6f in clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:239
#24 0x7e2648 in cc1_main(char const**, char const**, char const*, void*)
llvm/tools/clang/tools/driver/cc1_main.cpp:112
#25 0x7ddc30 in main llvm/tools/clang/tools/driver/driver.cpp:318
--
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/20140423/ff1c284a/attachment.html>
More information about the llvm-bugs
mailing list