Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 916313

Summary: media-libs/vulkan-layers-1.3.261: validation layers crash when using specialization constants
Product: Gentoo Linux Reporter: darkstalker <slayerbeast>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Severity: normal CC: jstein, sarnex
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info

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:
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-
74	/var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk- 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-
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-
        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.