[Bug 1022156] New: vulkaninfo ends with segmentation fault
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156 Bug ID: 1022156 Summary: vulkaninfo ends with segmentation fault Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 3rd Party Driver Assignee: xorg-maintainer-bugs@forge.provo.novell.com Reporter: petr@cervinka.net QA Contact: sndirsch@suse.com Found By: --- Blocker: --- I wanted to try vulkan on latest Tumbleweed snapshot, but vulkaninfo ends with segmentation fault. Hw is Radeon r9 380x using standard amdgpu driver.
vulkaninfo =========== VULKAN INFO ===========
Vulkan API Version: 1.0.32 INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_core_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_image.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_object_tracker.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_parameter_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_swapchain.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_threading.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_unique_objects.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_core_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_image.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_object_tracker.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_parameter_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_swapchain.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_threading.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_unique_objects.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /home/petr/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /home/petr/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/icd.d/radeon_icd.x86_64.json, version "1.0.0" Segmentation fault (core dumped) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c1
--- Comment #1 from Petr Cervinka
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c2
--- Comment #2 from Petr Cervinka
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
Ondřej Súkup
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c3
Henning W
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c4
Jure Repinc
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c5
Jan Engelhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c6
Jan Engelhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c7
--- Comment #7 from Jan Engelhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c8
--- Comment #8 from Jure Repinc
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c9
--- Comment #9 from Petr Cervinka
I do not have any AMD GPU hardware around to test, and the Intel driver seems to fly. It has been known before that mixing e.g. system libGL and NVIDIA libGL can lead to problems. Are you by chance using any part of a proprietary driver?
No, only standard (no proprietary) amdgpu driver shipped with Tumbleweed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c10
--- Comment #10 from Jan Engelhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c11
--- Comment #11 from Petr Cervinka
Newer vulkan-1.0.39.1 is available in X11:Wayland if you want to try.
Unfortunately, same core dump after upgrade to 1.0.39.1: =========== VULKAN INFO =========== Vulkan API Version: 1.0.39 INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_core_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_image.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_object_tracker.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_parameter_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_swapchain.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_threading.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /etc/vulkan/explicit_layer.d/VkLayer_unique_objects.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_core_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_image.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_object_tracker.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_parameter_validation.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_swapchain.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_threading.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/explicit_layer.d/VkLayer_unique_objects.json, version "1.0.0" INFO: [loader] Code 0 : Found ICD manifest file /usr/share/vulkan/icd.d/radeon_icd.x86_64.json, version "1.0.0" Segmentation fault (core dumped) Reading symbols from vulkaninfo...Reading symbols from /usr/lib/debug/usr/bin/vulkaninfo.debug...done. done. [New LWP 3616] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `vulkaninfo'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000001c266 in ?? () (gdb) bt #0 0x000000000001c266 in ?? () #1 0x00007fe83d00cfa2 in radv_lookup_entrypoint (name=<optimized out>) at radv_entrypoints.c:857 #2 0x00007fe8455bf346 in loader_scanned_icd_add (api_version=4194307, filename=0x7ffd38113840 "/usr/lib64/libvulkan_radeon.so", icd_tramp_list=0xf2aa50, inst=0xf2aa10) at /usr/src/debug/Vulkan-LoaderAndValidationLayers-1.0.39.1/loader/loader.c:1765 #3 loader_icd_scan (inst=inst@entry=0xf2aa10, icd_tramp_list=icd_tramp_list@entry=0xf2aa50) at /usr/src/debug/Vulkan-LoaderAndValidationLayers-1.0.39.1/loader/loader.c:3430 #4 0x00007fe8455c4e9e in vkCreateInstance (pCreateInfo=pCreateInfo@entry=0x7ffd38113df0, pAllocator=pAllocator@entry=0x0, pInstance=pInstance@entry=0x7ffd38113e40) at /usr/src/debug/Vulkan-LoaderAndValidationLayers-1.0.39.1/loader/trampoline.c:368 #5 0x0000000000401797 in AppCreateInstance (inst=0x7ffd38113e40) at /usr/src/debug/Vulkan-LoaderAndValidationLayers-1.0.39.1/demos/vulkaninfo.c:695 #6 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/Vulkan-LoaderAndValidationLayers-1.0.39.1/demos/vulkaninfo.c:1476 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c12
--- Comment #12 from Petr Cervinka
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c13
--- Comment #13 from Petr Cervinka
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c14
Keith Hizal
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c15
Keith Hizal
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c16
--- Comment #16 from Stefan Dirsch
It seems that, in my testing using an RX 460, forkbomb's Mesa repo (https://build.opensuse.org/project/show/home:forkbomb:turboAMD-stable) is not affected by this bug.
The question is then, what is the difference between Factory's Mesa/LLVM and Forkbomb's Mesa/LLVM?
Completely different Mesa/llvm versions? I'm not maintaining this Forkbomb's repo, so I can't say ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c17
--- Comment #17 from Keith Hizal
(In reply to Keith Hizal from comment #14)
It seems that, in my testing using an RX 460, forkbomb's Mesa repo (https://build.opensuse.org/project/show/home:forkbomb:turboAMD-stable) is not affected by this bug.
The question is then, what is the difference between Factory's Mesa/LLVM and Forkbomb's Mesa/LLVM?
Completely different Mesa/llvm versions? I'm not maintaining this Forkbomb's repo, so I can't say ...
LLVM5 is actually a misnomer as explained here: https://build.opensuse.org/package/show/home:forkbomb:turboAMD-stable/llvm5 Also, even when Forkbomb and Factory were on the same version of Mesa, only Forkbomb's RADV-Vulkan worked. Upstream has suggested that it may have to deal with LTO: https://bugs.freedesktop.org/show_bug.cgi?id=99591#c6 . -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
Antoine Belvire
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c18
Michal Srb
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c19
Michal Srb
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c20
Vit Pelcak
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c21
--- Comment #21 from Michal Srb
The same problem happens on Intel.
Still crashing in libvulkan_radeon.so. (The vulkan loader examines all available layers and ICDs. It is ok that it loads libvulkan_radeon.so even on Intel.) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c22
--- Comment #22 from Michal Srb
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c23
--- Comment #23 from Thiago Macieira
From https://bugs.freedesktop.org/show_bug.cgi?id=102010#c3: BTW, looks like SUSE is building LLVM with BUILD_SHARED_LIBS=ON, which is a bad idea. They should build it with LLVM_BUILD_LLVM_DYLIB=ON instead. Please pass this on to them. (This problem might happen regardless though)
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c24
--- Comment #24 from Petr Cervinka
Following command can be used to test the workaround: patchelf --add-needed libLLVMCodeGen.so.4 libvulkan_radeon.so
After this the vulkaninfo command doesn't crash anymore.
I can confirm that vulkaninfo doesn't crash (on R9 380X) with this recommendation. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c25
--- Comment #25 from Michal Srb
From https://bugs.freedesktop.org/show_bug.cgi?id=102010#c3:
BTW, looks like SUSE is building LLVM with BUILD_SHARED_LIBS=ON, which is a bad idea. They should build it with LLVM_BUILD_LLVM_DYLIB=ON instead. Please pass this on to them. (This problem might happen regardless though)
Indeed. I have learned about this just yesterday. Working on it in bug 1049703. It will hopefully fix multiple bugs, including this one. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c26
--- Comment #26 from Keith Hizal
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c27
Linus Kardell
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c28
--- Comment #28 from Linus Kardell
I too am getting segfaults when trying to use Vulkan on Tumbleweed, both with Intel and with proprietary Nvidia. It worked on Leap though (at least with Nvidia).
Nevermind. Seems it happens just due to having Radeon Vulkan installed, even though there is no Radeon card. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156
http://bugzilla.opensuse.org/show_bug.cgi?id=1022156#c29
Michal Srb
participants (1)
-
bugzilla_noreply@novell.com