You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segfault when calling sizeof() on templated typeΒ #7510
We just upgraded to the latest May 2025 release, from a previous self-compiled build at 47e11af. One of our shaders triggers a SIGSEGV right inside DXC. This seems to be caused by calling sizeof() on a templated type, regardless of what the struct contains. It doesn't seem to need to use T in any capacity for this to trigger.
The problem here is that the template isn't instantiated before we do some HLSL-specific testing. Here's a workaround while we try to resolve the issue:
Activity
MarijnS95 commentedon Jun 4, 2025
In fact we can reduce the bisection range to just 18 commits. We were previously on 556fc5b for SM6.9, which is also directly reachable by https://github.com/microsoft/DirectXShaderCompiler/releases/tag/v1.8.2505:
556fc5b...v1.8.2505
llvm-beanz commentedon Jun 4, 2025
This is a regression introduced in #7452.
Tagging Tex Riddell (@tex3d) for visibility.
llvm-beanz commentedon Jun 4, 2025
The problem here is that the template isn't instantiated before we do some HLSL-specific testing. Here's a workaround while we try to resolve the issue:
https://godbolt.org/z/zEzjj1Peb
Require complete types in some missing places
Require complete types in some missing places (microsoft#7511)
Require complete types in some missing places (microsoft#7511)
Require complete types in some missing places (#7511) (#7520)