microsoft / microsoft/DirectXShaderCompiler
[SPIR-V] Compiler crash with static ResourceDescriptorHeap (lib_6_6 target)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Description
Using:
static ResourceType some_var_name = ResourceDescriptorHeap[...];
In a lib_6_6 target (closest hit shader) results in a compiler crash.
Note: it appears to be fixed in the trunk version of the compiler.
Steps to Reproduce
Compiler explorer
-spirv -T lib_6_6 -E closest_hit_main
Actual Behavior
Program terminated with signal: SIGSEGV
Compiler returned: 139
Environment
- DXC version 1.9.2602
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Compiler Explorer reproduction linked in the issue and run it with -spirv -T lib_6_6 -E closest_hit_main using DXC 1.9.2602. Compare the result with the trunk compiler, then trace the relevant compiler path to determine why the static ResourceDescriptorHeap case crashes. Done means the reproducer no longer produces SIGSEGV and the behavior is covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100