llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

clang-tidy crash with bugprone-unchecked-optional-access

Open t-b opened this issue 3 years ago • 4 comments

Version: 17.0.6 OS: Debian Linux

clang-tidy crashed and told me to report a bug. I'm attaching the stackdump stack-dump-clang-tidy.txt.

t-b avatar Dec 01 '23 14:12 t-b

Also have the same crash on the same clang-tidy version, on nixOs. Cannot post backtrace due to legal reasons but here is obfuscated snippet: `Error running '/nix/store/vywd60v5l52qwlb2ydcnfv29jqyw4l31-clang-tools-17.0.6/bin/clang-tidy': PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: /nix/store/vywd60v5l52qwlb2ydcnfv29jqyw4l31-clang-tools-17.0.6/bin/clang-tidy -extra-arg=--target=x86_64-linux-gnu -p --extra-arg-before=--driver-mode=g++

  1. parser at end of file
  2. ASTMatcher: Processing 'bugprone-unchecked-optional-access' against:`

rsniezek avatar Feb 22 '24 12:02 rsniezek

Do either of you have a repro or a stack trace from a non-opt build? We just recently fixed a crash which might be the same as this one: https://github.com/llvm/llvm-project/pull/84138

Can one or both of you try to repro at HEAD?

ymand avatar Mar 07 '24 19:03 ymand

I'll have a look.

t-b avatar Apr 17 '24 14:04 t-b

No crash with Debian clang version 18.1.6 (++20240518023133+1118c2e05e67-1~exp1~20240518143227.130), thanks for the fix.

t-b avatar May 31 '24 13:05 t-b