https://llvm.org/bugs/show_bug.cgi?id=25943
Bug ID: 25943 Summary: Segmentation fault: 11 when compiling llvm with llvm Product: new-bugs Version: 3.5 Hardware: PC OS: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: hughw...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Executing this command: clang++ -I/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/include -I/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC -I/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include -I/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual -march=nocona -O2 -pipe -I/Users/dom/Gentoo/usr/include -march=nocona -O2 -pipe -I/Users/dom/Gentoo/usr/include -march=nocona -O2 -pipe -I/Users/dom/Gentoo/usr/include -march=nocona -O2 -pipe -I/Users/dom/Gentoo/usr/include -march=nocona -O2 -pipe -I/Users/dom/Gentoo/usr/lib/libffi-3.2.1/include -m64 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -c -MMD -MP -MF "/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.d.tmp" -MT "/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.o" -MT "/Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.d" /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC/MCContext.cpp -o /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.o Results in 0 libLLVM-3.5.dylib 0x0000000107fab828 llvm::sys::PrintStackTrace(__sFILE*) + 40 1 libLLVM-3.5.dylib 0x0000000107fabd04 SignalHandler(int) + 452 2 libsystem_platform.dylib 0x00007fff95d1deaa _sigtramp + 26 3 libsystem_platform.dylib 0x00007f942b99cc80 _sigtramp + 2512907760 4 x86_64-apple-darwin15-clang-3.5.2 0x0000000107293676 clang::TryImplicitConversion(clang::Sema&, clang::Expr*, clang::QualType, bool, bool, bool, bool, bool, bool) + 102 5 x86_64-apple-darwin15-clang-3.5.2 0x000000010729ede6 clang::TryCopyInitialization(clang::Sema&, clang::Expr*, clang::QualType, bool, bool, bool, bool) + 214 6 x86_64-apple-darwin15-clang-3.5.2 0x000000010729e77e clang::Sema::AddOverloadCandidate(clang::FunctionDecl*, clang::DeclAccessPair, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool, bool, bool) + 1838 7 x86_64-apple-darwin15-clang-3.5.2 0x000000010729faef clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 559 8 x86_64-apple-darwin15-clang-3.5.2 0x00000001072517aa ResolveConstructorOverload(clang::Sema&, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, llvm::ArrayRef<clang::NamedDecl*>, clang::OverloadCandidate*&, bool, bool, bool, bool) + 330 9 x86_64-apple-darwin15-clang-3.5.2 0x00000001072397d2 TryConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>, clang::QualType, clang::InitializationSequence&, bool) + 882 10 x86_64-apple-darwin15-clang-3.5.2 0x00000001072374fc clang::InitializationSequence::InitializeFrom(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>, bool) + 2076 11 x86_64-apple-darwin15-clang-3.5.2 0x0000000107238256 clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>, bool) + 438 12 x86_64-apple-darwin15-clang-3.5.2 0x00000001072082c7 clang::Sema::BuildTypeTrait(clang::TypeTrait, clang::SourceLocation, llvm::ArrayRef<clang::TypeSourceInfo*>, clang::SourceLocation) + 2999 13 x86_64-apple-darwin15-clang-3.5.2 0x000000010736c0b3 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTypeTraitExpr(clang::TypeTraitExpr*) + 2675 14 x86_64-apple-darwin15-clang-3.5.2 0x0000000107361c8b clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 267 15 x86_64-apple-darwin15-clang-3.5.2 0x0000000107362a65 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 933 16 x86_64-apple-darwin15-clang-3.5.2 0x0000000107355e02 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 6434 17 x86_64-apple-darwin15-clang-3.5.2 0x0000000107354279 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo*) + 217 18 x86_64-apple-darwin15-clang-3.5.2 0x0000000107359bc9 clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&) + 761 19 x86_64-apple-darwin15-clang-3.5.2 0x000000010735a2c3 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 755 20 x86_64-apple-darwin15-clang-3.5.2 0x000000010735bb5b clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1851 21 x86_64-apple-darwin15-clang-3.5.2 0x00000001073aa191 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 689 22 x86_64-apple-darwin15-clang-3.5.2 0x00000001073a9e05 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21 23 x86_64-apple-darwin15-clang-3.5.2 0x000000010704be6f clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 319 24 x86_64-apple-darwin15-clang-3.5.2 0x00000001071a0f37 clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo**) + 103 25 x86_64-apple-darwin15-clang-3.5.2 0x000000010736c628 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr*, bool, clang::TypeSourceInfo**) + 552 26 x86_64-apple-darwin15-clang-3.5.2 0x0000000107361c8b clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 267 27 x86_64-apple-darwin15-clang-3.5.2 0x0000000107362a65 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 933 28 x86_64-apple-darwin15-clang-3.5.2 0x0000000107355e02 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 6434 29 x86_64-apple-darwin15-clang-3.5.2 0x0000000107354279 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo*) + 217 30 x86_64-apple-darwin15-clang-3.5.2 0x0000000107359bc9 clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&) + 761 31 x86_64-apple-darwin15-clang-3.5.2 0x000000010735a2c3 clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 755 32 x86_64-apple-darwin15-clang-3.5.2 0x000000010735bb5b clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1851 33 x86_64-apple-darwin15-clang-3.5.2 0x00000001073aa191 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 689 34 x86_64-apple-darwin15-clang-3.5.2 0x00000001073a9e05 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21 35 x86_64-apple-darwin15-clang-3.5.2 0x000000010704be6f clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 319 36 x86_64-apple-darwin15-clang-3.5.2 0x00000001071a0f37 clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo**) + 103 37 x86_64-apple-darwin15-clang-3.5.2 0x000000010736c628 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr*, bool, clang::TypeSourceInfo**) + 552 38 x86_64-apple-darwin15-clang-3.5.2 0x000000010736af46 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformParenExpr(clang::ParenExpr*) + 22 39 x86_64-apple-darwin15-clang-3.5.2 0x000000010735cab7 clang::Sema::SubstExpr(clang::Expr*, clang::MultiLevelTemplateArgumentList const&) + 71 40 x86_64-apple-darwin15-clang-3.5.2 0x00000001073812c3 InstantiateExceptionSpec(clang::Sema&, clang::FunctionDecl*, clang::FunctionProtoType const*, clang::MultiLevelTemplateArgumentList const&) + 1363 41 x86_64-apple-darwin15-clang-3.5.2 0x0000000107380b6e clang::Sema::InstantiateExceptionSpec(clang::SourceLocation, clang::FunctionDecl*) + 542 42 x86_64-apple-darwin15-clang-3.5.2 0x00000001071901ff clang::Sema::ResolveExceptionSpec(clang::SourceLocation, clang::FunctionProtoType const*) + 127 43 x86_64-apple-darwin15-clang-3.5.2 0x00000001071ac71f clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl*) + 1071 44 x86_64-apple-darwin15-clang-3.5.2 0x000000010714b6f5 clang::Sema::BuildCXXConstructExpr(clang::SourceLocation, clang::QualType, clang::CXXConstructorDecl*, llvm::MutableArrayRef<clang::Expr*>, bool, bool, bool, bool, unsigned int, clang::SourceRange) + 149 45 x86_64-apple-darwin15-clang-3.5.2 0x00000001072439b8 PerformConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>, clang::InitializationSequence::Step const&, bool&, bool, bool, clang::SourceLocation, clang::SourceLocation) + 1128 46 x86_64-apple-darwin15-clang-3.5.2 0x000000010723bf07 clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>, clang::QualType*) + 6439 47 x86_64-apple-darwin15-clang-3.5.2 0x00000001070e4c03 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) + 5715 48 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f8a564 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) + 3412 49 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f888e8 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1688 50 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f8575d clang::Parser::ParseSimpleDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&, bool, clang::Parser::ForRangeInit*) + 797 51 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f853e6 clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 822 52 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fd7784 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 2756 53 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fd6c59 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 153 54 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fdd0ef clang::Parser::ParseCompoundStatementBody(bool) + 1471 55 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fddfc4 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 180 56 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fefa81 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 1905 57 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f8875b clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1291 58 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fef14c clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 732 59 x86_64-apple-darwin15-clang-3.5.2 0x0000000106feec2e clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 366 60 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fee08e clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 3278 61 x86_64-apple-darwin15-clang-3.5.2 0x0000000106fed33f clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 399 62 x86_64-apple-darwin15-clang-3.5.2 0x0000000106f79916 clang::ParseAST(clang::Sema&, bool, bool) + 390 63 x86_64-apple-darwin15-clang-3.5.2 0x0000000106cacd6e clang::FrontendAction::Execute() + 62 64 x86_64-apple-darwin15-clang-3.5.2 0x0000000106c82da3 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 851 65 x86_64-apple-darwin15-clang-3.5.2 0x0000000106c4ad2d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4125 66 x86_64-apple-darwin15-clang-3.5.2 0x0000000106c42bac cc1_main(char const**, char const**, char const*, void*) + 924 67 x86_64-apple-darwin15-clang-3.5.2 0x0000000106c47018 main + 1128 68 libdyld.dylib 0x00007fff9ed515ad start + 1 Stack dump: 0. Program arguments: /Users/dom/Gentoo/usr/bin/x86_64-apple-darwin15-clang-3.5.2 -cc1 -triple x86_64-apple-macosx10.11.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name MCContext.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu nocona -target-linker-version 242 -dwarf-column-info -coverage-file /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.o -resource-dir /Users/dom/Gentoo/usr/bin/../lib/clang/3.5.2 -dependency-file /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.d.tmp -MP -MT /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.o -MT /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.d -D NDEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/include -I /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC -I /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include -I /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC -I /Users/dom/Gentoo/usr/include -I /Users/dom/Gentoo/usr/include -I /Users/dom/Gentoo/usr/include -I /Users/dom/Gentoo/usr/include -I /Users/dom/Gentoo/usr/lib/libffi-3.2.1/include -stdlib=libc++ -O2 -Woverloaded-virtual -Wcast-qual -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/dom/source/my-entire-ps-repository -ferror-limit 19 -fmessage-length 181 -fvisibility-inlines-hidden -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-.amd64/lib/MC/Release/MCContext.o -x c++ /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC/MCContext.cpp 1. /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC/MCContext.cpp:288:58: current parser token ';' 2. /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC/MCContext.cpp:285:63: parsing function body 'getCOFFSection' 3. /Users/dom/Gentoo/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/lib/MC/MCContext.cpp:285:63: in compound statement ('{}') x86_64-apple-darwin15-clang-3.5.2: error: unable to execute command: Segmentation fault: 11 x86_64-apple-darwin15-clang-3.5.2: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.5.2 (tags/RELEASE_352/final) Target: x86_64-apple-darwin15.2.0 Thread model: posix x86_64-apple-darwin15-clang-3.5.2: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. x86_64-apple-darwin15-clang-3.5.2: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: x86_64-apple-darwin15-clang-3.5.2: note: diagnostic msg: /var/tmp/MCContext-dadf2a.cpp x86_64-apple-darwin15-clang-3.5.2: note: diagnostic msg: /var/tmp/MCContext-dadf2a.sh x86_64-apple-darwin15-clang-3.5.2: note: diagnostic msg: ******************** -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs