<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 - Shared Memeory leakage in XCreateDrawable"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111681">111681</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Shared Memeory leakage in XCreateDrawable
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>19.1
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86 (IA32)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>not set
</td>
</tr>
<tr>
<th>Component</th>
<td>GLX
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andreasgottschling@outlook.de
</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=145344" name="attach_145344" title="Solving the shared memory leakge problem">attachment 145344</a> <a href="attachment.cgi?id=145344&action=edit" title="Solving the shared memory leakge problem">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=111681&attachment=145344'>[review]</a>
Solving the shared memory leakge problem
In rc/glx/drisw_glx.c
XCreateDrawable(struct drisw_drawable * pdp, int shmid, Display * dpy)
it will be checked at entering function if there is an image already defined
and if so it will get destroyed. Unfortunately this marks the Shared Memory
only as "dest" ( "Mark the segment to be destroyed. The segment will actually
be destroyed only after the last process detaches it.")
But after this call the XShmDetachCall is missing and so shared memory will sum
up until the program is finished
I tested attached patch it works.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>