ndk icon indicating copy to clipboard operation
ndk copied to clipboard

[BUG] clang frontend crashes on both r26d and canary version

Open yujincheng08 opened this issue 1 year ago • 5 comments

Description

https://godbolt.org/z/3cd8nYMh5

Upstream bug

llvm/llvm-project#88400

Commit to cherry-pick

https://github.com/llvm/llvm-project/commit/487967af82053cd08022635a2ff768385d936c80

Affected versions

r26, Canary

Canary version

28.0.11699160

Host OS

Linux, Mac, Windows

Host OS version

11

Affected ABIs

armeabi-v7a, arm64-v8a, x86, x86_64

yujincheng08 avatar Apr 11 '24 14:04 yujincheng08

The godbolt repro crashes back to clang 16. This is not a regression, so we will cherry-pick the fix to r27.

pirama-arumuga-nainar avatar Apr 11 '24 21:04 pirama-arumuga-nainar

Switching godbolt over to the assertions enabled clang shows an assertion failure: https://godbolt.org/z/xh35qaoed

It also fails consistently from clang 16 through HEAD, so not a regression. We might be able to pick up the fix for r27, depending on how invasive it is, but getting the fix into r26e (which isn't currently planned, as there are no regressions against it) seems unlikely.

DanAlbert avatar Apr 11 '24 21:04 DanAlbert

(thank you for the quality bug report, btw, that makes things much easier)

DanAlbert avatar Apr 11 '24 21:04 DanAlbert

upstream fixed: https://github.com/llvm/llvm-project/commit/487967af82053cd08022635a2ff768385d936c80

yujincheng08 avatar Apr 28 '24 08:04 yujincheng08

https://r.android.com/3075606 picks the fix into AOSP toolchain. We'll include the fix in r27.

pirama-arumuga-nainar avatar May 09 '24 22:05 pirama-arumuga-nainar