From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMThn-0004tu-8t for qemu-devel@nongnu.org; Sun, 31 Mar 2013 21:38:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMThm-0004cc-3R for qemu-devel@nongnu.org; Sun, 31 Mar 2013 21:38:39 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:52890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMThl-0004cD-DL for qemu-devel@nongnu.org; Sun, 31 Mar 2013 21:38:38 -0400 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Apr 2013 07:03:46 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 21C57E002D for ; Mon, 1 Apr 2013 07:10:04 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r311cIW89240872 for ; Mon, 1 Apr 2013 07:08:18 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r311cNvD000710 for ; Mon, 1 Apr 2013 12:38:23 +1100 Message-ID: <5158E4FA.2080706@linux.vnet.ibm.com> Date: Mon, 01 Apr 2013 09:38:02 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <3353B972624C8B49AB43F74428B4701D40AD39C4@SZXEML552-MBS.china.huawei.com> In-Reply-To: <3353B972624C8B49AB43F74428B4701D40AD39C4@SZXEML552-MBS.china.huawei.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] A crash problem about "loadvm" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Liuji (Jeremy)" Cc: "Luohao (brian)" , "qemu-devel@nongnu.org" , Haofeng ÓÚ 2013-3-30 18:38, Liuji (Jeremy) дµÀ: > Hello, everyone > > I found a problem about "loadvm", when I use Spice. > > Host OS: Fedora 17 > Qemu: 1.4.0 > Spice: 0.12.2 > Quest OS: WinXP > > 1) Use the following command to start the VM: > qemu-kvm -enable-kvm -name winxp -M pc-0.15 -m 1024 -smp 2 -boot c -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 > -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/home/test/winxp.qcow2,if=virtio,index=0,format=qcow2 > -net nic,model=virtio,macaddr=52:54:00:05:11:12 -monitor stdio -chardev spicevmc,id=charchannel0,name=vdagent > -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -chardev pty,id=charchannel1 > -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=arbitrary.virtio.serial.port.name -device usb-tablet,id=input0 > -spice port=3001,addr=186.100.8.131,disable-ticketing,plaintext-channel=main,plaintext-channel=playback,plaintext-channel=record,image-compression=auto_glz > -vga qxl -global qxl-vga.vram_size=67108864 -device AC97,id=sound0,bus=pci.0,addr=0x4 > 2) Use spice client to connect the VM. > 3) Exec the "savevm" command in the qemu monitor. > 4) List snapshot information: > info snapshots > ID TAG VM SIZE DATE VM CLOCK > 1 vm-20130330181626 224M 2013-03-30 18:16:26 00:00:17.294 > > 5) Load the snapshot. But the process crashed: > loadvm vm-20130330181626 > red_dispatcher_loadvm_commands: > Segmentation fault (core dumped) > > I use the GDB to analyze the core-dump file: > #0 0x00007f6cbdc37a15 in spice_char_device_write_to_device (dev=0x7f6cc5248320) at char_device.c:439 > 439 sif = SPICE_CONTAINEROF(dev->sin->base.sif, SpiceCharDeviceInterface, base); > (gdb) p dev > $1 = (SpiceCharDeviceState *) 0x7f6cc5248320 > (gdb) p dev->sin > $2 = (SpiceCharDeviceInstance *) 0x0 > > I have always found this problem after the commit(fc24f3bd2ed4c97c99ad40e747732ae46dff2009 "spice: notify spice server on vm start/stop"). > > Could you give me some advices to debug this problem? > > > ------------------ > Best Regards, > > Jeremy Liu > Seems some step missing for spice server, need to check the status in migration. -- Best Regards Wenchao Xia