<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 --- - SIGSEGV when client is stopped and weston-desktop-shell tries to set the cursor image"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66001">66001</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>SIGSEGV when client is stopped and weston-desktop-shell tries to set the cursor image
          </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>samuel_ig@yahoo.es
          </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>Created <span class=""><a href="attachment.cgi?id=81154" name="attach_81154" title="Patch that fixes the SIGSEGV">attachment 81154</a> <a href="attachment.cgi?id=81154&action=edit" title="Patch that fixes the SIGSEGV">[details]</a></span>
Patch that fixes the SIGSEGV

weston (master) commit 8a4a9eb2e4c6c6c0ba98e2d3afdb796f8745eaa5

I executed weston-terminal, stop it and try to click on it or move the window.
Then weston-desktop-shell failed with the following GDB output

(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
pointer_handle_motion (data=0x1655f40, pointer=<optimized out>,
time=1707320031,
    sx_w=131840, sy_w=131840) at window.c:2818
2818                    cursor = input->focus_widget->default_cursor;
(gdb)

The attached patch fixes this bug.</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>