<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 1.3.93 crashes when I'm shutting down a Wayland-EGL Qt5 client(assistant-qt5) on both X11 backend and DRM backend. The breakpoint is in wayland library."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73871">73871</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Weston 1.3.93 crashes when I'm shutting down a Wayland-EGL Qt5 client(assistant-qt5) on both X11 backend and DRM backend. The breakpoint is in wayland library.
          </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>icenowylin@gmail.com
          </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>wayland
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>My Qt version is 5.2.0, and qtwayland is the newest git version.

[11:24:54.078] caught signal: 11
[11:24:54.078]   [000000000040824a]  --  (weston)
[11:24:54.078]   [00000000004082b7]  --  (weston)
[11:24:54.078]   [00007f07deffa7f0]  --  (/lib/libpthread.so.0)
[11:24:54.078]   [00007f07e002bc47]  wl_list_remove 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07d60b834f]  --  (/usr/lib/weston/desktop-shell.so)
[11:24:54.078]   [00007f07e002729c]  -- 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e002785c]  wl_resource_destroy 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [000000000040c254]  weston_surface_destroy  (weston)
[11:24:54.078]   [00007f07e002729c]  -- 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e002bbf6]  -- 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e002c19e]  wl_map_for_each 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e0027ab8]  wl_client_destroy 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e0027c4f]  -- 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e0029dc3]  wl_event_loop_dispatch 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.078]   [00007f07e0028215]  wl_display_run 
(/usr/lib/../lib64/libwayland-server.so.0)
[11:24:54.079]   [0000000000407b27]  --  (weston)
[11:24:54.079]   [00007f07dec5e9e5]  __libc_start_main  (/lib/libc.so.6)
[11:24:54.079]   [0000000000407c89]  --  (weston)
Trace/breakpoint trap(Core dumped)

While I am debugging the core, 
#0  0x00007f07deffa6cb in raise (sig=5)
    at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1  <signal handler called>
#2  0x00007f07e002bc47 in wl_list_remove (elm=elm@entry=0x13bb0c0)
    at wayland-util.c:53
#3  0x00007f07d60b834f in destroy_shell_surface (shsurf=0x13bb060)
    at shell.c:2916
#4  0x00007f07e002729c in destroy_resource (element=0x13118c0, 
    data=data@entry=0x0) at wayland-server.c:533
#5  0x00007f07e002785c in wl_resource_destroy (resource=<optimized out>)
    at wayland-server.c:546
#6  0x000000000040c254 in wl_signal_emit (data=0x13bae70, signal=0x13bae78)
    at /usr/include/wayland-server.h:260
#7  weston_surface_destroy (surface=0x13bae70) at compositor.c:1454
#8  weston_surface_destroy (surface=0x13bae70) at compositor.c:1446
#9  0x00007f07e002729c in destroy_resource (element=0x134aa90, 
    data=<optimized out>) at wayland-server.c:533
#10 0x00007f07e002bbf6 in for_each_helper (
    func=func@entry=0x7f07e0027240 <destroy_resource>, 
    data=data@entry=0x7fff65dfe57c, entries=0x12dcc68, entries=0x12dcc68)
    at wayland-util.c:353
#11 0x00007f07e002c19e in wl_map_for_each (map=map@entry=0x12dcc68, 
    func=func@entry=0x7f07e0027240 <destroy_resource>,
...

The code near wayland-utils.c : 53 : 
WL_EXPORT void
wl_list_remove(struct wl_list *elm)
{
        elm->prev->next = elm->next;
        elm->next->prev = elm->prev;
        elm->next = NULL;
        elm->prev = NULL;
}</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>