microsoft / microsoft/DirectXShaderCompiler

DXC hits SIGSEGV when inner payload is passed to TraceRay

Open
#8,490 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

Description
When the payload passed to TraceRay is a field from another [raypayload] annotated struct, DXC terminates with SIGSEGV.
I expect DXC to either fail to compile with an actual message or to compile successfully.

Steps to Reproduce
Version where the member is of [raypayload] annotated struct: https://godbolt.org/z/bjdMrT37v
Version where the member is of unannotated struct type: https://godbolt.org/z/vWqWrrn5n

Actual Behavior
See godbolt

Environment
See godbolt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the two Godbolt reproductions linked in the issue, especially the case where an inner field of a raypayload-annotated struct is passed to TraceRay. Trace the compiler path for this payload form and verify that the result is either a diagnostic or successful compilation, never a SIGSEGV.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.