Bug#1016213: clang-tidy-14: clang-tidy aborts when run

Albert Astals Cid aacid at kde.org
Fri Jul 29 16:05:48 BST 2022


Package: clang-tidy-14
Version: 1:14.0.6-2
Severity: normal
X-Debbugs-Cc: aacid at kde.org

Running clang-tidy-14 asserts, example

I have run the same in archlinux clang-tidy-14 and it does not assert,
so I think it may be a Debian specific issue

clang-tidy-14 --use-color -p=/tmp/poppler_build /builds/aacid/poppler/poppler/NameToCharCode.cc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: clang-tidy-14 --use-color -p=/tmp/poppler_build /builds/aacid/poppler/poppler/NameToCharCode.cc
1.	<eof> parser at end of file
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):
/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x31)[0x7f003d286a71]
/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0xee)[0x7f003d2847be]
/usr/lib/x86_64-linux-gnu/libLLVM-14.so.1(+0xea5fa6)[0x7f003d286fa6]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12200)[0x7f004657d200]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZNK5clang4Stmt9getEndLocEv+0xb)[0x7f0043bae89b]
clang-tidy-14(_ZN5clang4tidy11readability27BracesAroundStatementsCheck13findRParenLocINS_6IfStmtEEENS_14SourceLocationEPKT_RKNS_13SourceManagerEPKNS_10ASTContextE+0x54)[0xa74404]
clang-tidy-14(_ZN5clang4tidy11readability27BracesAroundStatementsCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x240)[0xa73c00]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x109f717)[0x7f0043de2717]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang12ast_matchers8internal21BoundNodesTreeBuilder12visitMatchesEPNS2_7VisitorE+0x12c)[0x7f0043e1419c]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x109f197)[0x7f0043de2197]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10acd85)[0x7f0043defd85]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10aacf9)[0x7f0043dedcf9]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10d0ab1)[0x7f0043e13ab1]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a7082)[0x7f0043dea082]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a1aa4)[0x7f0043de4aa4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a324b)[0x7f0043de624b]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a1471)[0x7f0043de4471]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a97ab)[0x7f0043dec7ab]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(+0x10a16cf)[0x7f0043de46cf]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang12ast_matchers11MatchFinder8matchASTERNS_10ASTContextE+0x367)[0x7f0043db5b17]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang17MultiplexConsumer21HandleTranslationUnitERNS_10ASTContextE+0x2c)[0x7f00452c9bbc]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang8ParseASTERNS_4SemaEbb+0x244)[0x7f00437779a4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang14FrontendAction7ExecuteEv+0x67)[0x7f004528e547]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x336)[0x7f00451e3eb6]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang7tooling21FrontendActionFactory13runInvocationESt10shared_ptrINS_18CompilerInvocationEEPNS_11FileManagerES2_INS_22PCHContainerOperationsEEPNS_18DiagnosticConsumerE+0x189)[0x7f004548fff9]
clang-tidy-14[0xbc9e94]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang7tooling14ToolInvocation13runInvocationEPKcPNS_6driver11CompilationESt10shared_ptrINS_18CompilerInvocationEES7_INS_22PCHContainerOperationsEE+0x134)[0x7f004548fd44]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang7tooling14ToolInvocation3runEv+0x57d)[0x7f004548ecad]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.14(_ZN5clang7tooling9ClangTool3runEPNS0_10ToolActionE+0x10de)[0x7f004549196e]
clang-tidy-14(_ZN5clang4tidy12runClangTidyERNS0_16ClangTidyContextERKNS_7tooling19CompilationDatabaseEN4llvm8ArrayRefINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS7_18IntrusiveRefCntPtrINS7_3vfs17OverlayFileSystemEEEbbNS7_9StringRefE+0x422)[0xbc4e32]
clang-tidy-14(_ZN5clang4tidy13clangTidyMainEiPPKc+0x208b)[0x5c238b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f003beac81d]
clang-tidy-14(_start+0x2a)[0x5be1ba]
/builds/aacid/poppler/poppler/NameToCharCode.cc: terminated by signal 11



-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.14-arch1-1 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages clang-tidy-14 depends on:
ii  clang-tools-14          1:14.0.6-2
ii  libc6                   2.33-8
ii  libclang-common-14-dev  1:14.0.6-2
ii  libclang-cpp14          1:14.0.6-2
ii  libgcc-s1               12.1.0-7
ii  libllvm14               1:14.0.6-2
ii  libstdc++6              12.1.0-7
ii  python3                 3.10.5-3
ii  python3-yaml            5.4.1-1+b2

clang-tidy-14 recommends no packages.

clang-tidy-14 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list