Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault #123163

Open
Kracken256 opened this issue Jan 16, 2025 · 3 comments
Open

Segfault #123163

Kracken256 opened this issue Jan 16, 2025 · 3 comments
Labels
clang-tidy crash Prefer [crash-on-valid] or [crash-on-invalid] incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.)

Comments

@Kracken256
Copy link

Stack dump:
0.      Program arguments: clang-tidy -format-style=file -header-filter=. pipeline/libnitrate-parser/src/core/ASTReader.cc -extra-arg=-std=c++20
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      0x00007b9c5f9a63bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 63
1  libLLVM.so.18.1      0x00007b9c5f9a44f9 llvm::sys::RunSignalHandlers() + 89
2  libLLVM.so.18.1      0x00007b9c5f9a6b00
3  libc.so.6            0x00007b9c5e445320
4  clang-tidy           0x000056a042a0e035
5  clang-tidy           0x000056a042a0d02b clang::tidy::modernize::UseConstraintsCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&) + 155
6  clang-tidy           0x000056a042d1ff15
7  clang-tidy           0x000056a042d5300c clang::ast_matchers::internal::BoundNodesTreeBuilder::visitMatches(clang::ast_matchers::internal::BoundNodesTreeBuilder::Visitor*) + 156
8  clang-tidy           0x000056a042d1f65f
9  clang-tidy           0x000056a042d221eb
10 clang-tidy           0x000056a042d2496b
11 clang-tidy           0x000056a042d22747
12 clang-tidy           0x000056a042d2496b
13 clang-tidy           0x000056a042d22747
14 clang-tidy           0x000056a042d4f6eb
15 clang-tidy           0x000056a042d22b89
16 clang-tidy           0x000056a042d22213
17 clang-tidy           0x000056a042cf4825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) + 709
18 libclang-cpp.so.18.1 0x00007b9c68e42fbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
19 libclang-cpp.so.18.1 0x00007b9c66f973d6 clang::ParseAST(clang::Sema&, bool, bool) + 598
20 libclang-cpp.so.18.1 0x00007b9c68e0662c clang::FrontendAction::Execute() + 92
21 libclang-cpp.so.18.1 0x00007b9c68d830b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 708
22 libclang-cpp.so.18.1 0x00007b9c68ffa6b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) + 425
23 clang-tidy           0x000056a043373ab3
24 libclang-cpp.so.18.1 0x00007b9c68ffa414 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 0x00007b9c68ff917f clang::tooling::ToolInvocation::run() + 1231
26 libclang-cpp.so.18.1 0x00007b9c68ffc1c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) + 5041
27 clang-tidy           0x000056a04336fd9b 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           0x000056a0426efc65 clang::tidy::clangTidyMain(int, char const**) + 10005
29 libc.so.6            0x00007b9c5e42a1ca
30 libc.so.6            0x00007b9c5e42a28b __libc_start_main + 139
31 clang-tidy           0x000056a0426eafe5 _start + 37
@EugeneZelenko EugeneZelenko added clang-tidy crash Prefer [crash-on-valid] or [crash-on-invalid] incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.) and removed new issue labels Jan 16, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 16, 2025

@llvm/issue-subscribers-clang-tidy

Author: Wesley Jones (Kracken256)

```py Stack dump: 0. Program arguments: clang-tidy -format-style=file -header-filter=. pipeline/libnitrate-parser/src/core/ASTReader.cc -extra-arg=-std=c++20 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 0x00007b9c5f9a63bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 63 1 libLLVM.so.18.1 0x00007b9c5f9a44f9 llvm::sys::RunSignalHandlers() + 89 2 libLLVM.so.18.1 0x00007b9c5f9a6b00 3 libc.so.6 0x00007b9c5e445320 4 clang-tidy 0x000056a042a0e035 5 clang-tidy 0x000056a042a0d02b clang::tidy::modernize::UseConstraintsCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&) + 155 6 clang-tidy 0x000056a042d1ff15 7 clang-tidy 0x000056a042d5300c clang::ast_matchers::internal::BoundNodesTreeBuilder::visitMatches(clang::ast_matchers::internal::BoundNodesTreeBuilder::Visitor*) + 156 8 clang-tidy 0x000056a042d1f65f 9 clang-tidy 0x000056a042d221eb 10 clang-tidy 0x000056a042d2496b 11 clang-tidy 0x000056a042d22747 12 clang-tidy 0x000056a042d2496b 13 clang-tidy 0x000056a042d22747 14 clang-tidy 0x000056a042d4f6eb 15 clang-tidy 0x000056a042d22b89 16 clang-tidy 0x000056a042d22213 17 clang-tidy 0x000056a042cf4825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) + 709 18 libclang-cpp.so.18.1 0x00007b9c68e42fbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44 19 libclang-cpp.so.18.1 0x00007b9c66f973d6 clang::ParseAST(clang::Sema&, bool, bool) + 598 20 libclang-cpp.so.18.1 0x00007b9c68e0662c clang::FrontendAction::Execute() + 92 21 libclang-cpp.so.18.1 0x00007b9c68d830b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 708 22 libclang-cpp.so.18.1 0x00007b9c68ffa6b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) + 425 23 clang-tidy 0x000056a043373ab3 24 libclang-cpp.so.18.1 0x00007b9c68ffa414 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 0x00007b9c68ff917f clang::tooling::ToolInvocation::run() + 1231 26 libclang-cpp.so.18.1 0x00007b9c68ffc1c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) + 5041 27 clang-tidy 0x000056a04336fd9b 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 0x000056a0426efc65 clang::tidy::clangTidyMain(int, char const**) + 10005 29 libc.so.6 0x00007b9c5e42a1ca 30 libc.so.6 0x00007b9c5e42a28b __libc_start_main + 139 31 clang-tidy 0x000056a0426eafe5 _start + 37 ```

@EugeneZelenko
Copy link
Contributor

Which version do you use? Please provide reproducer. https://godbolt.org should be helpful.

@Kracken256
Copy link
Author

Kracken256 commented Jan 16, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang-tidy crash Prefer [crash-on-valid] or [crash-on-invalid] incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants