[cairo-bugs] [Bug 91967] Assertion "(_cairo_atomic_int_get (&(&surface->ref_count)->ref_count) > 0)"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 17 14:42:38 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=91967

Jaroslav Škarvada <jskarvad at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #124212|0                           |1
        is obsolete|                            |

--- Comment #35 from Jaroslav Škarvada <jskarvad at redhat.com> ---
Created attachment 124576
  --> https://bugs.freedesktop.org/attachment.cgi?id=124576&action=edit
Proposed fix

I received report, that the provided reproducer can still crash cairo.

The problem is that cairo doesn't count that the drawable can disappear any
time during processing. So it can call X calls on invalid drawable. Which is
beginning of all troubles. The attached patch added more NOOP handlers to X
calls which can be called with invalid drawable.

I am not sure whether it is the right way to go or whether it's known cairo
limitation that the drawable mustn't disappear. Maybe this should be fixed in
wnck. But it needs to be fixed somewhere. The problem is very easy to trigger -
it's enough if an X application just removes or simply changes it's icon in a
wrong time.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20160617/8d7185e2/attachment.html>


More information about the cairo-bugs mailing list