[LLVMbugs] [Bug 17748] New: [-cxx-abi microsoft] clang crashes enumerating VB-tables for class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 31 01:19:53 PDT 2013


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

            Bug ID: 17748
           Summary: [-cxx-abi microsoft] clang crashes enumerating
                    VB-tables for class
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11459
  --> http://llvm.org/bugs/attachment.cgi?id=11459&action=edit
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

-- 
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/20131031/052cd2ec/attachment.html>


More information about the llvm-bugs mailing list