<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crashes on glXBindTexImageEXT call on surface whose Window got destroyed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109596">109596</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crashes on glXBindTexImageEXT call on surface whose Window got destroyed
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>18.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/swrast
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>samuel.thibault@ens-lyon.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=143345" name="attach_143345" title="proposed fix">attachment 143345</a> <a href="attachment.cgi?id=143345&action=edit" title="proposed fix">[details]</a></span>
proposed fix
Hello,
As reported on
<a href="https://gitlab.com/compiz/compiz-core/issues/141">https://gitlab.com/compiz/compiz-core/issues/141</a>
compiz is getting crashes during a glXBindTexImageEXT call about a window
getting unmapped. This happens in the swraster. I traced it into
swrastGetDrawableInfo(), whose XGetGeometry call fails because the window is no
more. The attached patch avoids the issue, I tend to think that at the very
least an assert should be used to avoid leaking uninitialized values, but
returning an empty geometry would avoid a crash in such case, the caller just
has to be able to cope with it.
If this (calling glXBindTexImageEXT on a drawable whose Window is no more) is
considered to be an issue in the application, please answer to
<a href="https://gitlab.com/compiz/compiz-core/issues/141">https://gitlab.com/compiz/compiz-core/issues/141</a>
Samuel</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>