<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:daniel@fooishbar.org" title="Daniel Stone <daniel@fooishbar.org>"> <span class="fn">Daniel Stone</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGSEGV on desktop-shell focus change"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100878">bug 100878</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>SIGSEGV on wl_list_insert
</td>
<td>SIGSEGV on desktop-shell focus change
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGSEGV on desktop-shell focus change"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100878#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGSEGV on desktop-shell focus change"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100878">bug 100878</a>
from <span class="vcard"><a class="email" href="mailto:daniel@fooishbar.org" title="Daniel Stone <daniel@fooishbar.org>"> <span class="fn">Daniel Stone</span></a>
</span></b>
<pre>The clue, however, is in the names of the parameters to the functions. For
instance, you do:
struct wl_list list;
struct {
int something;
struct wl_list link;
} foo;
wl_list_init(&list);
wl_list_insert(&list, &foo->link);
wl_list_remove(&foo->link);
At this point, foo has been removed from list (making its link member
dangling), but the overall list itself is still valid. Trying to remove a list
from itself does not make any real sense; instead, you remove an element from
that list.</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>