<p dir="ltr">Try with hard disk image snapshot=on.</p>
<p dir="ltr">Here is how I run qemu:<br>
QEMU_AUDIO_DRV=spice<br>
TMPDIR=/home/rick/qemu/hds<br>
/usr/local/bin/qemu-system-x86_64 -cpu host -enable-kvm \<br>
-m 1536 -name Win7Pro64 -localtime -no-fd-bootchk -smp cores=4 \<br>
-pidfile /home/rick/qemu/hds/win7pro64.pid \<br>
-drive file=/home/rick/qemu/hds/win7pro64.qed,if=virtio,index=0,snapshot=on \<br>
-vga qxl \<br>
-net nic,model=virtio -net user \<br>
-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5 \<br>
-chardev spicevmc,name=vdagent,id=vdagent \<br>
-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0 \<br>
-spice port=1247,disable-ticketing \<br>
-monitor telnet:localhost:12471,server,nowait \<br>
-drive if=none,id=cd,file=/dev/sg1 \<br>
-device virtio-scsi-pci,id=scsi \<br>
-device scsi-generic,drive=cd \<br>
-balloon virtio \<br>
-soundhw hda \<br>
-device usb-ehci</p>
<p dir="ltr">Let me know if you still can't reproduce, then I'll run with spice debug level 5.</p>
<p dir="ltr">Thanks,<br>
-Rick</p>
<div class="gmail_quote">On Apr 25, 2014 5:34 AM, "Marc-André Lureau" <<a href="mailto:mlureau@redhat.com">mlureau@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I haven't been able to reproduce this crash, after multiple reboots.<br>
<br>
What qemu command line do you use?<br>
<br>
Could you also provide with the SPICE_DEBUG_LEVEL=5 log?<br>
<br>
Here is what I used:<br>
<br>
SPICE_DEBUG_LEVEL=5 leg ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -snapshot ~/VirtualMachines/win7-x64.img -m 1024 -chardev spicevmc,id=charchannel0,name=vdagent  -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -spice port=5912,disable-ticketing  -vga qxl<br>

<br>
thanks<br>
<br>
----- Original Message -----<br>
> Qemu 2.0 crashes on (at least windows) guest machine reboot with<br>
> spice-0.12.4, with the following backtrace:<br>
><br>
> Program received signal SIGSEGV, Segmentation fault.<br>
> 0x00007ffff211eae5 in spice_char_device_write_to_device (dev=0x55555725bf30)<br>
> at char_device.c:443<br>
> 443         sif = SPICE_CONTAINEROF(dev->sin->base.sif,<br>
> SpiceCharDeviceInterface, base);<br>
> (gdb) bt<br>
> #0  0x00007ffff211eae5 in spice_char_device_write_to_device<br>
> (dev=0x55555725bf30) at char_device.c:443<br>
> #1  0x00007ffff211fd81 in spice_char_device_start (dev=0x55555725bf30) at<br>
> char_device.c:798<br>
> #2  0x00007ffff2171f95 in spice_server_vm_start (s=0x5555561d4360) at<br>
> reds.c:4520<br>
> #3  0x00005555556a1119 in qdev_reset_one (dev=<optimized out>,<br>
> opaque=<optimized out>) at hw/core/qdev.c:240<br>
> #4  0x00005555556a0958 in qbus_walk_children (bus=0x555556757610,<br>
> pre_devfn=0x0, pre_busfn=0x0, post_devfn=0x5555556a1100 <qdev_reset_one>,<br>
> post_busfn=0x55555569f060 <qbus_reset_one>, opaque=0x0) at<br>
> hw/core/qdev.c:369<br>
> #5  0x00005555556a0878 in qdev_walk_children (dev=0x55555677c020,<br>
> pre_devfn=0x0, pre_busfn=0x0, post_devfn=0x5555556a1100 <qdev_reset_one>,<br>
> post_busfn=0x55555569f060 <qbus_reset_one>, opaque=0x0) at<br>
> hw/core/qdev.c:403<br>
> #6  0x00005555556a0958 in qbus_walk_children (bus=0x555556745930,<br>
> pre_devfn=0x0, pre_busfn=0x0, post_devfn=0x5555556a1100 <qdev_reset_one>,<br>
> post_busfn=0x55555569f060 <qbus_reset_one>, opaque=0x0) at<br>
> hw/core/qdev.c:369<br>
> #7  0x00005555557d717a in qemu_devices_reset () at vl.c:1867<br>
> #8  qemu_system_reset (report=report@entry=true) at vl.c:1880<br>
> #9  0x00005555555f9e2f in main_loop_should_exit () at vl.c:2015<br>
> #10 main_loop () at vl.c:2055<br>
> #11 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>)<br>
> at vl.c:4507<br>
><br>
><br>
> Having essentially zero knowledge of qemu or spice at a source level, I threw<br>
> together a quick patch that at least prevents the crash for me...which is<br>
> attached here.<br>
><br>
> Thanks,<br>
> -Rick<br>
> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
><br>
</blockquote></div>