Skip to content

SIGSEGV when storing struct with buffer that was picked specifically from array of buffers #7386

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

Open
noahwhygodwhy opened this issue Apr 28, 2025 · 0 comments
Labels
bug Bug, regression, crash needs-triage Awaiting triage

Comments

@noahwhygodwhy
Copy link

noahwhygodwhy commented Apr 28, 2025

Preamble

I acknowledge that storing a buffer binding into a buffer is ridiculous and not in spec. However, it should probably give an error, not sigsegv.

Description

Encountered a SIGSEGV running dxc on a shader when trying to find if there's any existing bugs in having structs contain buffers when compiled to spir-v. (this issue is a different error than the one I was looking for, this one happens when outputting dxil)

Steps to Reproduce

https://godbolt.org/z/8jhTebWY5

When the buffer buff3 is put into the struct and then stored, the compiler outputs a seemingly correct error.

However when a selection from the buff2 buffer array is put into the struct, and then stored, it crashes.

Behavior is identical for buff2[] and buff3 when outputting spirv. It only crashes for dxil.

Actual Behavior

SIGSEGV code 139

Environment

  • DXC version: 1.8.2403.2, 1.8.2502, and trunk
  • Host Operating System: godbolt + windows 11 22H2 - 22621.5189
@noahwhygodwhy noahwhygodwhy added bug Bug, regression, crash needs-triage Awaiting triage labels Apr 28, 2025
@noahwhygodwhy noahwhygodwhy changed the title SIGSEGV when storing struct with buffer that was loaded specifically from array of buffers SIGSEGV when storing struct with buffer that was picked specifically from array of buffers Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage
Projects
Status: No status
Development

No branches or pull requests

1 participant