<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - leak in clang::MicrosoftVTableContext::computeVTablePaths tools/clang/lib/AST/VTableBuilder.cpp"
href="http://llvm.org/bugs/show_bug.cgi?id=19522">19522</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>leak in clang::MicrosoftVTableContext::computeVTablePaths tools/clang/lib/AST/VTableBuilder.cpp
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>rnk@google.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kcc@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, timurrrr@google.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>19521
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>reproduce (under valgrind or lsan, see <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Enable LeakSanitizer by default and make clang bootstrap LeakSanitizer-clean"
href="show_bug.cgi?id=19521">bug 19521</a>):
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>