From: Fabio Fantoni Subject: Re: [Xen-devel] [Qemu-devel] Qemu 2.0 regression with xen: qemu crash on any domUs S.O. start Date: Mon, 07 Apr 2014 11:59:06 +0200 Message-ID: <534276EA.9010200@m2r.biz> References: <533AD4BE.8080101@m2r.biz> <533AE841.1000606@redhat.com> <533BF0DB.70100@m2r.biz> <20140402160324.GD4563@perard.uk.xensource.com> <533D18A7.3040100@m2r.biz> <1396514746.4211.26.camel@kazak.uk.xensource.com> <533D3447.3010405@m2r.biz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1000591524==" Return-path: In-Reply-To: <533D3447.3010405@m2r.biz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spice-devel-bounces@lists.freedesktop.org Sender: "Spice-devel" To: Ian Campbell Cc: xen-devel , "qemu-devel@nongnu.org" , Anthony PERARD , spice-devel@lists.freedesktop.org, Laszlo Ersek List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1000591524== Content-Type: multipart/alternative; boundary="------------020407010900060107080907" This is a multi-part message in MIME format. --------------020407010900060107080907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 03/04/2014 12:13, Fabio Fantoni ha scritto: > Il 03/04/2014 10:45, Ian Campbell ha scritto: >> On Thu, 2014-04-03 at 10:15 +0200, Fabio Fantoni wrote: >>> Seems that do segfault when I connect to vnc or spice, in the test of >>> this backtrace after connect to vnc, spice and other things of my >>> patches are disabled, so do not think it is a problem caused by my >>> patches. >> The last spice patch of yours I saw was incorrectly accessing the wrong >> half of various unions which is liable to cause all sorts of corruption >> or strange behaviour. Please can you reproduce this issue without any >> patches applied. >> >> Ian. >> > > After saw the full backtrace I saw on qemu git recent patches with fix > on input, than I tried to update qemu to latest commit > (82c6f513735297ad76acaaf2e87f0c5a0b3647a7) and now the segfault seems > solve, I did some fast test with vnc and spice on same pv domUs > without qemu crashes. > About libxl patch of spice support for pv domUs I'll improve it > following your reply and also try to find more details about pointer > not visible but working with spice on pv domUs. > Thanks to all for your help. Today I did some tests also with hvm and spice and I found another segfault with different backtrace to solve: > (gdb) c > Continuing. > > *Program received signal SIGSEGV, Segmentation fault.** > **0x0000555555855d30 in interface_client_monitors_config > (sin=0x5555563b0260, ** > ** mc=0x0) at ui/spice-display.c:557** > **557 if (mc->num_of_monitors > 0) {* > (gdb) bt full > #0 0x0000555555855d30 in interface_client_monitors_config ( > sin=0x5555563b0260, mc=0x0) at ui/spice-display.c:557 > ssd = 0x5555563b0210 > info = {xoff = 0, yoff = 0, width = 0, height = 0} > rc = 32767 > __func__ = "interface_client_monitors_config" > #1 0x00007ffff4af5113 in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #2 0x00007ffff4ad87f5 in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #3 0x00007ffff4b1af76 in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #4 0x00007ffff4ae989a in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #5 0x00007ffff4aee470 in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #6 0x00007ffff4af0d8c in ?? () > from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 > No symbol table info available. > #7 0x0000555555851f82 in watch_read (opaque=0x55555666a8d0) > ---Type to continue, or q to quit--- > at ui/spice-core.c:101 > watch = 0x55555666a8d0 > #8 0x00005555557ce1f8 in qemu_iohandler_poll (pollfds=0x5555562e8e00, > ret=2) > at iohandler.c:143 > revents = 1 > pioh = 0x55555634e080 > ioh = 0x55555666adb0 > #9 0x00005555557cf2a4 in main_loop_wait (nonblocking=0) at > main-loop.c:485 > ret = 2 > timeout = 4294967295 > timeout_ns = 25664603 > #10 0x000055555587acd8 in main_loop () at vl.c:2051 > nonblocking = false > last_io = 3 > #11 0x00005555558826b2 in main (argc=36, argv=0x7fffffffe368, > envp=0x7fffffffe490) at vl.c:4507 > i = 64 > snapshot = 0 > linux_boot = 0 > icount_option = 0x0 > initrd_filename = 0x0 > kernel_filename = 0x0 > kernel_cmdline = 0x555555a1b5c4 "" > boot_order = 0x5555562e7ee0 "dc" > ds = 0x5555563d8fd0 > ---Type to continue, or q to quit--- > cyls = 0 > heads = 0 > secs = 0 > translation = 0 > hda_opts = 0x0 > opts = 0x5555562e7e30 > machine_opts = 0x5555562e84b0 > olist = 0x555555e00e00 > optind = 36 > optarg = 0x7fffffffe923 > "if=ide,index=1,media=cdrom,cache=writeback,id=ide-832" > loadvm = 0x0 > machine_class = 0x5555562e02a0 > machine = 0x555555e067e0 > cpu_model = 0x0 > vga_model = 0x0 > qtest_chrdev = 0x0 > qtest_log = 0x0 > pid_file = 0x0 > incoming = 0x0 > show_vnc_port = 0 > defconfig = true > userconfig = true > log_mask = 0x0 > log_file = 0x0 > ---Type to continue, or q to quit--- > mem_trace = {malloc = 0x55555587e56a , > realloc = 0x55555587e5c2 , > free = 0x55555587e629 , calloc = 0, > try_malloc = 0, > try_realloc = 0} > trace_events = 0x0 > trace_file = 0x0 > __func__ = "main" > args = {machine = 0x555555e067e0, ram_size = 2130706432, > boot_order = 0x5555562e7ee0 "dc", kernel_filename = 0x0, > kernel_cmdline = 0x555555a1b5c4 "", initrd_filename = 0x0, > cpu_model = 0x0} > (gdb) qemu from source git/master commit 82c6f513735297ad76acaaf2e87f0c5a0b3647a7 spice server packages is version 0.12.4-0nocelt2 recompiled from debian unstable source. If you need more informations/tests tell me and I'll post them. Thanks for any reply. --------------020407010900060107080907 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Il 03/04/2014 12:13, Fabio Fantoni ha scritto:
Il 03/04/2014 10:45, Ian Campbell ha scritto:
On Thu, 2014-04-03 at 10:15 +0200, Fabio Fantoni wrote:
Seems that do segfault when I connect t= o vnc or spice, in the test of
this backtrace after connect to vnc, spice and other things of my
patches are disabled, so do not think it is a problem caused by my patches.
The last spice patch of yours I saw was incorrectly accessing the wrong
half of various unions which is liable to cause all sorts of corruption
or strange behaviour. Please can you reproduce this issue without any
patches applied.

