- 
                Notifications
    You must be signed in to change notification settings 
- Fork 15k
Open
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]
Description
The clang-tidy logs want to me to file a bug report, so here we go:
clang-tidy version
21.1.0
Crash backtrace
0.	Program arguments: /conan/p/clang3b4c4f9ca7ad2/p/bin/clang-tidy -p=/home/runner/_work/path/to/my/project/cmake-build/Debug /home/runner/_work/path/to/my/project/source/test/MyFileTest.cpp
1.	<eof> parser at end of file
2.	ASTMatcher: Processing 'modernize-use-scoped-lock' against:
	CompoundStmt : </home/runner/_work/path/to/my/project/source/MyOtherFile.h:63:65, line:66:2>
--- Bound Nodes Begin ---
    lock-decl-single - { DeclStmt : </home/runner/_work/path/to/my/project/source/MyOtherFile.h:64:3, col:52> }
--- Bound Nodes End ---
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  clang-tidy 0x000055ffee7d4667 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  clang-tidy 0x000055ffee7d50fb
2  libc.so.6  0x00007f44dc53e520
3  clang-tidy 0x000055ffef46f739 clang::tidy::modernize::UseScopedLockCheck::diagOnSingleLock(clang::VarDecl const*, clang::ast_matchers::MatchFinder::MatchResult const&) + 249
4  clang-tidy 0x000055ffef46f235 clang::tidy::modernize::UseScopedLockCheck::diagOnMultipleLocks(llvm::SmallVector<llvm::SmallVector<clang::VarDecl const*, 6u>, 1u> const&, clang::ast_matchers::MatchFinder::MatchResult const&) + 117
5  clang-tidy 0x000055ffef46e831 clang::tidy::modernize::UseScopedLockCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&) + 241
6  clang-tidy 0x000055ffeece40ce
7  clang-tidy 0x000055ffeecfee5b clang::ast_matchers::internal::BoundNodesTreeBuilder::visitMatches(clang::ast_matchers::internal::BoundNodesTreeBuilder::Visitor*) + 59
8  clang-tidy 0x000055ffeece3a35
9  clang-tidy 0x000055ffeece9f2a
10 clang-tidy 0x000055ffeecfe192
11 clang-tidy 0x000055ffeece73e3
12 clang-tidy 0x000055ffeece5910
13 clang-tidy 0x000055ffeecfd42f
14 clang-tidy 0x000055ffeece8451
15 clang-tidy 0x000055ffeece5c80
16 clang-tidy 0x000055ffeece90ce
17 clang-tidy 0x000055ffeece5cf0
18 clang-tidy 0x000055ffeecfd42f
19 clang-tidy 0x000055ffeece6dc7
20 clang-tidy 0x000055ffeece5a80
21 clang-tidy 0x000055ffeecfd42f
22 clang-tidy 0x000055ffeece5e27
23 clang-tidy 0x000055ffeece57ba
24 clang-tidy 0x000055ffeecc4c86 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) + 422
25 clang-tidy 0x000055ffefbd1031 clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 33
26 clang-tidy 0x000055ffedae4da1 clang::ParseAST(clang::Sema&, bool, bool) + 769
27 clang-tidy 0x000055ffee35bbed clang::FrontendAction::Execute() + 29
28 clang-tidy 0x000055ffee35b8b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 436
29 clang-tidy 0x000055ffee82981b clang::tooling::FrontendActionFactory::runInvocation(std::__1::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::__1::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) + 507
30 clang-tidy 0x000055ffee876e52
31 clang-tidy 0x000055ffee829588 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::__1::shared_ptr<clang::CompilerInvocation>, std::__1::shared_ptr<clang::PCHContainerOperations>) + 280
32 clang-tidy 0x000055ffee827f45 clang::tooling::ToolInvocation::run() + 1205
33 clang-tidy 0x000055ffee82b23f clang::tooling::ClangTool::run(clang::tooling::ToolAction*) + 4415
34 clang-tidy 0x000055ffee870e4b 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) + 1307
35 clang-tidy 0x000055ffee64dcbc clang::tidy::clangTidyMain(int, char const**) + 16476
36 libc.so.6  0x00007f44dc525d90
37 libc.so.6  0x00007f44dc525e40 __libc_start_main + 128
38 clang-tidy 0x000055ffee6794d5 _start + 37
/home/runner/_work/path/to/my/project/source/test/MyFileTest.cpp: terminated by signal 11
the code block at MyOtherFile.h:63
63    std::unique_ptr<SessionHolder<SessionT>> CreateSessionHolder() {
64	    std::lock_guard<std::mutex> lock(m_sessionsMutex);
65	    return CreateSessionHolderInternal();
67    }
Metadata
Metadata
Assignees
Labels
clang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]