-
Notifications
You must be signed in to change notification settings - Fork 12k
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
clang 18.1.3 crashes when building intel-media-driver 24.2.0 #88931
Comments
@llvm/issue-subscribers-clang-codegen Author: alice (nekopsykose)
with something very long like https://img.ayaya.dev/G1rZTjcJRL7v
run script + pp source (remove .txt extensions): an attempted minimisation with cvise:
also on debian, has a nice stacktrace:
clang 17 works fine |
This regressed with |
Note that it is an assertion:
so I assume this is some array or vector that is shrunk while references are still pointing to it? |
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: #88931
/cherry-pick c32712d |
Error: Command failed due to missing milestone. |
/cherry-pick c32712d 18.1.5 |
Error: Command failed due to missing milestone. |
@bwendling the bot is trying to warn you that you need to set a milestone. To do so, in the GitHub UI on this page click the gear icon next to "Milestone" (Ctrl+f) then select the 18 release. cc @tru . Sorry if you already pushed to the release/18.x branch. |
Ah! I wasn't aware... |
/cherry-pick c32712d |
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: llvm#88931 (cherry picked from commit c32712d)
/pull-request #89456 |
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: llvm#88931
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: #88931
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: #88931
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: llvm#88931 (cherry picked from commit c32712d)
A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: llvm#88931 (cherry picked from commit c32712d)
with something very long like https://img.ayaya.dev/G1rZTjcJRL7v
run script + pp source (remove .txt extensions):
mhw_vdbox_hcp_hwcmd_g11_X-59d4c7.cpp.txt
mhw_vdbox_hcp_hwcmd_g11_X-59d4c7.sh.txt
an attempted minimisation with cvise:
also on debian, has a nice stacktrace:
clang 17 works fine
The text was updated successfully, but these errors were encountered: