<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 --- - Valgrind error on shutdown"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68157">68157</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Valgrind error on shutdown
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rob@robster.org.uk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>When running with the RDP backend (which removes and adds seats) the following
valgrind error occurs on shutdown:
valgrind shows:
==6506== Invalid read of size 8
==6506== at 0x419F89: unbind_input_method (text-backend.c:743)
==6506== by 0x4E3AA8D: destroy_resource (wayland-server.c:434)
==6506== by 0x4E407B9: for_each_helper (wayland-util.c:353)
==6506== by 0x4E407F5: wl_map_for_each (wayland-util.c:359)
==6506== by 0x4E3ADA5: wl_client_destroy (wayland-server.c:574)
==6506== by 0x41A4E8: text_backend_notifier_destroy (text-backend.c:931)
==6506== by 0x408EE8: wl_signal_emit (wayland-server.h:171)
==6506== by 0x41058D: main (compositor.c:3429)
==6506== Address 0x8825a30 is 112 bytes inside a block of size 120 free'd
==6506== at 0x4C2AF7C: free (vg_replace_malloc.c:446)
==6506== by 0x41A111: input_method_notifier_destroy (text-backend.c:797)
==6506== by 0x4106A8: wl_signal_emit (wayland-server.h:171)
==6506== by 0x413DE5: weston_seat_release (input.c:1573)
==6506== by 0x88343B3: rdp_peer_context_free (compositor-rdp.c:603)
==6506== by 0x883445D: rdp_client_activity (compositor-rdp.c:622)
==6506== by 0x4E3C967: wl_event_source_fd_dispatch (event-loop.c:86)
==6506== by 0x4E3D318: wl_event_loop_dispatch (event-loop.c:421)
==6506== by 0x4E3B615: wl_display_run (wayland-server.c:836)
==6506== by 0x41056C: main (compositor.c:3423)
==6506==
==6506== Invalid write of size 8
==6506== at 0x419F95: unbind_input_method (text-backend.c:745)
==6506== by 0x4E3AA8D: destroy_resource (wayland-server.c:434)
==6506== by 0x4E407B9: for_each_helper (wayland-util.c:353)
==6506== by 0x4E407F5: wl_map_for_each (wayland-util.c:359)
==6506== by 0x4E3ADA5: wl_client_destroy (wayland-server.c:574)
==6506== by 0x41A4E8: text_backend_notifier_destroy (text-backend.c:931)
==6506== by 0x408EE8: wl_signal_emit (wayland-server.h:171)
==6506== by 0x41058D: main (compositor.c:3429)
==6506== Address 0x88259c0 is 0 bytes inside a block of size 120 free'd
==6506== at 0x4C2AF7C: free (vg_replace_malloc.c:446)
==6506== by 0x41A111: input_method_notifier_destroy (text-backend.c:797)
==6506== by 0x4106A8: wl_signal_emit (wayland-server.h:171)
==6506== by 0x413DE5: weston_seat_release (input.c:1573)
==6506== by 0x88343B3: rdp_peer_context_free (compositor-rdp.c:603)
==6506== by 0x883445D: rdp_client_activity (compositor-rdp.c:622)
==6506== by 0x4E3C967: wl_event_source_fd_dispatch (event-loop.c:86)
==6506== by 0x4E3D318: wl_event_loop_dispatch (event-loop.c:421)
==6506== by 0x4E3B615: wl_display_run (wayland-server.c:836)
==6506== by 0x41056C: main (compositor.c:3423)
Copied from <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - weston_release_seat() double frees focus_state"
href="show_bug.cgi?id=67231">https://bugs.freedesktop.org/show_bug.cgi?id=67231</a> (about a
different but similar issue)</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>