llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.96k stars 11.54k forks source link

Clang crashing, I don't know why #22575

Closed llvmbot closed 1 year ago

llvmbot commented 9 years ago
Bugzilla Link 22201
Version 3.5
OS MacOS X
Reporter LLVM Bugzilla Contributor
CC @dwblaikie

Extended Description

Clang said to file this bug report and provide the attached files. I have no clue what this is. (Actually it gave me two files to upload, but the interface seems to only want to let me upload one.)

Here is a paste from standard out:

/usr/local/Cellar/llvmomp/3.5.0/bin/clang++ -stdlib=libc++ -std=c++11 -I/usr/local/Cellar/R/3.1/R.framework/Resources/include -DNDEBUG -I. -I../inst/include -IBmath -Imath/cephes -Icblas -DNO_BOOST_THREADS -DNO_BOOSTFILESYSTEM -DADD -DRLANGUAGE -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/include -I"/usr/local/Cellar/R-library/3.1/BH/include" -fPIC -g0 -m64 -march=native -mtune=native -O3 -c Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.cpp -o Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.o 0 clang-3.5 0x00000001010a0d98 llvm::sys::PrintStackTrace(__sFILE) + 40 1 clang-3.5 0x00000001010a1274 SignalHandler(int) + 452 2 libsystem_platform.dylib 0x00007fff998daf1a _sigtramp + 26 3 libsystem_platform.dylib 0x00007fabdd187be0 _sigtramp + 1133169888 4 clang-3.5 0x0000000101d1eb72 clang::TryImplicitConversion(clang::Sema&, clang::Expr, clang::QualType, bool, bool, bool, bool, bool, bool) + 114 5 clang-3.5 0x0000000101d2a6d7 clang::TryCopyInitialization(clang::Sema&, clang::Expr, clang::QualType, bool, bool, bool, bool) + 215 6 clang-3.5 0x0000000101d29f87 clang::Sema::AddOverloadCandidate(clang::FunctionDecl, clang::DeclAccessPair, llvm::ArrayRef<clang::Expr>, clang::OverloadCandidateSet&, bool, bool, bool) + 1687 7 clang-3.5 0x0000000101d2b671 clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl, clang::DeclAccessPair, clang::TemplateArgumentListInfo, llvm::ArrayRef<clang::Expr>, clang::OverloadCandidateSet&, bool) + 769 8 clang-3.5 0x0000000101caf753 ResolveConstructorOverload(clang::Sema&, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr>, clang::OverloadCandidateSet&, llvm::ArrayRef<clang::NamedDecl>, clang::OverloadCandidate&, bool, bool, bool, bool) + 323 9 clang-3.5 0x0000000101c971db TryConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr>, clang::QualType, clang::InitializationSequence&, bool) + 779 10 clang-3.5 0x0000000101c94e45 clang::InitializationSequence::InitializeFrom(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr>, bool) + 2101 11 clang-3.5 0x0000000101c95fc6 clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr>, bool) + 438 12 clang-3.5 0x0000000101c630ab clang::Sema::BuildTypeTrait(clang::TypeTrait, clang::SourceLocation, llvm::ArrayRef<clang::TypeSourceInfo>, clang::SourceLocation) + 2603 13 clang-3.5 0x0000000101e058a9 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTypeTraitExpr(clang::TypeTraitExpr) + 2681 14 clang-3.5 0x0000000101df6ef8 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr) + 2776 15 clang-3.5 0x0000000101dfb028 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 264 16 clang-3.5 0x0000000101dfbdd5 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 933 17 clang-3.5 0x0000000101dee97c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 6636 18 clang-3.5 0x0000000101deccf1 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo) + 209 19 clang-3.5 0x0000000101df2e09 clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl, clang::CXXRecordDecl, clang::MultiLevelTemplateArgumentList const&) + 761 20 clang-3.5 0x0000000101df34ff clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl, clang::CXXRecordDecl, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 751 21 clang-3.5 0x0000000101df5228 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl, clang::TemplateSpecializationKind, bool) + 2712 22 clang-3.5 0x0000000101e4beaf clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 1711 23 clang-3.5 0x0000000101e4b725 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21 24 clang-3.5 0x0000000101a8fc81 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext) + 337 25 clang-3.5 0x0000000101bf550b clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo) + 107 26 clang-3.5 0x0000000101e05e12 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr*, bool, clang::TypeSourceInfo) + 562 27 clang-3.5 0x0000000101df68d9 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr) + 1209 28 clang-3.5 0x0000000101dfb028 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&) + 264 29 clang-3.5 0x0000000101dfbdd5 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateSpecializationType(clang::TypeLocBuilder&, clang::TemplateSpecializationTypeLoc, clang::TemplateName) + 933 30 clang-3.5 0x0000000101dee97c clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) + 6636 31 clang-3.5 0x0000000101deccf1 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo) + 209 32 clang-3.5 0x0000000101df2e09 clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl, clang::CXXRecordDecl, clang::MultiLevelTemplateArgumentList const&) + 761 33 clang-3.5 0x0000000101df34ff clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl, clang::CXXRecordDecl, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) + 751 34 clang-3.5 0x0000000101df5228 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl, clang::TemplateSpecializationKind, bool) + 2712 35 clang-3.5 0x0000000101e4beaf clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 1711 36 clang-3.5 0x0000000101e4b725 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 21 37 clang-3.5 0x0000000101a8fc81 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext) + 337 38 clang-3.5 0x0000000101bf550b clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&, clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo) + 107 39 clang-3.5 0x0000000101e05e12 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformDependentScopeDeclRefExpr(clang::DependentScopeDeclRefExpr*, bool, clang::TypeSourceInfo) + 562 40 clang-3.5 0x0000000101df68d9 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr) + 1209 41 clang-3.5 0x0000000101e04696 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformParenExpr(clang::ParenExpr) + 22 42 clang-3.5 0x0000000101df6cd4 clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformExpr(clang::Expr) + 2228 43 clang-3.5 0x0000000101df6407 clang::Sema::SubstExpr(clang::Expr, clang::MultiLevelTemplateArgumentList const&) + 71 44 clang-3.5 0x0000000101e21097 InstantiateExceptionSpec(clang::Sema&, clang::FunctionDecl, clang::FunctionProtoType const, clang::MultiLevelTemplateArgumentList const&) + 1399 45 clang-3.5 0x0000000101e208be clang::Sema::InstantiateExceptionSpec(clang::SourceLocation, clang::FunctionDecl) + 606 46 clang-3.5 0x0000000101be3bdf clang::Sema::ResolveExceptionSpec(clang::SourceLocation, clang::FunctionProtoType const) + 127 47 clang-3.5 0x0000000101c017c6 clang::Sema::MarkFunctionReferenced(clang::SourceLocation, clang::FunctionDecl) + 1158 48 clang-3.5 0x0000000101b9b888 clang::Sema::BuildCXXConstructExpr(clang::SourceLocation, clang::QualType, clang::CXXConstructorDecl, llvm::MutableArrayRef<clang::Expr>, bool, bool, bool, bool, unsigned int, clang::SourceRange) + 264 49 clang-3.5 0x0000000101ca189a PerformConstructorInitialization(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr>, clang::InitializationSequence::Step const&, bool&, bool, bool, clang::SourceLocation, clang::SourceLocation) + 1130 50 clang-3.5 0x0000000101c997a7 clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr>, clang::QualType) + 5767 51 clang-3.5 0x0000000101b79fe5 clang::Sema::BuildMemberInitializer(clang::ValueDecl, clang::Expr, clang::SourceLocation) + 821 52 clang-3.5 0x0000000101e2157d clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl, clang::CXXConstructorDecl const, clang::MultiLevelTemplateArgumentList const&) + 925 53 clang-3.5 0x0000000101e1f060 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl, bool, bool) + 3152 54 clang-3.5 0x0000000101e21ad6 clang::Sema::PerformPendingInstantiations(bool) + 438 55 clang-3.5 0x0000000101e1f2be clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl, bool, bool) + 3758 56 clang-3.5 0x0000000101e21ad6 clang::Sema::PerformPendingInstantiations(bool) + 438 57 clang-3.5 0x0000000101e1f2be clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl, bool, bool) + 3758 58 clang-3.5 0x0000000101e21ad6 clang::Sema::PerformPendingInstantiations(bool) + 438 59 clang-3.5 0x0000000101a7cbc6 clang::Sema::ActOnEndOfTranslationUnit() + 550 60 clang-3.5 0x0000000101946b4c clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 172 61 clang-3.5 0x00000001018c59a6 clang::ParseAST(clang::Sema&, bool, bool) + 390 62 clang-3.5 0x00000001015d0fc7 clang::CodeGenAction::ExecuteAction() + 87 63 clang-3.5 0x000000010128655e clang::FrontendAction::Execute() + 62 64 clang-3.5 0x0000000101259983 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 867 65 clang-3.5 0x00000001012bc927 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 4359 66 clang-3.5 0x00000001009df86e cc1_main(char const, char const, char const, void) + 782 67 clang-3.5 0x00000001009dc6b8 main + 1128 68 libdyld.dylib 0x00007fff8db385c9 start + 1 Stack dump:

  1. Program arguments: /usr/local/Cellar/llvmomp/3.5.0/bin/clang-3.5 -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name BinomialLogitAuxmixSampler.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -coverage-file /private/var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/RtmpNDhIg3/R.INSTALL89ba75e5a33c/Boom/src/Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.o -resource-dir /usr/local/Cellar/llvmomp/3.5.0/bin/../lib/clang/3.5.0 -D NDEBUG -D NO_BOOST_THREADS -D NO_BOOSTFILESYSTEM -D ADD -D RLANGUAGE -I /usr/local/Cellar/R/3.1/R.framework/Resources/include -I . -I ../inst/include -I Bmath -I math/cephes -I cblas -I /usr/local/include/freetype2 -I /usr/local/include -I /usr/include -I /usr/local/Cellar/R-library/3.1/BH/include -stdlib=libc++ -O3 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /private/var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/RtmpNDhIg3/R.INSTALL89ba75e5a33c/Boom/src -ferror-limit 19 -fmessage-length 195 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.o -x c++ Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.cpp
  2. parser at end of file
  3. ../inst/include/Models/PosteriorSamplers/Imputer.hpp:253:35: instantiating function definition 'impute'
  4. /usr/local/Cellar/llvmomp/3.5.0/bin/../include/c++/v1/future:2343:1: instantiating function definition 'async'
  5. /usr/local/Cellar/llvmomp/3.5.0/bin/../include/c++/v1/future:2318:14: instantiating function definition '__async_func' clang-3.5: error: unable to execute command: Segmentation fault: 11 clang-3.5: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.5.0 Target: x86_64-apple-darwin14.0.0 Thread model: posix clang-3.5: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-3.5: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.5: note: diagnostic msg: /var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/BinomialLogitAuxmixSampler-71718d.cpp clang-3.5: note: diagnostic msg: /var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/BinomialLogitAuxmixSampler-71718d.sh clang-3.5: note: diagnostic msg:


make: *** [Models/Glm/PosteriorSamplers/BinomialLogitAuxmixSampler.o] Error 254

dwblaikie commented 9 years ago

If you could tar.gz the files up, you can probably attach them then? Both files would be really handy.

llvmbot commented 9 years ago

The files clang wanted me to attach are too big for the interface to accept. Let me know if there's someplace to provide them to you (assuming you want them).

AaronBallman commented 1 year ago

With no way to reproduce the bug, there's not much we can do about the issue. Closing, but if you're still able to reproduce the crash with the latest clang, please reopen with additional steps to reproduce.

llvmbot commented 1 year ago

@llvm/issue-subscribers-clang-frontend