Open
Description
Sometimes succeeds, sometimes fails with different backtraces
e.g. (1)
[build] Error running '/usr/bin/clang-tidy': PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
[build] Stack dump:
[build] 0. Program arguments: /usr/bin/clang-tidy -p /home/dev/snip/out/build/clang-tidy -header-filter=/home/dev/snip -warnings-as-errors=* --extra-arg-before=--driver-mode=g++ /home/dev/snip/snip.cpp
[build] 1. <eof> parser at end of file
[build] 2. ASTMatcher: Matching 'cppcoreguidelines-macro-to-enum' against:
[build] ParmVarDecl : </usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_deque.h:2232:53>
[build] #0 0x00007f9af2d923bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:723:13
[build] #1 0x00007f9af2d904f9 llvm::sys::RunSignalHandlers() build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Signals.cpp:106:18
[build] #2 0x00007f9af2d92b00 SignalHandler build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:413:1
[build] #3 0x00007f9af1ab3320 (/lib/x86_64-linux-gnu/libc.so.6+0x45320)
[build] #4 0x00007f9af1b190d3 _int_free_create_chunk ./malloc/malloc.c:4722:2
[build] #5 0x00007f9af1b190d3 _int_free_merge_chunk ./malloc/malloc.c:4700:10
[build] #6 0x00007f9af1b1bd9e cfree ./malloc/malloc.c:3401:3
[build] #7 0x0000564e26240965 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:4
[build] #8 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #9 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #10 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #11 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #12 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #13 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #14 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #15 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #16 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #17 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #18 0x0000564e26240959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #19 0x0000564e26240959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #20 0x0000564e2623efb4 clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:2
[build] #21 0x0000564e2623efb4 clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_map.h:1184:14
[build] #22 0x0000564e2623efb4 matchesAncestorOf build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:696:19
[build] #23 0x0000564e25f1d602 matches build-llvm/tools/clang/stage2-bins/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1675:5
[build] #24 0x0000564e2629fc85 dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:0:33
[build] #25 0x0000564e2629d62c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #26 0x0000564e2626960e matchWithFilter build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1064:11
[build] #27 0x0000564e2626c1eb getKind build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/DeclBase.h:447:51
[build] #28 0x0000564e2626c1eb TraverseDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:743:14
[build] #29 0x0000564e2626c1eb TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #30 0x0000564e26276ab8 TraverseFunctionProtoTypeLoc build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1309:1
[build] #31 0x0000564e2629bc35 TraverseFunctionHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2158:5
[build] #32 0x0000564e2626f636 TraverseCXXMethodDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2223:1
[build] #33 0x0000564e2626c7ef TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:242:1
[build] #34 0x0000564e2626c7ef TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #35 0x0000564e262717fb TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #36 0x0000564e262717fb TraverseCXXRecordDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1996:1
[build] #37 0x0000564e2626c36f TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:414:1
[build] #38 0x0000564e2626c36f TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #39 0x0000564e262731a1 TraverseClassTemplateDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1883:1
[build] #40 0x0000564e2626c3cf TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:524:1
[build] #41 0x0000564e2626c3cf TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #42 0x0000564e2626e96b TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #43 0x0000564e2626e96b TraverseNamespaceDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1616:1
[build] #44 0x0000564e2626c747 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:170:1
[build] #45 0x0000564e2626c747 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #46 0x0000564e262996eb TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #47 0x0000564e2626cb89 TraverseTranslationUnitDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1580:1
[build] #48 0x0000564e2626c213 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:24:1
[build] #49 0x0000564e2626c213 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #50 0x0000564e2623e825 onEndOfTranslationUnit build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:446:30
[build] #51 0x0000564e2623e825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1700:11
[build] #52 0x00007f9afc039fbc operator++ /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1111:2
[build] #53 0x00007f9afc039fbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/MultiplexConsumer.cpp:297:23
[build] #54 0x00007f9afa18e3d6 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
[build] #55 0x00007f9afa18e3d6 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
[build] #56 0x00007f9afa18e3d6 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> > > > > build-llvm/tools/clang/stage2-bins/clang/include/clang/Sema/TemplateInstCallback.h:54:16
[build] #57 0x00007f9afa18e3d6 clang::ParseAST(clang::Sema&, bool, bool) build-llvm/tools/clang/stage2-bins/clang/lib/Parse/ParseAST.cpp:183:3
[build] #58 0x00007f9afbffd62c clang::FrontendAction::Execute() build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/FrontendAction.cpp:1073:10
[build] #59 0x00007f9afbf7a0b4 getPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:279:12
[build] #60 0x00007f9afbf7a0b4 operator bool build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:239:16
[build] #61 0x00007f9afbf7a0b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/CompilerInstance.cpp:1057:23
[build] #62 0x00007f9afc1f16b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:465:33
[build] #63 0x0000564e268bdab3 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #64 0x0000564e268bdab3 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #65 0x0000564e268bdab3 runInvocation build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:581:7
[build] #66 0x00007f9afc1f1414 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #67 0x00007f9afc1f1414 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #68 0x00007f9afc1f1414 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:440:3
[build] #69 0x00007f9afc1f017f clang::tooling::ToolInvocation::run() build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:425:10
[build] #70 0x00007f9afc1f31c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:623:11
[build] #71 0x0000564e268b9d9b 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) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:0:8
[build] #72 0x0000564e25c39c65 release build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9
[build] #73 0x0000564e25c39c65 ~IntrusiveRefCntPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:27
[build] #74 0x0000564e25c39c65 clang::tidy::clangTidyMain(int, char const**) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp:681:7
[build] #75 0x00007f9af1a981ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
[build] #76 0x00007f9af1a9828b call_init ./csu/../csu/libc-start.c:128:20
[build] #77 0x00007f9af1a9828b __libc_start_main ./csu/../csu/libc-start.c:347:5
[build] #78 0x0000564e25c34fe5 _start (/usr/bin/clang-tidy+0x6fafe5)
e.g. (2)
$ clang-tidy --version
Ubuntu LLVM version 18.1.3
Optimized build.
$ cat .clang-tidy
Checks: >
*,
-abseil-*,
-altera-*,
-android-*,
-clang-analyzer-*,
-darwin-*,
-google-objc-*,
-linuxkernel-*,
-llvmlibc-*,
-mpi-*,
-objc-*,
-openmp-*,
-zircon-*,
-boost-use-to-string,
-CWE-119,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-fuchsia-default-arguments-calls,
-fuchsia-default-arguments-declarations,
-fuchsia-overloaded-operator,
-google-readability-braces-around-statements,
-hicpp-braces-around-statements,
-hicpp-no-array-decay,
-llvm-header-guard,
-llvm-include-order,
-modernize-use-trailing-return-type,
-readability-braces-around-statements,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-bugprone-argument-comment,
-bugprone-bad-signal-to-kill-thread,
-bugprone-bool-pointer-implicit-conversion,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-lambda-function-name,
-bugprone-misplaced-operator-in-strlen-in-alloc,
-bugprone-misplaced-pointer-arithmetic-in-alloc,
-bugprone-not-null-terminated-result,
-bugprone-posix-return,
-bugprone-signal-handler,
-bugprone-spuriously-wake-up-functions,
-bugprone-virtual-near-miss,
-bugprone-unhandled-exception-at-new,
-bugprone-unchecked-optional-access,
-cert-con36-c,
-cert-con54-cpp,
-hicpp-uppercase-literal-suffix,
-readability-uppercase-literal-suffix,
-cert-dcl16-c,
-cert-dcl21-cpp,
-cert-dcl58-cpp,
-cert-env33-c,
-cert-pos44-c,
-cert-pos47-c,
-cert-sig30-c,
-cert-msc30-c,
-cert-msc50-cpp,
-cert-msc32-c,
-cert-msc51-cpp,
-cppcoreguidelines-pro-bounds-constant-array-index,
-fuchsia-multiple-inheritance,
-fuchsia-statically-constructed-objects,
-fuchsia-trailing-return,
-fuchsia-virtual-inheritance,
-google-build-explicit-make-pair,
-google-build-using-namespace,
-google-default-arguments,
-google-readability-todo,
-hicpp-named-parameter,
-readability-named-parameter,
-llvm-prefer-isa-or-dyn-cast-in-conditionals,
-llvm-prefer-register-over-unsigned,
-llvm-qualified-auto,
-llvm-twine-local,
-misc-confusable-identifiers,
-misc-misleading-bidirectional,
-misc-misleading-identifier,
-misc-no-recursion,
-misc-unused-parameters,
-modernize-replace-disallow-copy-and-assign-macro,
-modernize-use-nodiscard,
-performance-inefficient-string-concatenation,
-readability-isolate-declaration,
-readability-qualified-auto,
-readability-suspicious-call-argument,
-hicpp-use-nullptr,
-modernize-use-nullptr,
-cppcoreguidelines-avoid-do-while,
-misc-const-correctness,
-readability-redundant-control-flow,
-google-readability-casting,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-cstyle-cast,
-readability-container-size-empty,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-non-private-member-variables-in-classes,
-misc-non-private-member-variables-in-classes,
-readability-avoid-const-params-in-decls,
-modernize-return-braced-init-list,
-readability-simplify-boolean-expr,
-hicpp-signed-bitwise,
-readability-function-cognitive-complexity,
-readability-static-accessed-through-instance,
-modernize-loop-convert,
-llvm-else-after-return,
-misc-include-cleaner,
-readability-convert-member-functions-to-static,
-hicpp-avoid-c-arrays,
-hicpp-explicit-conversions,
-hicpp-special-member-functions,
-hicpp-noexcept-move,
-cppcoreguidelines-noexcept-move-operations,
-cppcoreguidelines-avoid-c-arrays,
-bugprone-empty-catch,
-hicpp-member-init,
-modernize-use-constraints,
-performance-enum-size,
-readability-redundant-inline-specifier,
-readability-redundant-member-init,
-readability-avoid-return-with-void-value,
-readability-avoid-nested-conditional-operator,
-modernize-use-std-numbers,
-readability-redundant-casting,
-bugprone-suspicious-include,
-hicpp-use-emplace,
-boost-use-ranges,
-modernize-use-designated-initializers,
-readability-math-missing-parentheses,
-modernize-min-max-use-initializer-list,
-readability-use-std-min-max,
-modernize-use-ranges,
-bugprone-crtp-constructor-accessibility,
-bugprone-suspicious-stringview-data-usage,
-misc-use-internal-linkage
FormatStyle: "file"
CheckOptions:
misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: "true"
cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor: "true"
e.g. (3)
[build] Error running '/usr/bin/clang-tidy': PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
[build] Stack dump:
[build] 0. Program arguments: /usr/bin/clang-tidy -p /home/dev/snip/out/build/clang-tidy -header-filter=/home/dev/snip -warnings-as-errors=* --extra-arg-before=--driver-mode=g++ /home/dev/snip/.cpp
[build] 1. <eof> parser at end of file
[build] 2. ASTMatcher: Matching 'hicpp-invalid-access-moved' against:
[build] ImplicitCastExpr : </home/dev/snip/out/build/clang-tidy/vcpkg_installed/x64-linux/include/openssl/core_dispatch.h:591:1 <Spelling=line:52:41>>
[build] #0 0x00007f977cdd63bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:723:13
[build] #1 0x00007f977cdd44f9 llvm::sys::RunSignalHandlers() build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Signals.cpp:106:18
[build] #2 0x00007f977cdd6b00 SignalHandler build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:413:1
[build] #3 0x00007f977baf7320 (/lib/x86_64-linux-gnu/libc.so.6+0x45320)
[build] #4 0x00007f977bb5d0d4 _int_free_create_chunk ./malloc/malloc.c:4722:2
[build] #5 0x00007f977bb5d0d4 _int_free_merge_chunk ./malloc/malloc.c:4700:10
[build] #6 0x00007f977bb5fd9e cfree ./malloc/malloc.c:3401:3
[build] #7 0x000056495dde0965 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:4
[build] #8 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #9 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #10 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #11 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #12 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #13 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #14 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #15 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #16 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #17 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #18 0x000056495dde0959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #19 0x000056495dde0959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #20 0x000056495dddee4c clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:2
[build] #21 0x000056495dddee4c clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_map.h:1184:14
[build] #22 0x000056495dddee4c matchesChildOf build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:675:19
[build] #23 0x000056495d94c1d2 matches build-llvm/tools/clang/stage2-bins/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1623:5
[build] #24 0x000056495de3d76e clang::ast_matchers::internal::DynTypedMatcher::matchesNoKindCheck(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:332:23
[build] #25 0x000056495de4066a __find_if<const clang::ast_matchers::internal::DynTypedMatcher *, __gnu_cxx::__ops::_Iter_negate<(lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2092:8
[build] #26 0x000056495de4066a __find_if_not<const clang::ast_matchers::internal::DynTypedMatcher *, __gnu_cxx::__ops::_Iter_pred<(lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:112:14
[build] #27 0x000056495de4066a find_if_not<const clang::ast_matchers::internal::DynTypedMatcher *, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:519:14
[build] #28 0x000056495de4066a all_of<const clang::ast_matchers::internal::DynTypedMatcher *, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:459:24
[build] #29 0x000056495de4066a all_of<llvm::ArrayRef<clang::ast_matchers::internal::DynTypedMatcher> &, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/STLExtras.h:1732:10
[build] #30 0x000056495de4066a allOfVariadicOperator build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:10
[build] #31 0x000056495de4066a dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:123:12
[build] #32 0x000056495de3fc85 dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:0:33
[build] #33 0x000056495de3d62c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #34 0x000056495d7f4641 matches build-llvm/tools/clang/stage2-bins/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1514:5
[build] #35 0x000056495de3d62c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #36 0x000056495de0960e matchWithFilter build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1064:11
[build] #37 0x000056495de212f1 TraverseStmt build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1483:48
[build] #38 0x000056495de212f1 TraverseMemberExpr build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2437:1
[build] #39 0x000056495de1c172 TraverseStmt build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:678:7
[build] #40 0x000056495de3bfa2 ~ASTNodeNotSpelledInSourceScope build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:971:47
[build] #41 0x000056495de3bfa2 TraverseStmt build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1484:1
[build] #42 0x000056495de3bfa2 TraverseFunctionHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2198:5
[build] #43 0x000056495de0f586 TraverseFunctionDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2209:1
[build] #44 0x000056495de0c66f TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:238:1
[build] #45 0x000056495de0c66f TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #46 0x000056495de0cd7b TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #47 0x000056495de0cd7b TraverseLinkageSpecDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1568:1
[build] #48 0x000056495de0c5df TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:36:1
[build] #49 0x000056495de0c5df TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #50 0x000056495de396eb TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #51 0x000056495de0cb89 TraverseTranslationUnitDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1580:1
[build] #52 0x000056495de0c213 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:24:1
[build] #53 0x000056495de0c213 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #54 0x000056495ddde825 onEndOfTranslationUnit build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:446:30
[build] #55 0x000056495ddde825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1700:11
[build] #56 0x00007f978607dfbc operator++ /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1111:2
[build] #57 0x00007f978607dfbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/MultiplexConsumer.cpp:297:23
[build] #58 0x00007f97841d23d6 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
[build] #59 0x00007f97841d23d6 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
[build] #60 0x00007f97841d23d6 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> > > > > build-llvm/tools/clang/stage2-bins/clang/include/clang/Sema/TemplateInstCallback.h:54:16
[build] #61 0x00007f97841d23d6 clang::ParseAST(clang::Sema&, bool, bool) build-llvm/tools/clang/stage2-bins/clang/lib/Parse/ParseAST.cpp:183:3
[build] #62 0x00007f978604162c clang::FrontendAction::Execute() build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/FrontendAction.cpp:1073:10
[build] #63 0x00007f9785fbe0b4 getPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:279:12
[build] #64 0x00007f9785fbe0b4 operator bool build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:239:16
[build] #65 0x00007f9785fbe0b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/CompilerInstance.cpp:1057:23
[build] #66 0x00007f97862356b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:465:33
[build] #67 0x000056495e45dab3 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #68 0x000056495e45dab3 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #69 0x000056495e45dab3 runInvocation build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:581:7
[build] #70 0x00007f9786235414 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #71 0x00007f9786235414 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #72 0x00007f9786235414 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:440:3
[build] #73 0x00007f978623417f clang::tooling::ToolInvocation::run() build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:425:10
[build] #74 0x00007f97862371c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:623:11
[build] #75 0x000056495e459d9b 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) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:0:8
[build] #76 0x000056495d7d9c65 release build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9
[build] #77 0x000056495d7d9c65 ~IntrusiveRefCntPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:27
[build] #78 0x000056495d7d9c65 clang::tidy::clangTidyMain(int, char const**) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp:681:7
[build] #79 0x00007f977badc1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
[build] #80 0x00007f977badc28b call_init ./csu/../csu/libc-start.c:128:20
[build] #81 0x00007f977badc28b __libc_start_main ./csu/../csu/libc-start.c:347:5
[build] #82 0x000056495d7d4fe5 _start (/usr/bin/clang-tidy+0x6fafe5)
[build] Segmentation fault
e.g. (4)
[build] 0. Program arguments: /usr/bin/clang-tidy -p /home/dev/snip/out/build/clang-tidy -header-filter=/home/dev/snip -warnings-as-errors=* --extra-arg-before=--driver-mode=g++ /home/dev/snip.cpp
[build] 1. <eof> parser at end of file
[build] 2. ASTMatcher: Matching 'modernize-make-unique' against:
[build] CXXMemberCallExpr : </usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:1354:20, col:31>
[build] #0 0x00007f881db1c3bf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:723:13
[build] #1 0x00007f881db1a4f9 llvm::sys::RunSignalHandlers() build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Signals.cpp:106:18
[build] #2 0x00007f881db1cb00 SignalHandler build-llvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:413:1
[build] #3 0x00007f881c83d320 (/lib/x86_64-linux-gnu/libc.so.6+0x45320)
[build] #4 0x00007f881c8a3027 _int_free_create_chunk ./malloc/malloc.c:4720:10
[build] #5 0x00007f881c8a3027 _int_free_merge_chunk ./malloc/malloc.c:4700:10
[build] #6 0x00007f881c8a5d9e cfree ./malloc/malloc.c:3401:3
[build] #7 0x000055b4c3786965 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:4
[build] #8 0x000055b4c3786959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #9 0x000055b4c3786959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #10 0x000055b4c3786959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #11 0x000055b4c3786959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #12 0x000055b4c3786959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #13 0x000055b4c3786959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #14 0x000055b4c3786959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #15 0x000055b4c3786959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #16 0x000055b4c3786959 _S_left /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:782:45
[build] #17 0x000055b4c3786959 _M_erase /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:1937:21
[build] #18 0x000055b4c3784fb4 clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:0:2
[build] #19 0x000055b4c3784fb4 clear /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_map.h:1184:14
[build] #20 0x000055b4c3784fb4 matchesAncestorOf build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:696:19
[build] #21 0x000055b4c31994bf matches build-llvm/tools/clang/stage2-bins/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1697:5
[build] #22 0x000055b4c37e362c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #23 0x000055b4c37e7045 notUnaryOperator build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:384:28
[build] #24 0x000055b4c37e7045 dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:123:12
[build] #25 0x000055b4c37e376e clang::ast_matchers::internal::DynTypedMatcher::matchesNoKindCheck(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:332:23
[build] #26 0x000055b4c37e6585 __find_if<const clang::ast_matchers::internal::DynTypedMatcher *, __gnu_cxx::__ops::_Iter_negate<(lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8
[build] #27 0x000055b4c37e6585 __find_if_not<const clang::ast_matchers::internal::DynTypedMatcher *, __gnu_cxx::__ops::_Iter_pred<(lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:112:14
[build] #28 0x000055b4c37e6585 find_if_not<const clang::ast_matchers::internal::DynTypedMatcher *, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:519:14
[build] #29 0x000055b4c37e6585 all_of<const clang::ast_matchers::internal::DynTypedMatcher *, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:459:24
[build] #30 0x000055b4c37e6585 all_of<llvm::ArrayRef<clang::ast_matchers::internal::DynTypedMatcher> &, (lambda at clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:38)> build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/STLExtras.h:1732:10
[build] #31 0x000055b4c37e6585 allOfVariadicOperator build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:394:10
[build] #32 0x000055b4c37e6585 dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:123:12
[build] #33 0x000055b4c37e5c85 dynMatches build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:0:33
[build] #34 0x000055b4c37e362c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #35 0x000055b4c319a641 matches build-llvm/tools/clang/stage2-bins/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1514:5
[build] #36 0x000055b4c37e362c clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchersInternal.cpp:304:23
[build] #37 0x000055b4c37af60e matchWithFilter build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1064:11
[build] #38 0x000055b4c37ce4a1 TraverseStmt build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1483:48
[build] #39 0x000055b4c37ce4a1 TraverseBinaryOperator build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2852:1
[build] #40 0x000055b4c37c1b0c TraverseStmt build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:678:7
[build] #41 0x000055b4c37e1fa2 ~ASTNodeNotSpelledInSourceScope build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:971:47
[build] #42 0x000055b4c37e1fa2 TraverseStmt build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1484:1
[build] #43 0x000055b4c37e1fa2 TraverseFunctionHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2198:5
[build] #44 0x000055b4c37b5636 TraverseCXXMethodDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2223:1
[build] #45 0x000055b4c37b27ef TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:242:1
[build] #46 0x000055b4c37b27ef TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #47 0x000055b4c37b799b TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #48 0x000055b4c37b799b TraverseClassTemplateSpecializationDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:2026:1
[build] #49 0x000055b4c37b287f TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:418:1
[build] #50 0x000055b4c37b287f TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #51 0x000055b4c37b9252 TraverseTemplateInstantiations build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1791:9
[build] #52 0x000055b4c37b9252 TraverseTemplateInstantiations build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:759:50
[build] #53 0x000055b4c37b9252 TraverseClassTemplateDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1883:1
[build] #54 0x000055b4c37b23cf TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:524:1
[build] #55 0x000055b4c37b23cf TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #56 0x000055b4c37b496b TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #57 0x000055b4c37b496b TraverseNamespaceDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1616:1
[build] #58 0x000055b4c37b2747 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:170:1
[build] #59 0x000055b4c37b2747 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #60 0x000055b4c37b496b TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #61 0x000055b4c37b496b TraverseNamespaceDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1616:1
[build] #62 0x000055b4c37b2747 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:170:1
[build] #63 0x000055b4c37b2747 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #64 0x000055b4c37df6eb TraverseDeclContextHelper build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1480:7
[build] #65 0x000055b4c37b2b89 TraverseTranslationUnitDecl build-llvm/tools/clang/stage2-bins/clang/include/clang/AST/RecursiveASTVisitor.h:1580:1
[build] #66 0x000055b4c37b2213 TraverseDecl build-llvm/tools/clang/stage2-bins/build-llvm/tools/clang/stage2-bins/tools/clang/include/clang/AST/DeclNodes.inc:24:1
[build] #67 0x000055b4c37b2213 TraverseDecl build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1471:48
[build] #68 0x000055b4c3784825 onEndOfTranslationUnit build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:446:30
[build] #69 0x000055b4c3784825 clang::ast_matchers::MatchFinder::matchAST(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/ASTMatchers/ASTMatchFinder.cpp:1700:11
[build] #70 0x00007f8826dc3fbc operator++ /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1111:2
[build] #71 0x00007f8826dc3fbc clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/MultiplexConsumer.cpp:297:23
[build] #72 0x00007f8824f183d6 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
[build] #73 0x00007f8824f183d6 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
[build] #74 0x00007f8824f183d6 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> > > > > build-llvm/tools/clang/stage2-bins/clang/include/clang/Sema/TemplateInstCallback.h:54:16
[build] #75 0x00007f8824f183d6 clang::ParseAST(clang::Sema&, bool, bool) build-llvm/tools/clang/stage2-bins/clang/lib/Parse/ParseAST.cpp:183:3
[build] #76 0x00007f8826d8762c clang::FrontendAction::Execute() build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/FrontendAction.cpp:1073:10
[build] #77 0x00007f8826d040b4 getPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:279:12
[build] #78 0x00007f8826d040b4 operator bool build-llvm/tools/clang/stage2-bins/llvm/include/llvm/Support/Error.h:239:16
[build] #79 0x00007f8826d040b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) build-llvm/tools/clang/stage2-bins/clang/lib/Frontend/CompilerInstance.cpp:1057:23
[build] #80 0x00007f8826f7b6b9 clang::tooling::FrontendActionFactory::runInvocation(std::shared_ptr<clang::CompilerInvocation>, clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>, clang::DiagnosticConsumer*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:465:33
[build] #81 0x000055b4c3e03ab3 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #82 0x000055b4c3e03ab3 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #83 0x000055b4c3e03ab3 runInvocation build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:581:7
[build] #84 0x00007f8826f7b414 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1070:6
[build] #85 0x00007f8826f7b414 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
[build] #86 0x00007f8826f7b414 clang::tooling::ToolInvocation::runInvocation(char const*, clang::driver::Compilation*, std::shared_ptr<clang::CompilerInvocation>, std::shared_ptr<clang::PCHContainerOperations>) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:440:3
[build] #87 0x00007f8826f7a17f clang::tooling::ToolInvocation::run() build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:425:10
[build] #88 0x00007f8826f7d1c1 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) build-llvm/tools/clang/stage2-bins/clang/lib/Tooling/Tooling.cpp:623:11
[build] #89 0x000055b4c3dffd9b 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) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/ClangTidy.cpp:0:8
[build] #90 0x000055b4c317fc65 release build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:232:9
[build] #91 0x000055b4c317fc65 ~IntrusiveRefCntPtr build-llvm/tools/clang/stage2-bins/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:196:27
[build] #92 0x000055b4c317fc65 clang::tidy::clangTidyMain(int, char const**) build-llvm/tools/clang/stage2-bins/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp:681:7
[build] #93 0x00007f881c8221ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
[build] #94 0x00007f881c82228b call_init ./csu/../csu/libc-start.c:128:20
[build] #95 0x00007f881c82228b __libc_start_main ./csu/../csu/libc-start.c:347:5
[build] #96 0x000055b4c317afe5 _start (/usr/bin/clang-tidy+0x6fafe5)
[build] Segmentation fault
Command line to invoke
[build] /usr/bin/cmake -E __run_co_compile --launcher="/usr/bin/cmake;-E;env;CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_mtime,include_file_ctime;/usr/local/bin/ccache" --tidy="/usr/bin/clang-tidy;-p;/home/dev/snip/out/build/clang-tidy;-header-filter=/home/dev/snip;-warnings-as-errors=*;--extra-arg-before=--driver-mode=g++" --source=/home/dev/snip/src/lib/snip.cpp -- /usr/bin/clang++ -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_CONTEXT_EXPORT="" -DBOOST_CONTEXT_NO_LIB="" -DBOOST_CONTEXT_STATIC_LINK="" -DBOOST_COROUTINE_NO_LIB -DBOOST_COROUTINE_STATIC_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_DATE_TIME_STATIC_LINK -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/dev/snip/src/lib -I/home/dev/snip/src -I/home/dev/snip/out/build/clang-tidy/src/snip/pb -isystem /home/dev/snip/out/build/clang-tidy/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -std=c++20 -fPIC -Wall -Wextra -Xclang -fno-pch-timestamp -Werror -MD -MT src/lib/snip.cpp.o -MF src/lib/snip.o.d -o src/snip.cpp.o -c /home/dev/snip.cpp
Sorry, this is commercial code, unable to provide the whole thing, but this is compiling against boost redis. Here are the main 3rd party includes
#include <boost/asio/co_spawn.hpp>
#include <boost/asio/consign.hpp>
#include <boost/asio/deferred.hpp>
#include <boost/asio/detached.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/redirect_error.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/asio/use_awaitable.hpp>
#include <boost/asio/use_future.hpp>
#include <boost/redis/config.hpp>
#include <boost/redis/connection.hpp>
#include <chrono>
#include <nlohmann/json.hpp>
#include <memory>
#include <numeric>
#include <ranges>
#include <thread>
#include <tl/to.hpp>