From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chMEj-0000XF-W5 for qemu-devel@nongnu.org; Fri, 24 Feb 2017 15:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chMEe-00069L-U8 for qemu-devel@nongnu.org; Fri, 24 Feb 2017 15:13:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38838) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1chMEe-00068T-LX for qemu-devel@nongnu.org; Fri, 24 Feb 2017 15:13:00 -0500 Date: Fri, 24 Feb 2017 20:12:55 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20170224201254.GI2435@work-vm> References: <20170224195117.GR8830@work-vm> 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] make check: crash in vhost-user chardev cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: qemu-devel@nongnu.org, armbru@redhat.com, mst@redhat.com * Marc-Andr=E9 Lureau (marcandre.lureau@gmail.com) wrote: > Hi >=20 > On Fri, Feb 24, 2017 at 11:54 PM Dr. David Alan Gilbert > wrote: >=20 > > Hi, > > I'm seeing a hang+crash doing a make check that > > looks like it's coming from vhost-user's chardev cleanup, > > so I'm suspecting your e0b283e7c. > > The synptom is that the make check hangs in the qtest > > part, and a dmesg shows that a qemu crashed. > > >=20 > See that thread: > https://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg06015.html Ah OK, as long as it's known about. It's a reliable crash in my main bui= ld world on my laptop. Dave >=20 > > I got a backtrace that shows: > > > > (gdb) where > > #0 0x0000560d3344f03e in qemu_chr_fe_read_all (be=3Dbe@entry=3D0x0, > > buf=3Dbuf@entry=3D0x7ffea7a2f520 "\v", len=3Dlen@entry=3D12) at > > /home/dgilbert/git/qemu/chardev/char.c:209 > > #1 0x0000560d33199d64 in vhost_user_read (msg=3Dmsg@entry=3D0x7ffea7= a2f520, > > dev=3D) > > at /home/dgilbert/git/qemu/hw/virtio/vhost-user.c:125 > > #2 0x0000560d3319a11f in vhost_user_get_vring_base (dev=3D0x560d35a6= 14a0, > > ring=3D0x7ffea7a2f670) > > at /home/dgilbert/git/qemu/hw/virtio/vhost-user.c:417 > > #3 0x0000560d33196abb in vhost_virtqueue_stop (dev=3Ddev@entry=3D0x5= 60d35a614a0, > > vdev=3Dvdev@entry=3D0x560d3729cc00, vq=3D0x560d35a61678, idx=3D1) at > > /home/dgilbert/git/qemu/hw/virtio/vhost.c:1070 > > #4 0x0000560d33198cd4 in vhost_dev_stop (hdev=3Dhdev@entry=3D0x560d3= 5a614a0, > > vdev=3Dvdev@entry=3D0x560d3729cc00) > > at /home/dgilbert/git/qemu/hw/virtio/vhost.c:1533 > > #5 0x0000560d3317bfd8 in vhost_net_stop_one (net=3D0x560d35a614a0, > > dev=3D0x560d3729cc00) > > at /home/dgilbert/git/qemu/hw/net/vhost_net.c:288 > > #6 0x0000560d3317c4aa in vhost_net_stop (dev=3Ddev@entry=3D0x560d372= 9cc00, > > ncs=3D, total_queues=3Dtotal_queues@entry=3D1) at > > /home/dgilbert/git/qemu/hw/net/vhost_net.c:367 > > #7 0x0000560d33179201 in virtio_net_vhost_status (status=3D, > > n=3D0x560d3729cc00) > > at /home/dgilbert/git/qemu/hw/net/virtio-net.c:176 > > #8 0x0000560d33179201 in virtio_net_set_status (vdev=3D0x560d3729cc0= 0, > > status=3D7 '\a') > > at /home/dgilbert/git/qemu/hw/net/virtio-net.c:250 > > #9 0x0000560d3339ce99 in qemu_del_net_client (nc=3D0x560d35a61250) a= t > > /home/dgilbert/git/qemu/net/net.c:390 > > #10 0x0000560d3339e30d in net_cleanup () at > > /home/dgilbert/git/qemu/net/net.c:1454 > > #11 0x0000560d330ee940 in main (argc=3D, argv=3D > out>, envp=3D) > > at /home/dgilbert/git/qemu/vl.c:4637 > > (gdb) > > > > #0 qemu_chr_fe_read_all (be=3Dbe@entry=3D0x0, buf=3Dbuf@entry=3D0x7f= fea7a2f520 > > "\v", len=3Dlen@entry=3D12) > > at /home/dgilbert/git/qemu/chardev/char.c:209 > > 209 Chardev *s =3D be->chr; > > > > Dave > > > > -- > > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK > > > > -- > Marc-Andr=E9 Lureau -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK