#1003116 NULL pointer dereference getting Vulkan surface properties if DISPLAY points to remote X server

#1003116#5
Date:
2022-01-04 13:19:04 UTC
From:
To:
Hi,

I have a small test Vulkan application that just opens an X11 window and
then asks the installed Vulkan ICDs if they are capable of using this
window as a presentation surface.

When logged in over SSH, $DISPLAY points to a remote server, so my
expectation would be for the nV driver to graciously decline when asked
if this is a valid render target. Instead, I get

==30443== Warning: invalid file descriptor -1 in syscall close()
==30443== Warning: unimplemented fcntl command: 1033
==30443== Jump to the invalid address stated on the next line
==30443==    at 0x0: ???
==30443==    by 0x123B284E: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x123A601B: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x123B2D82: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.460.91.03)
==30443==    by 0x1457033D: vulkan_layer_chassis::GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice_T*, VkSurfaceKHR_T*, VkSurfaceCapabilitiesKHR*) (chassis.cpp:4703)
==30443==    by 0x1098C0: vulkan_setup (vulkan_setup.c:211)
==30443==    by 0x109319: main (vkload.c:27)
==30443==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

In the same way, calling vulkaninfo gives

ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED

with DISPLAY unset, vulkaninfo shows both my GTK980 and the llvmpipe
driver as normal, with no presentable surfaces.

   Simon

#1003116#10
Date:
2022-01-05 03:33:58 UTC
From:
To:
Please file a bug upstream in NVIDIA's forum, there is nothing we can do
about this on the packaging side.

https://forums.developer.nvidia.com/t/if-you-have-a-problem-please-read-this-first/27131

Andreas

#1003116#15
Date:
2026-01-10 10:08:08 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.