I encounter the following crash on RHEL 7.0 when I run a multithreaded video rendering application using GLFW and OpenGL. OpenGL version is 2.1 and MESA version is 9.3.0
Following is the back trace of the multi-threaded program I am working on:
***********************************************************************************************************************
#0 0x00007f0970e75bb9 in __GI_raise (sig=sig entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f0970e78fc8 in __GI_abort () at abort.c:89
#2 0x00007f0970e6ea76 in __assert_fail_base (
fmt=0x7f0970fc0370 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion entry=0x7f096f7c9615 "!c->out.queue_len",
file=file entry=0x7f096f7c9600 "../../src/xcb_conn.c",
line=line entry=186, function=function entry=0x7f096f7c9630 "write_vec")
at assert.c:92
#3 0x00007f0970e6eb22 in __GI___assert_fail (
assertion=0x7f096f7c9615 "!c->out.queue_len",
file=0x7f096f7c9600 "../../src/xcb_conn.c", line=186,
function=0x7f096f7c9630 "write_vec") at assert.c:101
#4 0x00007f096f7bde5b in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#5 0x00007f096f7be191 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#6 0x00007f096f7be8a7 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#7 0x00007f096f7be9c8 in xcb_take_socket ()
from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#8 0x00007f0971d84a38 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#9 0x00007f0971d85259 in _XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007f0971d87c75 in _XGetRequest ()
from /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f0971d810bb in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
---Type <return> to continue, or q <return> to quit---
#12 0x00007f09720c075a in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#13 0x000000000040dc89 in _glfwPlatformSwapBuffers ()
#14 0x0000000000404e00 in glfwSwapBuffers ()
#15 0x0000000000403e4f in thread_main (data=0x7fff243ec830) at threads.c:67
#16 0x000000000040f747 in _thrd_wrapper_function (aArg=0x2242f30)
at tinycthread.c:346
#17 0x00007f097120d182 in start_thread (arg=0x7f096b01d700)
at pthread_create.c:312
#18 0x00007f0970f39fbd in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Please suggest the resolution.