You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I got this runtime error when trying to run the sokol_app.h example code on Manjaro x86_64.
The trace-back in GDB:
a.out: ../nptl/pthread_mutex_lock.c:428: __pthread_mutex_lock_full: Assertion `e != ESRCH || !robust' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff7c1d615 in raise () from /usr/lib/libc.so.6
(gdb) backtrace
#0 0x00007ffff7c1d615 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff7c06862 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff7c06747 in __assert_fail_base.cold () from /usr/lib/libc.so.6
#3 0x00007ffff7c15bf6 in __assert_fail () from /usr/lib/libc.so.6
#4 0x00007ffff77e44d4 in __pthread_mutex_lock_full () from /usr/lib/libpthread.so.0
#5 0x00007ffff7e7c9d4 in ?? () from /usr/lib/libX11.so.6
#6 0x00007ffff7e85389 in XQueryExtension () from /usr/lib/libX11.so.6
#7 0x00007ffff7e78884 in XInitExtension () from /usr/lib/libX11.so.6
#8 0x00007ffff7a44463 in ?? () from /usr/lib/libGLX_mesa.so.0
#9 0x00007ffff7a454ee in ?? () from /usr/lib/libGLX_mesa.so.0
#10 0x0000555555558e4d in _sapp_glx_init () at src/sokol_app.h:8499
#11 0x000055555555b076 in _sapp_linux_run (desc=0x7fffffffe0e0) at src/sokol_app.h:9337
#12 0x000055555555b24c in main (argc=1, argv=0x7fffffffe278) at src/sokol_app.h:9382
The code used was the example code from the README (with OpenGL core 33 selected):
Hmm, hard to say what's wrong there to be honest, sokol_app.h is not multithreaded anywhere, so that's somewhere inside the GLX implementation. The X11/GLX initialization code should be identical to GLFW. Do you know if GLFW applications work on that machine?
Linking to pthread seems to have fixed it. Both -lpthread and -pthread seem to work. I am now compiling with: gcc src/*.c -o build/a.out -pthread -ldl -lX11 -lXi -lXcursor -lGL. Thank you for the quick response.
Hi, I got this runtime error when trying to run the sokol_app.h example code on Manjaro x86_64.
The trace-back in GDB:
The code used was the example code from the README (with OpenGL core 33 selected):
Compiled with:
gcc src/*.c -o build/a.out -ldl -lX11 -lXi -lXcursor -lGL
The text was updated successfully, but these errors were encountered: