Open schenker opened 1 month ago
clang-tidy 18.1.2 segfaulted with this error message. I was not able to reproduce it.
$ clang-tidy myfile.cpp -checks="-*,misc-const-correctness" -p build_dir PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: clang-tidy myfile.cpp -checks=-*,misc-const-correctness -p build_dir 1. <unknown> parser at unknown location #0 0x0000560b16ca6625 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x2451625) #1 0x0000560b16ca6260 llvm::sys::RunSignalHandlers() (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x2451260) #2 0x0000560b16ca658d SignalHandler(int) ld-temp.o:0:0 #3 0x00007f814d6a6420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420) #4 0x0000560b18127490 clang::Lexer::lexEditorPlaceholder(clang::Token&, char const*) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x38d2490) #5 0x0000560b161cb51b clang::Preprocessor::CLK_Lexer(clang::Preprocessor&, clang::Token&) ld-temp.o:0:0 #6 0x0000560b160f667e clang::Preprocessor::Lex(clang::Token&) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18a167e) #7 0x0000560b160ff915 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa915) #8 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #9 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #10 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #11 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #12 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #13 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #14 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #15 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #16 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #17 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #18 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #19 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #20 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #21 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #22 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #23 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #24 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #25 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #26 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #27 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #28 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #29 0x0000560b160ffbbd clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aabbd) #30 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #31 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #32 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #33 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #34 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #35 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #36 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #37 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #38 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #39 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #40 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #41 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #42 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #43 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #44 0x0000560b160ffbbd clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aabbd) #45 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #46 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #47 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #48 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #49 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #50 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #51 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #52 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #53 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #54 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #55 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #56 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #57 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #58 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #59 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #60 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #61 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #62 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #63 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #64 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #65 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #66 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #67 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #68 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #69 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #70 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #71 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #72 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #73 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #74 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #75 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #76 0x0000560b160ff9d9 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x18aa9d9) #77 0x0000560b16614e93 clang::Parser::SkipMalformedDecl() (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1dbfe93) #78 0x0000560b160de49e clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x188949e) #79 0x0000560b160dbef8 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1886ef8) #80 0x0000560b160dbba3 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1886ba3) #81 0x0000560b160d9f7b clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1884f7b) #82 0x0000560b167edbd2 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1f98bd2) #83 0x0000560b167ed79f clang::ParseAST(clang::Sema&, bool, bool) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1f9879f) #84 0x0000560b168005bc clang::FrontendAction::Execute() (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1fab5bc) #85 0x0000560b16800160 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x1fab160) #86 0x0000560b16cdc6b4 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x24876b4) #87 0x0000560b16d06d96 clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef)::ActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) ld-temp.o:0:0 #88 0x0000560b16cdc1b1 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x24871b1) #89 0x0000560b16cdbad3 clang::tooling::ToolInvocation::run() (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x2486ad3) #90 0x0000560b16cdf676 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x248a676) #91 0x0000560b16d06905 clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x24b1905) #92 0x0000560b16ae11d2 clang::tidy::clangTidyMain(int, char const**) (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x228c1d2) #93 0x00007f814cff6083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3 #94 0x0000560b16c7ea8e _start (/home/me/.conan2/p/llvm87319535880ce/p/bin/clang-tidy+0x2429a8e) [1] 129633 segmentation fault (core dumped) clang-tidy -checks="-*,misc-const-correctness" -p
Does Clang compile your code?
Unfortunately I do not have the exact input that caused the segfault. I was working on the file at that moment, so it is quite possible that the code was not compilable.
clang-tidy 18.1.2 segfaulted with this error message. I was not able to reproduce it.