Ian.


After saw the full backtrace I saw on qemu git recent patches with fix on input, than I tried to update qemu to latest commit (82c6f513735297ad76acaaf2e87f0c5a0b3647a7) and now the segfault seems solve, I did some fast test with vnc and spice on same pv domUs without qemu crashes.
About libxl patch of spice support for pv domUs I'll improve it following your reply and also try to find more details about pointer not visible but working with spice on pv domUs.
Thanks to all for your help.


Today I did some tests also with hvm and spice and I found another segfault with different backtrace to solve:
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0000555555855d30 in interface_client_monitors_config (sin=3D0x5555563b0260,
=C2=A0=C2=A0=C2=A0 mc=3D0x0) at ui/spice-display.c:557
557=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (mc-&= gt;num_of_monitors > 0) {

(gdb) bt full
#0=C2=A0 0x0000555555855d30 in interface_client_monitors_config ( =C2=A0=C2=A0=C2=A0 sin=3D0x5555563b0260, mc=3D0x0) at ui/spice-disp= lay.c:557
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ssd =3D 0x5555563b0210 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 info =3D {xoff =3D 0, yo= ff =3D 0, width =3D 0, height =3D 0}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rc =3D 32767
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 __func__ =3D "interface_= client_monitors_config"
#1=C2=A0 0x00007ffff4af5113 in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#2=C2=A0 0x00007ffff4ad87f5 in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#3=C2=A0 0x00007ffff4b1af76 in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#4=C2=A0 0x00007ffff4ae989a in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#5=C2=A0 0x00007ffff4aee470 in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#6=C2=A0 0x00007ffff4af0d8c in ?? ()
=C2=A0=C2=A0 from /usr/lib/x86_64-linux-gnu/libspice-server.so.1 No symbol table info available.
#7=C2=A0 0x0000555555851f82 in watch_read (opaque=3D0x55555666a8d0)=
---Type <return> to continue, or q <return> to quit---<= br> =C2=A0=C2=A0=C2=A0 at ui/spice-core.c:101
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 watch =3D 0x55555666a8d0=
#8=C2=A0 0x00005555557ce1f8 in qemu_iohandler_poll (pollfds=3D0x5555562e8e00, ret=3D2)
=C2=A0=C2=A0=C2=A0 at iohandler.c:143
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 revents =3D 1
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pioh =3D 0x55555634e080<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ioh =3D 0x55555666adb0 #9=C2=A0 0x00005555557cf2a4 in main_loop_wait (nonblocking=3D0) at main-loop.c:485
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ret =3D 2
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 timeout =3D 4294967295 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 timeout_ns =3D 25664603<= br> #10 0x000055555587acd8 in main_loop () at vl.c:2051
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nonblocking =3D false =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 last_io =3D 3
#11 0x00005555558826b2 in main (argc=3D36, argv=3D0x7fffffffe368, <= br> =C2=A0=C2=A0=C2=A0 envp=3D0x7fffffffe490) at vl.c:4507
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i =3D 64
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 snapshot =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 linux_boot =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 icount_option =3D 0x0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 initrd_filename =3D 0x0<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kernel_filename =3D 0x0<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kernel_cmdline =3D 0x555= 555a1b5c4 ""
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 boot_order =3D 0x5555562= e7ee0 "dc"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ds =3D 0x5555563d8fd0 ---Type <return> to continue, or q <return> to quit---<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cyls =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 heads =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 secs =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 translation =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hda_opts =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 opts =3D 0x5555562e7e30<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 machine_opts =3D 0x55555= 62e84b0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 olist =3D 0x555555e00e00=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 optind =3D 36
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 optarg =3D 0x7fffffffe92= 3 "if=3Dide,index=3D1,media=3Dcdrom,cache=3Dwriteback,id=3Dide-832" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 loadvm =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 machine_class =3D 0x5555= 562e02a0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 machine =3D 0x555555e067= e0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cpu_model =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vga_model =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qtest_chrdev =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qtest_log =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pid_file =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 incoming =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 show_vnc_port =3D 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 defconfig =3D true
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 userconfig =3D true
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 log_mask =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 log_file =3D 0x0
---Type <return> to continue, or q <return> to quit---<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mem_trace =3D {malloc =3D= 0x55555587e56a <malloc_and_trace>,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 realloc =3D = 0x55555587e5c2 <realloc_and_trace>,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 free =3D 0x5= 5555587e629 <free_and_trace>, calloc =3D 0, try_malloc =3D 0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 try_realloc = =3D 0}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 trace_events =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 trace_file =3D 0x0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 __func__ =3D "main"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 args =3D {machine =3D 0x= 555555e067e0, ram_size =3D 2130706432,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 boot_order =3D= 0x5555562e7ee0 "dc", kernel_filename =3D 0x0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kernel_cmdli= ne =3D 0x555555a1b5c4 "", initrd_filename =3D 0x0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cpu_model =3D= 0x0}
(gdb)

qemu from source git/master commit 82c6f513735297ad76acaaf2e87f0c5a0b3647a7
spice server packages is version 0.12.4-0nocelt2 recompiled from debian unstable source.

If you need more informations/tests tell me and I'll post them.

Thanks for any reply.
--------------020407010900060107080907-- --===============1000591524== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1000591524==--