Issue 131240
Summary [clang-tidy] Segfault
Labels clang-tidy
Assignees
Reporter Kracken256
    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
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to