<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 --- - [-cxx-abi microsoft] clang crashes enumerating VB-tables for class"
href="http://llvm.org/bugs/show_bug.cgi?id=17748">17748</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[-cxx-abi microsoft] clang crashes enumerating VB-tables for class
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11459" name="attach_11459" title="the crashing input">attachment 11459</a> <a href="attachment.cgi?id=11459&action=edit" title="the crashing input">[details]</a></span>
the crashing input
clang++: ~/llvm/src/tools/clang/lib/CodeGen/MicrosoftVBTables.cpp:179:
llvm::GlobalVariable* clang::CodeGen::VBTableBuilder::getAddrOfVBTable(const
clang::CXXRecordDecl*, llvm::ArrayRef<const clang::CXXRecordDecl*>): Assertion
`!CGM.getModule().getNamedGlobal(Name) && "vbtable with this name already
exists: mangling bug?"' failed.
0 clang++ 0x0000000001e18f8b llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang++ 0x0000000001e19212
2 clang++ 0x0000000001e18c56
3 libpthread.so.0 0x00007f0c8e5c7cb0
4 libc.so.6 0x00007f0c8da1c425 gsignal + 53
5 libc.so.6 0x00007f0c8da1fb8b abort + 379
6 libc.so.6 0x00007f0c8da150ee
7 libc.so.6 0x00007f0c8da15192
8 clang++ 0x0000000001f4373b
clang::CodeGen::VBTableBuilder::getAddrOfVBTable(clang::CXXRecordDecl const*,
llvm::ArrayRef<clang::CXXRecordDecl const*>) + 367
9 clang++ 0x0000000001f42ece
clang::CodeGen::VBTableBuilder::enumerateVBTables(std::vector<clang::CodeGen::VBTableInfo,
std::allocator<clang::CodeGen::VBTableInfo> >&) + 234
10 clang++ 0x0000000001f39ffb
11 clang++ 0x0000000001f38029
12 clang++ 0x0000000001f37b37
13 clang++ 0x0000000001f81187
clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl
const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 335
14 clang++ 0x0000000001f7f8ee
clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&)
+ 410
15 clang++ 0x0000000001ebd452
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 784
16 clang++ 0x0000000001f8c973
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 513
17 clang++ 0x0000000001ecc63e
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 252
18 clang++ 0x0000000001ecb0d1
clang::CodeGen::CodeGenModule::EmitDeferred() + 341
19 clang++ 0x0000000001ec8107 clang::CodeGen::CodeGenModule::Release()
+ 25
20 clang++ 0x0000000001e52ee5
21 clang++ 0x0000000001e51b4f
22 clang++ 0x000000000221de60 clang::ParseAST(clang::Sema&, bool, bool)
+ 776
23 clang++ 0x00000000021174c3 clang::ASTFrontendAction::ExecuteAction()
+ 321
24 clang++ 0x0000000001e50a64 clang::CodeGenAction::ExecuteAction() +
1414
25 clang++ 0x0000000002117002 clang::FrontendAction::Execute() + 200
26 clang++ 0x00000000020ef468
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 720
27 clang++ 0x0000000001e1f729
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
28 clang++ 0x0000000000cf7deb cc1_main(char const**, char const**, char
const*, void*) + 717
29 clang++ 0x0000000000cf232e main + 786
30 libc.so.6 0x00007f0c8da0776d __libc_start_main + 237
31 clang++ 0x0000000000cf0c29
Stack dump:
0. Program arguments: ~/llvm/build/bin/clang++ -cc1 evil.ii -triple
i386-pc-win32 -fms-extensions -cxx-abi microsoft -emit-llvm -o /dev/null
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. evil.cpp:3084:2: Generating code for declaration
'TypeName223::TypeName223'
zsh: abort (core dumped) ~/llvm/build/bin/clang++ -cc1 evil.ii -triple</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>