From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rf72X-00020t-25 for qemu-devel@nongnu.org; Mon, 26 Dec 2011 04:40:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rf6uW-0005IP-I9 for qemu-devel@nongnu.org; Mon, 26 Dec 2011 04:33:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rf6uW-0005IH-9G for qemu-devel@nongnu.org; Mon, 26 Dec 2011 04:32:00 -0500 Date: Mon, 26 Dec 2011 11:31:50 +0200 From: Alon Levy Message-ID: <20111226093150.GA13460@garlic.redhat.com> References: <20111222081952.GD7059@garlic.redhat.com> <20111222100018.GE2802@garlic.tlv.redhat.com> <20111222105325.GL2802@garlic.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Spice-devel] Seem thread Competition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ZhouPeng Cc: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org, areis@redhat.com On Mon, Dec 26, 2011 at 02:36:55PM +0800, ZhouPeng wrote: > On Thu, Dec 22, 2011 at 8:49 PM, ZhouPeng wrote: > > On Thu, Dec 22, 2011 at 6:53 PM, Alon Levy wrote: > >> On Thu, Dec 22, 2011 at 10:00:18AM +0000, Alon Levy wrote: > >>> On Thu, Dec 22, 2011 at 05:42:29PM +0800, ZhouPeng wrote: > >>> > On Thu, Dec 22, 2011 at 4:42 PM, Alon Levy wro= te: > >>> > > On Thu, Dec 22, 2011 at 10:13:50AM +0800, ZhouPeng wrote: > >>> > >> Hi, > >>> > >> > >>> > >> I meet the err: > >>> > >> > >>> > >> # virsh dumpxml 63 > >>> > >> error: internal error cannot parse json {"timestamp": {"second= s": > >>> > >> 1323332828, "microseco{"timest35p":39}, "econds":PICE_D 1CO323= 3TE828, > >>> > >> Dmicrosec "ds"data"52}, : {"ser: "SPrCE_DIS"ONNEC{ED", "port":= {"serve > >>> > >> ": {6299": "62, "famiamily": "ipv:", "hist": pv4"1 "hos6": > >>> > >> "182.168.12.231"}, "2lient.: {"p2rt": 3350196, "fa"ily": "}, "= cl, > >>> > >> "ho{sport":t"35020", ": "19y": "i2.4", "168.1.": "19}: lexical= error: > >>> > >> invalid string in json text. > >>> > >> =A0 =A0 =A0 =A0 =A0 ds": 1323332828, "microseco{"timest35p":39= }, "econds":PICE_D > >>> > >> > >>> > >> This similar bug seems has been reported by: > >>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=3D744105 > >>> > >> > >>> > >> The patch(http://cgit.freedesktop.org/spice/qemu/commit/?h=3Ds= pice.v42) > >>> > >> seems be related with the competition. > >>> > >> But I searched the upstream qemu, it has not been merged in. > >>> > >> > >>> > >> My qemu is qemu-kvm-0.15.1 on 3.1.2-1.fc16.x86_64 > >>> > >> > >>> > >> Is there any plan about this bug, it seems be some serious. > >>> > >> > >>> > > > >>> > > The patch Daniel Berrange mentioned wotrked around it in qemu a= nd is in > >>> > > qemu 1.0-rc0 and onward, still checking qemu-kvm. There is anot= her patch > >>> > > >>> > Yea, I searched =A0in spice-core.c again and the patch is in qemu= unstable > >>> > Sorry, I carelessly search by " me " but not " me;" before. > >>> > >>> It is in qemu-kvm-1.0 as well. But like you said fedora carries 0.1= 5.1 > >>> that doesn't have it. > >>> > >>> > > in spice-0.10 and in 0.8, still need to check if it's in fedora= . Which > >>> > > version of spice are you using? > >>> > > >>> > spice-server.x86_64 =A0version 0.9.1 > >>> > >>> which doesn't have the spice side fix. but 0.10.0 has it, and it is > >>> closest to 0.9.1. I assume this is from the fedora package as well = since > >>> you mentioned qemu-kvm is from a fedora package? seems the latest i= s > >>> indeed 0.9.1-1, can you test > >>> http://koji.fedoraproject.org/koji/buildinfo?buildID=3D273917 > >>> (spice-server-0.10.0-1)? > >>> > >> > >> If you find it fixes your problem and doesn't introduce any new ones > >> please +1 spice-0.10.0-1.fc16 at > >> https://admin.fedoraproject.org/updates/spice-0.10.0-1.fc16 > Have +1, Thanks. > > > > After the steps below, I am sure it is spice-server-0.10.0-1.fc16.x86= _64 works. > > [root@localhost pkgconfig]# ldd /usr/bin/qemu-kvm > > =A0 =A0 =A0libspice-server.so.1 =3D> /usr/lib64/libspice-server.so.1 > > (0x00007f5f02799000) > > > > [root@localhost ~]# rpm --erase spice-server-0.9.1-1.fc16.x86_64 --no= deps > > [root@localhost ~]# rpm --erase spice-server-0.10.0-1.fc16.x86_64 --n= odeps > > [root@localhost ~]# ls /usr/lib64/libspice-server* -l > > lrwxrwxrwx. 1 root root 24 Dec 20 06:43 /usr/lib64/libspice-server.so > > -> libspice-server.so.1.0.2 > > [root@localhost ~]# virsh restore 43.ckp > > error: Failed to restore domain from 43.ckp > > error: internal error Child process (LC_ALL=3DC > > PATH=3D/sbin:/usr/sbin:/bin:/usr/bin /usr/bin/qemu-kvm -help) status > > unexpected: exit status 127 > > =A0//Note: libspice-server.so.1.0.2 doesn't exists > > > > [root@localhost ~]# rpm -i spice-server-0.10.0-1.fc16.x86_64.rpm > > [root@localhost ~]# ls /usr/lib64/libspice-server* -l > > lrwxrwxrwx. 1 root root =A0 =A0 24 Dec 20 06:43 > > /usr/lib64/libspice-server.so -> libspice-server.so.1.0.2 > > lrwxrwxrwx =A01 root root =A0 =A0 24 Dec 22 07:21 > > /usr/lib64/libspice-server.so.1 -> libspice-server.so.1.0.2 > > -rwxr-xr-x =A01 root root 983600 Nov 14 08:08 /usr/lib64/libspice-ser= ver.so.1.0.2 > > [root@localhost ~]# virsh restore 43.ckp > > Domain restored from 43.ckp > > ---- > > The software suits related: > > > > =A0spice-server =A0=A0x86_64 0.10.0-1.fc16 installed > > =A0qemu-kvm =A0 =A0 =A0x86_64 2:0.15.1-3.fc16 @updates > > > > This random bug appears at least 2 time one day before fixing. > > So in the coming 2 days, if this bug does't appear again, I will > > assume spice-server-0.10.0-1.fc16.x86_64.rpm fix it :) >=20 > The bug does appear again, So I think You meant doesn't? > spice-server-0.10.0-1.fc16.x86_64.rpm can fix. >=20 > The bug appear in my software before, in steps below: >=20 > 1) virsh restore vm.ckp vm.xml > 2) spice client connect > some time later go step 3) > 3) virsh dump vm vm.xml > 4) virsh save vm vm.ckp > some time later go step 1) again >=20 > The err always appears in step 3) at random. >=20 > Anyway it is fixed. > Thanks, > -- > Zhou Peng