<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [IVB SNA] sna_dri2_reuse_buffer:370 assertion 'kgem_bo_flink(&to_sna_from_drawable(draw)->kgem, get_private(buffer)->bo) == buffer->name' failed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89903#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [IVB SNA] sna_dri2_reuse_buffer:370 assertion 'kgem_bo_flink(&to_sna_from_drawable(draw)->kgem, get_private(buffer)->bo) == buffer->name' failed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89903">bug 89903</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>I couldn't spot any obvious reason for a stale pointer (all the unrefs cleared
the pointer). So I had to look for subtle reasons like being interrupted by a
signal at just the wrong moment:
commit be0fc3ce20fda064d68f38e24717552222d1fd74
Author: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
Date: Sun Apr 5 15:46:27 2015 +0100
sna: Block signals while releasing cursor under modeset
Otherwise we may process a SIGIO moving the cursor away from the CRTC
causing us to remove the cursor and then process a stale pointer inside
the modeset after the signal is complete.
Reported-by: Chris Bainbrigde <<a href="mailto:chris.bainbridge@gmail.com">chris.bainbridge@gmail.com</a>>
References: <a class="bz_bug_link
bz_status_NEW "
title="NEW - [IVB SNA] sna_dri2_reuse_buffer:370 assertion 'kgem_bo_flink(&to_sna_from_drawable(draw)->kgem, get_private(buffer)->bo) == buffer->name' failed"
href="show_bug.cgi?id=89903">https://bugs.freedesktop.org/show_bug.cgi?id=89903</a>
Signed-off-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>