Program received signal SIGSEGV, Segmentation fault. 0x00007ffff62554ba in DRI2WireToEvent (dpy=0x6f5570, event=0x12bc788, wire=0x12bea40) at ../../../../src/glx/dri2.c:135 135 if (awire->sbc < glxDraw->lastEventSbc) > bt #0 0x00007ffff62554ba in DRI2WireToEvent (dpy=0x6f5570, event=0x12bc788, wire=0x12bea40) at ../../../../src/glx/dri2.c:135 #1 0x00007ffff4434e81 in _XEnq (dpy=dpy@entry=0x6f5570, event=event@entry=0x12bea40) at ../../src/XlibInt.c:788 #2 0x00007ffff4431dcf in handle_response (dpy=dpy@entry=0x6f5570, response=0x12bea40, in_XReply=in_XReply@entry=1) at ../../src/xcb_io.c:339 #3 0x00007ffff4432cc8 in _XReply (dpy=dpy@entry=0x6f5570, rep=rep@entry=0x7fffffff89d0, extra=extra@entry=0, discard=discard@entry=1) at ../../src/xcb_io.c:627 #4 0x00007ffff442e81d in XSync (dpy=0x6f5570, discard=0) at ../../src/Sync.c:44 #5 0x00007ffff6253dca in dri2XcbSwapBuffers (dpy=0x6f5570, pdraw=0x12284a0, target_msc=0, divisor=0, remainder=0) at ../../../../src/glx/dri2_glx.c:817 #6 0x00007ffff6253f36 in dri2SwapBuffers (pdraw=0x12284a0, target_msc=0, divisor=0, remainder=0, flush=1) at ../../../../src/glx/dri2_glx.c:855 #7 0x00007ffff6214d4a in glXSwapBuffers (dpy=0x6f5570, drawable=4194319) at ../../../../src/glx/glxcmds.c:836 ..... more stack frames in my app.