<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - spice server crashes when not using qxl"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94192">94192</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>spice server crashes when not using qxl
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>server
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lvenhoda@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=121809" name="attach_121809" title="Script used to run QEMU">attachment 121809</a> <a href="attachment.cgi?id=121809&action=edit" title="Script used to run QEMU">[details]</a></span>
Script used to run QEMU

When running qemu with upstream spice server, and without qxl enabled, qemu
crashes. The crash was introduced with commit 1f210080609f2c00b4d1859eb0b363a38
"Remove use of global 'reds' from AgentMsgFilter" in spice server, specifically
this part:

reds->agent_state.write_filter.use_client_monitors_config=
     reds_use_client_monitors_config(reds);
reds->agent_state.read_filter.use_client_monitors_config =
     reds_use_client_monitors_config(reds);

The crash happens in function dpy_ui_info_supported() from qemu ui/console.c,
because QemuConsole *con == NULL.

The issue might be connected to commit aadb94557011af2466dd7e678a1de45415ce424a
"Remove global 'dispatchers', 'num_active_workers' variables"

Callstack:
dpy_ui_info_supported(), qemu ui/console.c
interface_client_monitors_config(), qemu ui/spice-display.c
red_dispatcher_use_client_monitors_config(), spice server/red-dispatcher.c
reds_use_client_monitors_config(), spice server/reds.c

Script for runnign QEMU attached</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>