<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/131240>131240</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Segfault
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Kracken256
</td>
</tr>
</table>
<pre>
This is the file it was processing: https://github.com/nitrate-lang/nitrate/blob/d3453bd5c39c4142a60173b4f202dd5204e11c18/pipeline/libnitrate-parser/include/nitrate-parser/ASTFactory.hh
```
Stack dump:
0. Program arguments: clang-tidy -header-filter=. -extra-arg=-std=c++20 --fix --fix-errors pipeline/libnitrate-parser/src/factory/Expression.cc
1. <eof> parser at end of file
2. ASTMatcher: Processing 'modernize-use-constraints' against:
FunctionTemplateDecl boost::multiprecision::abs : </usr/include/boost/multiprecision/detail/default_ops.hpp:2313:1, line:2318:1>
--- Bound Nodes Begin ---
function - { FunctionDecl boost::multiprecision::abs : </usr/include/boost/multiprecision/detail/default_ops.hpp:2314:1, line:2318:1> }
functionTemplate - { FunctionTemplateDecl boost::multiprecision::abs : </usr/include/boost/multiprecision/detail/default_ops.hpp:2313:1, line:2318:1> }
return - { DependentNameTypeLoc : </usr/include/boost/multiprecision/detail/default_ops.hpp:2314:33, col:162> }
--- 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 libLLVM.so.18.1 0x0000757eab3a63bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 63
1 libLLVM.so.18.1 0x0000757eab3a44f9 llvm::sys::RunSignalHandlers() + 89
2 libLLVM.so.18.1 0x0000757eab3a6b00
3 libc.so.6 0x0000757ea9e45330
4 clang-tidy 0x00005f376d396035
5 clang-tidy 0x00005f376d39502b clang::tidy::modernize::UseConstraintsCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&) + 155
6 clang-tidy 0x00005f376d6a7f15
7 clang-tidy 0x00005f376d6db00c clang::ast_matchers::internal::BoundNodesTreeBuilder::visitMatches(clang::ast_matchers::internal::BoundNodesTreeBuilder::Visitor*) + 156
8 clang-tidy 0x00005f376d6a765f
9 clang-tidy 0x00005f376d6aa1eb
10 clang-tidy 0x00005f376d6ac96b
11 clang-tidy 0x00005f376d6aa747
12 clang-tidy 0x00005f376d6ac96b
13 clang-tidy 0x00005f376d6aa747
14 clang-tidy 0x00005f376d6d76eb
15 clang-tidy 0x00005f376d6aab89
16 clang-tidy 0x00005f376d6aa213
17 clang-tidy 0x00005f376d67c825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) + 709
18 libclang-cpp.so.18.1 0x0000757eb4842fbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
19 libclang-cpp.so.18.1 0x0000757eb29973d6 clang::ParseAST(clang::Sema&, bool, bool) + 598
20 libclang-cpp.so.18.1 0x0000757eb480662c clang::FrontendAction::Execute() + 92
21 libclang-cpp.so.18.1 0x0000757eb47830b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 708
22 libclang-cpp.so.18.1 0x0000757eb49fa6b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) + 425
23 clang-tidy 0x00005f376dcfbab3
24 libclang-cpp.so.18.1 0x0000757eb49fa414 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) + 292
25 libclang-cpp.so.18.1 0x0000757eb49f917f clang::tooling::ToolInvocation::run() + 1231
26 libclang-cpp.so.18.1 0x0000757eb49fc1c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) + 5041
27 clang-tidy 0x00005f376dcf7d9b 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) + 1083
28 clang-tidy 0x00005f376d077c65 clang::tidy::clangTidyMain(int, char const**) + 10005
29 libc.so.6 0x0000757ea9e2a1ca
30 libc.so.6 0x0000757ea9e2a28b __libc_start_main + 139
31 clang-tidy 0x00005f376d072fe5 _start + 37
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMWM1u4zgSfhrmQsigSP1YBx8UO0Y3tjMdtD0D7F4MiirZ3JZJg6TcyTz9gpR_5CROPFgsdgQjkchi1fdVFYslcWvlWgFMUHqP0tkd79xGm8k_DBc_QdE0u6t0_TJZbqTF0mK3AdzIFrB0-Be3eGe0AGulWiNW4o1zO4tYiegc0flauk1XjYTeIjpX0hnuIGq5Wp8fEZ1Xra4QndcsSVlVp4IVIokTyjMS56xKGkpoXaeUJBDHIh4jOt_JHbRS-cWtrI6Kd9xYMIjOpRJtV8PA5mmqXCznXDhtXkabDSKl_2Xk8CPlwnHxE9fdduc5kJKMcLiejF4bvsXcrLstKOcpYuGZRE7WLzjaAK_BRI1sHRjEZiMcwbMzPOJmjdgssq5GbCYQvUf0nhIcRY187v9GYIw2Fn9CyhqB6LzpwSM6f3jeGe93rUZCIFLGB6iITUE3iD3gfinmDoOqsW5C2BAp6UGyXCwfuRMbD7j0FA9xxIjmW12DUfJPiDoLkdDKOsOlJ05zzNdcKut6F-HDNe-UcFKrJWx3LXcwA9HiSutejpXbrnVyZ0BIj7kf45XF3jZiU0Tnnb0MXr-Yzl-tpPMaHJdtuGl417qV3tnRZudjRlnMECtjRKc4ODMMjcMQe0CkjKII3-tO1fg3XYPF97CWCkdRdKDSHGjgCKP8_sTq_8Ymuc4Go3z2CvXR-a_Q_51jMmBhwHXm6PkZ7EDVoNxvfAvLlx180-J_417GPDKhW48oo2dMr3PlQd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