<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 --- - qemu crash if I reboot a windows guest when "past / copy clipboard" function is enabled ( vd_agent )"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83284">83284</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>qemu crash if I reboot a windows guest when "past / copy clipboard" function is enabled ( vd_agent )
          </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>mister.freeman@laposte.net
          </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>win32 vd_agent
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I use archlinux 64 bits as OS host, and qemu 2.1.0-2,

with qemu I run a windows XP and Windows 7 32 bits virtual machines with spice
windows drivers from the last official spice drivers package (
spice-guest-tools-0.74.exe ),

I notice if I enable the "past copy" function from spice then I get a weird
behaviour :

--> all is ok ( past copy between host and guest works ) as long I don't reboot
the virtual machine ( for example if I shutdown the virtual machine, and then
if I start immediately the virtual machine there is no problem )

--> but If I select "reboot/restart" in the virtual machine ( windows XP/7 menu
"reboot" ) then I get a blue screen of death ( BSOD ) on the next boot of
windows XP/7

the error in systemd log :

qemu-system-x86[2230]: segfault at 0 ip 00007f26904eca1b sp 00007fff02c2fd90
error 4 in libspice-server.so.1.9.0[7f26904e0000+11e000]

my qemu script :

export SPICE_PORT=5924
export QEMU_AUDIO_DRV=alsa
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FREQ=48000 

qemu-system-x86_64 \
-m 1024 -vga  qxl -spice port=5930,disable-ticketing \
-cpu host -enable-kvm  -machine type=pc,accel=kvm -smp 2 \
-soundhw es1370 \
-drive file="Windows XP.vdi",if=virtio \
-netdev user,id=vmnic,hostname=arch-qemu -device virtio-net,netdev=vmnic \
-localtime -daemonize -usbdevice tablet -k fr \
-monitor <a href="telnet:localhost:12997,server,nowait,ipv4">telnet:localhost:12997,server,nowait,ipv4</a> \
-device virtio-serial-pci -device
virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev
spicevmc,id=spicechannel0,name=vdagent


spicec -h 127.0.0.1 -p 5930 --hotkeys release-cursor=ctrl+alt

the same problem occurs with a windows 7 32 bits virtual machine with the same
settings,

it's seem that rebooting a virtual machine ( windows guest ) who has the "past
copy spice function" enabled is not possible when I use the drivers from
spice-guest-tools-0.74.exe,

if I want to avoid the bug then I must shutdown the virtual machine and then
booting the virtual machine instead of using the reboot menu of the virtual
machine</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>