-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]incompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)Issue not complete (e.g. missing a reproducer, build arguments, etc.)
Description
Sorry for the minimal & probably uninformed report, I'm hitting this with the latest brew
build on macOS.
$ /opt/homebrew/opt/llvm/bin/clang-tidy --version
Homebrew LLVM version 21.1.0
Optimized build.
$ /opt/homebrew/opt/llvm/bin/clang-tidy src/app/app.cpp
PLEASE submit a bug report to https://github.com/Homebrew/homebrew-core/issues and include the crash backtrace.
Stack dump:
0. Program arguments: /opt/homebrew/opt/llvm/bin/clang-tidy src/app/app.cpp
1. <eof> parser at end of file
2. ASTMatcher: Matching 'cert-ctr56-cpp' against:
CompoundAssignOperator : <[...]/extern/JUCE/modules/juce_graphics/detail/juce_Ranges.h:457:9, col:21>
#0 0x000000011608af4c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libLLVM.dylib+0x3dfaf4c)
#1 0x000000011608b790 SignalHandler(int, __siginfo*, void*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libLLVM.dylib+0x3dfb790)
#2 0x000000018cedc624 (/usr/lib/system/libsystem_platform.dylib+0x1804ac624)
#3 0x0000000105a36068 clang::ast_matchers::internal::DynTypedMatcher::matchesNoKindCheck(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x942068)
#4 0x0000000105a36068 clang::ast_matchers::internal::DynTypedMatcher::matchesNoKindCheck(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x942068)
#5 0x0000000105a38fb0 clang::ast_matchers::internal::(anonymous namespace)::VariadicMatcher<&clang::ast_matchers::internal::allOfVariadicOperator(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*, llvm::ArrayRef<clang::ast_matchers::internal::DynTypedMatcher>)>::dynMatches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x944fb0)
#6 0x0000000105a384e8 clang::ast_matchers::internal::(anonymous namespace)::IdDynMatcher::dynMatches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9444e8)
#7 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#8 0x000000010022f6c4 clang::ast_matchers::internal::HasDeclarationMatcher<clang::QualType, clang::ast_matchers::internal::Matcher<clang::Decl>>::matchesSpecialized(clang::Type const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x1000376c4)
#9 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#10 0x00000001002df238 clang::ast_matchers::internal::matcher_hasCanonicalType0Matcher::matches(clang::QualType const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x1000e7238)
#11 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#12 0x00000001002330f4 clang::ast_matchers::internal::TypeTraverseMatcher<clang::PointerType>::matches(clang::PointerType const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x10003b0f4)
#13 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#14 0x0000000100232fe0 clang::ast_matchers::internal::Matcher<clang::QualType>::TypeToQualType<clang::Type>::matches(clang::QualType const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x10003afe0)
#15 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#16 0x00000001002df238 clang::ast_matchers::internal::matcher_hasCanonicalType0Matcher::matches(clang::QualType const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x1000e7238)
#17 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#18 0x0000000100261688 clang::ast_matchers::internal::matcher_hasType0Matcher<clang::Expr, clang::ast_matchers::internal::Matcher<clang::QualType>>::matches(clang::Expr const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x100069688)
#19 0x0000000105a384e8 clang::ast_matchers::internal::(anonymous namespace)::IdDynMatcher::dynMatches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9444e8)
#20 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#21 0x000000010023e848 clang::ast_matchers::internal::matcher_hasLHS0Matcher<clang::BinaryOperator, clang::ast_matchers::internal::Matcher<clang::Expr>>::matches(clang::BinaryOperator const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x100046848)
#22 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#23 0x0000000105a390f4 clang::ast_matchers::internal::(anonymous namespace)::VariadicMatcher<&clang::ast_matchers::internal::anyOfVariadicOperator(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*, llvm::ArrayRef<clang::ast_matchers::internal::DynTypedMatcher>)>::dynMatches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9450f4)
#24 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#25 0x000000010023e424 clang::ast_matchers::internal::matcher_hasEitherOperand0Matcher<clang::BinaryOperator, clang::ast_matchers::internal::Matcher<clang::Expr>>::matches(clang::BinaryOperator const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x100046424)
#26 0x0000000105a36068 clang::ast_matchers::internal::DynTypedMatcher::matchesNoKindCheck(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x942068)
#27 0x0000000105a38fb0 clang::ast_matchers::internal::(anonymous namespace)::VariadicMatcher<&clang::ast_matchers::internal::allOfVariadicOperator(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*, llvm::ArrayRef<clang::ast_matchers::internal::DynTypedMatcher>)>::dynMatches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x944fb0)
#28 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#29 0x0000000105a24e78 clang::ast_matchers::internal::TraversalMatcher<clang::Stmt>::matches(clang::Stmt const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x930e78)
#30 0x0000000105a35d90 clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x941d90)
#31 0x0000000105a23c94 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::matchWithFilter(clang::DynTypedNode const&) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x92fc94)
#32 0x0000000105a2d604 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x939604)
#33 0x0000000105a34750 clang::RecursiveASTVisitor<clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor>::TraverseFunctionHelper(clang::FunctionDecl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x940750)
#34 0x0000000105a25890 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x931890)
#35 0x0000000105a253fc clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9313fc)
#36 0x0000000105a25a44 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x931a44)
#37 0x0000000105a268cc clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9328cc)
#38 0x0000000105a268cc clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x9328cc)
#39 0x0000000105a26018 clang::ast_matchers::internal::(anonymous namespace)::MatchASTVisitor::TraverseDecl(clang::Decl*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x932018)
#40 0x0000000105a12dc8 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x91edc8)
#41 0x0000000106b8263c clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1a8e63c)
#42 0x00000001052cad60 clang::ParseAST(clang::Sema&, bool, bool) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1d6d60)
#43 0x0000000106b6a330 clang::FrontendAction::Execute() (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1a76330)
#44 0x0000000106b01cd0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1a0dcd0)
#45 0x0000000106c1be88 clang::tooling::FrontendActionFactory::runInvocation(std::__1::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1b27e88)
#46 0x00000001001ff478 clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef)::ActionFactory::runInvocation(std::__1::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x100007478)
#47 0x0000000106c1bb84 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::__1::shared_ptr<clang::CompilerInvocation>, std::__1::shared_ptr<clang::PCHContainerOperations>) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1b27b84)
#48 0x0000000106c1ab60 clang::tooling::ToolInvocation::run() (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1b26b60)
#49 0x0000000106c1cc68 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) (/opt/homebrew/Cellar/llvm/21.1.0/lib/libclang-cpp.dylib+0x1b28c68)
#50 0x00000001001fb5d0 clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef) (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x1000035d0)
#51 0x0000000100227564 clang::tidy::clangTidyMain(int, char const**) (/opt/homebrew/Cellar/llvm/21.1.0/bin/clang-tidy+0x10002f564)
#52 0x000000018cb02b98
zsh: segmentation fault /opt/homebrew/opt/llvm/bin/clang-tidy src/app/app.cpp
Metadata
Metadata
Assignees
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]incompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)Issue not complete (e.g. missing a reproducer, build arguments, etc.)