Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LySHc-0000Qe-JB for qemu-devel@nongnu.org; Mon, 27 Apr 2009 10:58:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LySHY-0000Kw-AV for qemu-devel@nongnu.org; Mon, 27 Apr 2009 10:58:12 -0400 Received: from [199.232.76.173] (port=43971 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LySHY-0000Ks-5x for qemu-devel@nongnu.org; Mon, 27 Apr 2009 10:58:08 -0400 Received: from d112a1.x-mailer.de ([212.162.53.11]:33810) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LySHX-0000dl-Gp for qemu-devel@nongnu.org; Mon, 27 Apr 2009 10:58:07 -0400 From: Daniel Gollub Subject: Re: [Qemu-devel] [PATCH 1/3] vnc: fix server surface pixel format. Date: Mon, 27 Apr 2009 16:58:13 +0200 References: <1240843193-15967-1-git-send-email-kraxel@redhat.com> In-Reply-To: <1240843193-15967-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904271658.13884.gollub@b1-systems.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann On Monday 27 April 2009 04:39:51 pm Gerd Hoffmann wrote: > Format must be identical to the guest surface, we can't work with > the 32 bpp used by the default surface allocator. > > Without this patch vnc doesn't get the conversions right when sending > pixel data to the client. The bug triggers if > (a) the client doesn't support WMVi, and > (b) the guest screen depth is !=3D 32 bpp. Tried your patches - qemu crashs now sometimes with: *** glibc detected *** ./x86_64-softmmu/qemu-system-x86_64: malloc(): memor= y corruption: 0x0000000000e28e50 *** (When it doesn't crash it just works perfectly fine again with vncviewer.) Backtrace looks like this: Core was generated by `./x86_64-softmmu/qemu-system-x86_64 -hda /home/dgoll= ub/VMs/sles11_x86_64.qcow2'. Program terminated with signal 6, Aborted. #0 0x00007f7189867645 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007f7189867645 in raise () from /lib64/libc.so.6 #1 0x00007f7189868c33 in abort () from /lib64/libc.so.6 #2 0x00007f71898a38e8 in ?? () from /lib64/libc.so.6 #3 0x00007f71898a9118 in ?? () from /lib64/libc.so.6 #4 0x00007f71898aba5c in ?? () from /lib64/libc.so.6 #5 0x00007f71898ace64 in ?? () from /lib64/libc.so.6 #6 0x00007f71898ade38 in realloc () from /lib64/libc.so.6 #7 0x000000000046fd3e in qemu_realloc (ptr=3D0x4195, size=3D16789) at qemu= =2Dmalloc.c:52 #8 0x000000000049a10c in buffer_reserve (buffer=3D0xd3d090, len=3D) at vnc.c:313 #9 0x000000000049a16b in vnc_write (vs=3D0xd2d010, data=3D0x7fff93b52ca0, = len=3D6) at vnc.c:1135 #10 0x000000000049a29a in vnc_write_pixels_generic (vs=3D0xd2d010, pixels1= =3D0xe09a40, size=3D) at vnc.c:457 #11 0x000000000049e0f4 in send_framebuffer_update (vs=3D0xd2d010, x=3D0, y= =3D0, w=3D800, h=3D600) at vnc.c:479 #12 0x000000000049e6f2 in vnc_update_client (opaque=3D0xd2d010) at vnc.c:788 #13 0x0000000000409dbc in main_loop_wait (timeout=3D) = at /home/dgollub/projects/qemu/vl.c:1227 #14 0x000000000040d80d in main (argc=3D5, argv=3D0x7fff93b538d8, envp=3D) at /home/dgollub/projects/qemu/vl.c:4448 (gdb)=20 Hope that helps. Thanks for fixing the vncviewer regression! Best Regards, Daniel =2D-=20 Daniel Gollub Geschaeftsfuehrer: Ralph Dehner =46OSS Developer Unternehmenssitz: Vohburg B1 Systems GmbH Amtsgericht: Ingolstadt Mobil: +49-(0)-160 47 73 970 Handelsregister: HRB 3537 EMail: gollub@b1-systems.de http://www.b1-systems.de Adresse: B1 Systems GmbH, Osterfeldstra=DFe 7, 85088 Vohburg http://pgpkeys.pca.dfn.de/pks/lookup?op=3Dget&search=3D0xED14B95C2F8CA78D