==708== Invalid read of size 8 ==708== at 0xBCA4400: sna_dri2_add_event (sna_dri2.c:1453) ==708== by 0xBCA6034: sna_dri2_schedule_flip (sna_dri2.c:2543) ==708== by 0xBCA6ADE: sna_dri2_schedule_swap (sna_dri2.c:2884) ==708== by 0x5645E7: DRI2SwapBuffers (dri2.c:1160) ==708== by 0x565E5B: ProcDRI2Dispatch (dri2ext.c:413) ==708== by 0x4375C6: Dispatch (dispatch.c:432) ==708== by 0x43B755: dix_main (main.c:296) ==708== by 0x66DDFFF: (below main) (in /usr/lib/libc-2.19.so) ==708== Address 0xe0eacb0 is 80 bytes inside a block of size 128 free'd ==708== at 0x4C2999C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==708== by 0xBCA412E: sna_dri2_event_free (sna_dri2.c:1362) ==708== by 0xBCA5C38: sna_dri2_flip_event (sna_dri2.c:2392) ==708== by 0xBCA453D: sna_dri2_flip_handler (sna_dri2.c:1506) ==708== by 0xBBFDB59: sna_mode_wakeup (sna_display.c:6837) ==708== by 0xBC00784: sna_wakeup_handler (sna_driver.c:772) ==708== by 0x43C2D9: WakeupHandler (dixutils.c:426) ==708== by 0x590C86: WaitForSomething (WaitFor.c:229) ==708== by 0x4373E0: Dispatch (dispatch.c:361) ==708== by 0x43B755: dix_main (main.c:296) ==708== by 0x66DDFFF: (below main) (in /usr/lib/libc-2.19.so) ==708== ==708== Invalid read of size 8 ==708== at 0xBCA43F4: sna_dri2_add_event (sna_dri2.c:1454) ==708== by 0xBCA6034: sna_dri2_schedule_flip (sna_dri2.c:2543) ==708== by 0xBCA6ADE: sna_dri2_schedule_swap (sna_dri2.c:2884) ==708== by 0x5645E7: DRI2SwapBuffers (dri2.c:1160) ==708== by 0x565E5B: ProcDRI2Dispatch (dri2ext.c:413) ==708== by 0x4375C6: Dispatch (dispatch.c:432) ==708== by 0x43B755: dix_main (main.c:296) ==708== by 0x66DDFFF: (below main) (in /usr/lib/libc-2.19.so) ==708== Address 0xe0eacb0 is 80 bytes inside a block of size 128 free'd ==708== at 0x4C2999C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==708== by 0xBCA412E: sna_dri2_event_free (sna_dri2.c:1362) ==708== by 0xBCA5C38: sna_dri2_flip_event (sna_dri2.c:2392) ==708== by 0xBCA453D: sna_dri2_flip_handler (sna_dri2.c:1506) ==708== by 0xBBFDB59: sna_mode_wakeup (sna_display.c:6837) ==708== by 0xBC00784: sna_wakeup_handler (sna_driver.c:772) ==708== by 0x43C2D9: WakeupHandler (dixutils.c:426) ==708== by 0x590C86: WaitForSomething (WaitFor.c:229) ==708== by 0x4373E0: Dispatch (dispatch.c:361) ==708== by 0x43B755: dix_main (main.c:296) ==708== by 0x66DDFFF: (below main) (in /usr/lib/libc-2.19.so) ==708== ==708== ==708== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==708== Access not within mapped region at address 0x4F ==708== at 0xBCA4400: sna_dri2_add_event (sna_dri2.c:1453) ==708== by 0xBCA6034: sna_dri2_schedule_flip (sna_dri2.c:2543) ==708== by 0xBCA6ADE: sna_dri2_schedule_swap (sna_dri2.c:2884) ==708== by 0x5645E7: DRI2SwapBuffers (dri2.c:1160) ==708== by 0x565E5B: ProcDRI2Dispatch (dri2ext.c:413) ==708== by 0x4375C6: Dispatch (dispatch.c:432) ==708== by 0x43B755: dix_main (main.c:296) ==708== by 0x66DDFFF: (below main) (in /usr/lib/libc-2.19.so) ==708== If you believe this happened as a result of a stack ==708== overflow in your program's main thread (unlikely but ==708== possible), you can try to increase the size of the ==708== main thread stack using the --main-stacksize= flag. ==708== The main thread stack size used in this run was 8388608. ==708== ==708== HEAP SUMMARY: ==708== in use at exit: 7,608,460 bytes in 19,489 blocks ==708== total heap usage: 158,270 allocs, 138,781 frees, 66,241,841 bytes allocated ==708== ==708== LEAK SUMMARY: ==708== definitely lost: 1,406 bytes in 30 blocks ==708== indirectly lost: 773 bytes in 6 blocks ==708== possibly lost: 1,978,609 bytes in 4,796 blocks ==708== still reachable: 5,627,672 bytes in 14,657 blocks ==708== suppressed: 0 bytes in 0 blocks ==708== Rerun with --leak-check=full to see details of leaked memory ==708== ==708== For counts of detected and suppressed errors, rerun with: -v ==708== ERROR SUMMARY: 2984705 errors from 702 contexts (suppressed: 1 from 1)