I am posting this here rather than the Github Issue tracker because I doubt it is actually a bug in glfw, but I would appreciate any help in fixing it.
On this specific PC
glfwTerminate is reliably causing a segfault somewhere in
XCloseDisplay. Output of the
glfwinfo test in gdb:
GLFW header version: 3.2.0 GLFW library version: 3.2.0 GLFW library version string: "3.2.0 X11 GLX EGL clock_gettime /dev/js Xf86vm shared" OpenGL context version string: "4.5.0 NVIDIA 352.79" OpenGL context version parsed by GLFW: 4.5.0 OpenGL context flags (0x00000000): OpenGL context flags parsed by GLFW: OpenGL profile mask (0x00000000): unknown OpenGL profile mask parsed by GLFW: compat OpenGL robustness strategy (0x00008261): none OpenGL robustness strategy parsed by GLFW: none OpenGL context renderer string: "GeForce GTX 770/PCIe/SSE2" OpenGL context vendor string: "NVIDIA Corporation" OpenGL context shading language version: "4.50 NVIDIA" OpenGL framebuffer: red: 8 green: 8 blue: 8 alpha: 8 depth: 24 stencil: 8 samples: 0 sample buffers: 0 accum red: 16 accum green: 16 accum blue: 16 accum alpha: 16 aux buffers: 4 Vulkan loader: missing Program received signal SIGSEGV, Segmentation fault. 0x00007ffff2054560 in ?? () (gdb) bt #0 0x00007ffff2054560 in ?? () #1 0x00007ffff6ddfe22 in XCloseDisplay () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #2 0x00007ffff7bc93ce in _glfwPlatformTerminate () from /home/me/Development/glfw-3.2-build/src/libglfw.so.3 #3 0x00007ffff7bc15ec in glfwTerminate () from /home/me/Development/glfw-3.2-build/src/libglfw.so.3 #4 0x000000000040c2a5 in main ()
I am mystified as to the cause of this error, as everything was working fine until recently. It’s also strange that all of my code runs fine (creating window, loading OpenGL function pointers, rendering, etc) up until this segfault at the end. Any ideas?