[cfe-dev] Clang :: Headers/cxx11.cpp failing

Alp Toker alp at nuanti.com
Thu Nov 7 22:51:13 PST 2013


Hi,

The test Headers/cxx11.cpp has been failing with a crash on
Release+Asserts builds since some time last week.

This doesn't show up on the build servers so is presumably OK in
Release-Asserts and Debug.

Trace attached. Will investigate if nobody steps up.

Alp.

-- 
http://www.nuanti.com
the browser experts

-------------- next part --------------
FAIL: Clang :: Headers/cxx11.cpp (3008 of 15909)
******************** TEST 'Clang :: Headers/cxx11.cpp' FAILED ********************
Script:
--
/Users/alp/Projects/llvm-work/build-upstream-ninja/bin/./clang -cc1 -internal-isystem /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/../lib/clang/3.4/include -ffreestanding -fsyntax-only -std=c++11 /Users/alp/Projects/llvm-work/upstream/clang/test/Headers/cxx11.cpp
/Users/alp/Projects/llvm-work/build-upstream-ninja/bin/./clang -cc1 -internal-isystem /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/../lib/clang/3.4/include -ffreestanding -fsyntax-only -std=c++11 -fmodules /Users/alp/Projects/llvm-work/upstream/clang/test/Headers/cxx11.cpp
--
Exit Code: 132

Command Output (stderr):
--
Assertion failed: (begin() + idx < end()), function operator[], file /Users/alp/Projects/llvm-work/upstream/llvm/include/llvm/ADT/SmallVector.h, line 144.
0  clang                    0x000000010c0aef5b llvm::sys::PrintStackTrace(__sFILE*) + 40
1  clang                    0x000000010c0af345 SignalHandler(int) + 245
2  libsystem_platform.dylib 0x00007fff86c055aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2034215536
4  clang                    0x000000010c0af1b9 abort + 22
5  clang                    0x000000010c0af1a3 abort + 0
6  clang                    0x000000010c782a14 clang::MacroInfo::setArgumentList(clang::IdentifierInfo* const*, unsigned int, llvm::BumpPtrAllocator&) + 0
7  clang                    0x000000010c76dd87 clang::ASTReader::ParseLanguageOptions(llvm::SmallVector<unsigned long long, 64u> const&, bool, clang::ASTReaderListener&) + 8273
8  clang                    0x000000010c76b295 clang::ASTReader::ReadControlBlock(clang::serialization::ModuleFile&, llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&, unsigned int) + 1125
9  clang                    0x000000010c76bb38 clang::ASTReader::ReadASTCore(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, clang::serialization::ModuleFile*, llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&, long long, long, unsigned int) + 896
10 clang                    0x000000010c7736dc clang::ASTReader::ReadAST(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int) + 234
11 clang                    0x000000010c3e4f32 clang::CompilerInstance::loadModule(clang::SourceLocation, llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, clang::Module::NameVisibilityKind, bool) + 5946
12 clang                    0x000000010c4448e3 clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::DirectoryLookup const*, bool) + 3417
13 clang                    0x000000010c442da8 clang::Preprocessor::HandleDirective(clang::Token&) + 696
14 clang                    0x000000010c42d762 clang::Lexer::LexTokenInternal(clang::Token&, bool) + 6640
15 clang                    0x000000010c42b29f clang::Lexer::Lex(clang::Token&) + 113
16 clang                    0x000000010c460d65 clang::Preprocessor::Lex(clang::Token&) + 59
17 clang                    0x000000010c4ad4e5 clang::Parser::ConsumeToken(bool) + 113
18 clang                    0x000000010c4a8bcc clang::Parser::ExpectAndConsumeSemi(unsigned int) + 318
19 clang                    0x000000010c4789f5 clang::Parser::ParseStaticAssertDeclaration(clang::SourceLocation&) + 495
20 clang                    0x000000010c46c5bc clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 274
21 clang                    0x000000010c4aa387 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 1385
22 clang                    0x000000010c4a9dee clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 238
23 clang                    0x000000010c464e1f clang::ParseAST(clang::Sema&, bool, bool) + 289
24 clang                    0x000000010c3feb51 clang::FrontendAction::Execute() + 109
25 clang                    0x000000010c3e35f7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 549
26 clang                    0x000000010c0b1482 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3794
27 clang                    0x000000010b96c432 cc1_main(char const**, char const**, char const*, void*) + 710
28 clang                    0x000000010b96b776 main + 5683
29 libdyld.dylib            0x00007fff8d15d5fd start + 1
Stack dump:
0.	Program arguments: /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/./clang -cc1 -internal-isystem /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/../lib/clang/3.4/include -ffreestanding -fsyntax-only -std=c++11 -fmodules /Users/alp/Projects/llvm-work/upstream/clang/test/Headers/cxx11.cpp 
1.	/Users/alp/Projects/llvm-work/upstream/clang/test/Headers/cxx11.cpp:18:2: current parser token 'include'
/Users/alp/Projects/llvm-work/build-upstream-ninja/tools/clang/test/Headers/Output/cxx11.cpp.script: line 2: 45086 Illegal instruction: 4  /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/./clang -cc1 -internal-isystem /Users/alp/Projects/llvm-work/build-upstream-ninja/bin/../lib/clang/3.4/include -ffreestanding -fsyntax-only -std=c++11 -fmodules /Users/alp/Projects/llvm-work/upstream/clang/test/Headers/cxx11.cpp



More information about the cfe-dev mailing list