Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916313 - media-libs/vulkan-layers-1.3.261: validation layers crash when using specialization constants
Summary: media-libs/vulkan-layers-1.3.261: validation layers crash when using speciali...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://github.com/KhronosGroup/Vulka...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-26 23:11 UTC by darkstalker
Modified: 2024-03-06 16:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,8.96 KB, text/plain)
2023-10-26 23:13 UTC, darkstalker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkstalker 2023-10-26 23:11:50 UTC
Validation layers crash when compiling a shader that uses a specialization constant value as an array size. Program works fine when validation is turned off.

It's the exact problem reported here: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/6370
The issue shows as fixed, so it's probably fixed on next release.

Reproducible: Always

Steps to Reproduce:
1. Run the test code with validation layers enabled

Actual Results:  
The program crashes inside validation layers:

Thread 1 "vvl-crash" received signal SIGSEGV, Segmentation fault.
Instruction::GetConstantValue (this=0x0)
    at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp:74
74	/var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp: No existe el fichero o el directorio.
(gdb) bt full
#0  Instruction::GetConstantValue (this=0x0)
    at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp:74
No locals.
#1  0x00007fffec2f2673 in SPIRV_MODULE_STATE::GetConstantValueById (id=<optimized out>, this=0x555556977390)
    at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_module.cpp:1144
        value = <optimized out>
(...)

Expected Results:  
No crashes or errors
Comment 1 darkstalker 2023-10-26 23:13:16 UTC
Created attachment 873507 [details]
emerge --info

Test code for the crash is on the bug URL
Comment 2 Nick Sarnie gentoo-dev 2023-10-30 01:15:42 UTC
Seems like it should be fixed in the next sdk release, but upstream doesn't know which PR fixed it.