<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - weston_release_seat() double frees focus_state"
href="https://bugs.freedesktop.org/show_bug.cgi?id=67231">67231</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>weston_release_seat() double frees focus_state
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rdp.effort@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>weston
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr></table>
<p>
<div>
<pre>I can reproduce this valgrind error:
using config in current working directory: ./weston.ini
using config in current working directory: ./weston.ini
using config in current working directory: ./weston.ini
[23:30:32.733] unable to checkDescriptor for 0x8812c30
==4837== Invalid write of size 8
==4837== at 0x4E3DE77: wl_list_remove (wayland-util.c:53)
==4837== by 0xC8CA0CC: focus_state_destroy (shell.c:421)
==4837== by 0x4102EB: weston_seat_release (wayland-server.h:171)
==4837== by 0x884587E: rdp_peer_context_free (compositor-rdp.c:603)
==4837== by 0x8CF0F69: freerdp_peer_context_free (peer.c:405)
==4837== by 0x8845BD7: rdp_client_activity (compositor-rdp.c:622)
==4837== by 0x4E3C1A2: wl_event_loop_dispatch (event-loop.c:421)
==4837== by 0x4E3A8F4: wl_display_run (wayland-server.c:836)
==4837== by 0x4083C6: main (compositor.c:3398)
==4837== Address 0xccfc6a8 is 24 bytes inside a block of size 120 free'd
==4837== at 0x4C2BA6C: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4837== by 0x4102EB: weston_seat_release (wayland-server.h:171)
==4837== by 0x884587E: rdp_peer_context_free (compositor-rdp.c:603)
==4837== by 0x8CF0F69: freerdp_peer_context_free (peer.c:405)
==4837== by 0x8845BD7: rdp_client_activity (compositor-rdp.c:622)
==4837== by 0x4E3C1A2: wl_event_loop_dispatch (event-loop.c:421)
==4837== by 0x4E3A8F4: wl_display_run (wayland-server.c:836)
==4837== by 0x4083C6: main (compositor.c:3398)
==4837==
with this simple actions:
* launch the RDP compositor, (valgrind output/src/weston
--backend=rdp-backend.so --width=800 --height=600)
* connect with xfreerdp client (xfreerdp /v:127.0.0.1)
* open 2 weston-terminal, click on the first one to grab the focus
* kill your xfreerdp, and you have the above backtrace
It matches the second backtrace of #65913, i think we were too fast to close
it.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>