Bug#703726: [PATCH] libcogl12: SIGSEGV in cogl_onscreen_add_frame_callback

2013-03-29 Thread Daniel Vacek
On Fri, Mar 29, 2013 at 1:57 AM, Daniel Vacek wrote: > Hi, > > I can confirm the bug and this patch fixes it. Ok, the problem is elsewhere. This patch won't fix the bug. Instead we must realize there is no bug. I tested the patch with LD_PRELOAD of 'fixed' library and it was all right. But

Bug#703726: [PATCH] libcogl12: SIGSEGV in cogl_onscreen_add_frame_callback

2013-03-28 Thread Daniel Vacek
Hi, I can confirm the bug and this patch fixes it. Basicaly it crashed in cogl_onscreen_add_frame_callback because macro COGL_TAILQ_REMOVE in cogl_onscreen_remove_frame_callback incorrectly removed an element from queue and corrupted the queue and tail pointer. --- a/cogl/cogl-queue.h