Skip to content

[SPIR-V] Generated SPIR-V debug information makes RenderDoc to crash #8566

Description

@gjaegy

Description

When trying to debug a pixel shader, RenderDoc crashes, likely due to invalid debug information.

Steps to Reproduce

dxc.exe def_final_composition_bug.txt -E mainfrag -T ps_6_0 -spirv -fspv-target-env=vulkan1.1 -Wall -Wno-unused-const-variable -D imBINDLESS=1 -fspv-extension=SPV_EXT_descriptor_indexing -fspv-extension=SPV_KHR_non_semantic_info -fspv-debug=vulkan-with-source

def_final_composition_bug.txt

Actual Behavior

Debugging the fragment shader with RenderDoc leads to the tool crashing immediately.
SPIR-V is very likely incorrect but I'm unable to say which line(s) is/are the culprit(s).

Environment

  • DXC version
    dxcompiler.dll: 1.10(5360-c1e1fc78)(1.10.2605.24) - 1.10.2605.24 (c1e1fc7)
    and
    dxcompiler.dll: 1.9(5191-d355aa83)(1.9.2602.24) - 1.9.2602.24 (d355aa8)
    and
    dxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f7)

  • Host Operating System Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions