Vulkan-Utility-Libraries
Vulkan-Utility-Libraries copied to clipboard
Validation layer trigger segment fault when create instance on ubuntu 22.04
Environment:
- OS: Ubuntu 22.04.4 LTS
- GPU and driver version: Intel Corporation AlderLake-S GT1 (rev 0c) i915
- SDK or header version if building from repo: ef846ac0883cde5e69ced0e7d7af59fe92f34e25
- Options enabled (synchronization, best practices, etc.): VK_LAYER_KHRONOS_validation
Describe the Issue
When enable the vulkan validation layer, the vulkan program will crash because a segmentation fault inside the vulkan validation layer(to be more specific, the Vulkan-Utility-Libraries it used):
The segmentation fault happens when try to convert a std::string to std::filesystem::path. After a quick investigation, it seems this bug is related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90050
Expected behavior
program should not crash.
Valid Usage ID No valid usage ID.
Additional context
Local g++ version:
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
The validation layer is built by
cmake -S . -B build -D UPDATE_DEPS=ON -D BUILD_WERROR=ON -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
The program I run is:
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
./my_vulkan_program
Then to know the backtrace I build the validation layer from source code, and then run
export VK_LAYER_PATH=/path_to_/Vulkan-ValidationLayers/build/layers
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
./my_vulkan_program