Bug#993994: vulkan-validationlayers: Requesting VK_LAYER_KHRONOS_validation crash with undefined symbol: _Z14GetEnvironmentB5cxx11PKc
Package: vulkan-validationlayers
Version: 1.2.189.0-1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: kienan.stewart@burntworld.ca
Dear Maintainer,
I am developing an application that uses vulkan, and for debugging includes the validation layer. After a recent upgrade to 1.2.189.0-1, the application began crashing with the following error
symbol lookup error: /lib/x86_64-linux-gnu/libVkLayer_khronos_validation.so: undefined symbol: _Z14GetEnvironmentB5cxx11PKc
I think the previous working version I had installed was 1.2.162.0-1.
I am able to run the application when not requesting the validation layer. I was also able to reproduce this issue by doing the following
* Opening qrenderdoc
* Selecting a vulkan-based application, eg. /usr/bin/vkcube (from vulkan-tools)
* Running the application with the default settings (will work)
* Now, check the "Enable API Validation" under the Launch Application capture options
* Running the application will cause it to immediately crash
/usr/bin/vkcube: symbol lookup error: /lib/x86_64-linux-gnu/libVkLayer_khronos_validation.so: undefined symbol: _Z14GetEnvironmentB5cxx11PKc
This appears related to upstream issue https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/2941 where jengelh resolved it in OpenSuse by prefixing the GetEnvironment declaration in layers/vk_layer_config.h with VK_LAYER_EXPORT. Ref: https://build.opensuse.org/package/view_file/openSUSE:Factory/vulkan-validationlayers/ver.diff?expand=1
thanks,
kienan
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages vulkan-validationlayers depends on:
ii libc6 2.32-2
ii libgcc-s1 11.2.0-4
ii libstdc++6 11.2.0-4
vulkan-validationlayers recommends no packages.
vulkan-validationlayers suggests no packages.
-- no debconf information
Reply to: