[LLVMbugs] [Bug 12569] New: Assertion failure when building libcxx with Clang trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 17 01:28:13 PDT 2012


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

             Bug #: 12569
           Summary: Assertion failure when building libcxx with Clang
                    trunk
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: qiwei.uk at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


+ for FILE in '../src/*.cpp'
+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/string.cpp
clang:
/home/will/tools/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:2857:
bool clang::FunctionProtoType::isNothrow(clang::ASTContext &) const: Assertion
`EST != EST_Delayed && EST != EST_Uninstantiated' failed.
0  clang           0x00000000018894af
1  clang           0x00000000018899d4
2  libpthread.so.0 0x000000318440f500
3  libc.so.6       0x0000003183c36285 gsignal + 53
4  libc.so.6       0x0000003183c37b9b abort + 379
5  libc.so.6       0x0000003183c2ee9e
6  libc.so.6       0x0000003183c2ef42
7  clang           0x000000000075a369
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeWithIndex, 8u>&,
unsigned int&) + 3001
8  clang           0x00000000007224b6
clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*,
clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 70
9  clang           0x0000000000722c0b
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 139
10 clang           0x0000000000723c5a
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, llvm::Attributes) + 506
11 clang           0x0000000000754271
clang::CodeGen::CodeGenModule::GetAddrOfCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType, clang::CodeGen::CGFunctionInfo const*) + 177
12 clang           0x0000000000754087
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 167
13 clang           0x0000000000723193
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 419
14 clang           0x000000000072498a
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1530
15 clang           0x0000000000753f62
clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl
const*) + 98
16 clang           0x000000000072aae8
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 968
17 clang           0x000000000071e02f
18 clang           0x000000000071d3cc
19 clang           0x0000000000b66c35
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1717
20 clang           0x0000000000b43b1f
clang::Sema::InstantiateClassMembers(clang::SourceLocation,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind) + 783
21 clang           0x0000000000b43e90
clang::Sema::InstantiateClassTemplateSpecializationMembers(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind) +
64
22 clang           0x0000000000ae5ca5
clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation,
clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec
const&, clang::OpaquePtr<clang::TemplateName>, clang::SourceLocation,
clang::SourceLocation, clang::ASTTemplateArgsPtr, clang::SourceLocation,
clang::AttributeList*) + 1877
23 clang           0x000000000086f407
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext) + 3399
24 clang           0x000000000085b41a
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext,
llvm::SmallVector<clang::Parser::LateParsedAttribute*, 2u>*) + 2730
25 clang           0x00000000008a791d
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier, clang::AttributeList*) + 509
26 clang           0x00000000008a6ffb
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 347
27 clang           0x000000000085a667
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 743
28 clang           0x000000000084feec
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1756
29 clang           0x000000000086ac6a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 554
30 clang           0x000000000086a7ce clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 5422
31 clang           0x000000000085a5cd
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 589
32 clang           0x00000000008500ae
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2206
33 clang           0x000000000086ac6a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 554
34 clang           0x000000000086a7ce clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 5422
35 clang           0x000000000085a510
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 400
36 clang           0x000000000084feec
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1756
37 clang           0x000000000084f790
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 304
38 clang           0x000000000084c3db clang::ParseAST(clang::Sema&, bool, bool)
+ 283
39 clang           0x000000000071c6e8 clang::CodeGenAction::ExecuteAction() +
184
40 clang           0x00000000005ed3ad
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
41 clang           0x00000000005d509b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3323
42 clang           0x00000000005c9ecb cc1_main(char const**, char const**, char
const*, void*) + 603
43 clang           0x00000000005d15d6 main + 3542
44 libc.so.6       0x0000003183c2169d __libc_start_main + 237
45 clang           0x00000000005c9b91
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name string.cpp
-pic-level 2 -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-linker-version 2.21.53.0.1 -momit-leaf-frame-pointer -g
-coverage-file string.o -nostdinc++ -resource-dir
/usr/local/bin/../lib/clang/3.1 -I ../include -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /usr/local/bin/../lib/clang/3.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -Os
-Wall -Wextra -Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes
-Wstrict-aliasing=2 -Wstrict-overflow=4 -std=c++0x -fdeprecated-macro
-fdebug-compilation-dir /home/will/tools/libcxx/lib -ferror-limit 19
-fmessage-length 211 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o string.o -x c++
../src/string.cpp 
1.      ../src/string.cpp:22:34: current parser token ';'
2.      ../src/string.cpp:18:1 <Spelling=../include/__config:264:37>: parsing
namespace 'std'
3.      ../src/string.cpp:18:1 <Spelling=../include/__config:264:59>: parsing
namespace '__1'
4.      ../include/string:1132:31: LLVM IR generation of declaration
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::basic_string'
5.      ../include/string:1132:31: Generating code for declaration
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::basic_string'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/string-kQgcvS.ii
clang: note: diagnostic msg: /tmp/string-kQgcvS.sh

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list