Received: from eggs.gnu.org ([2001:4830:134:3::10]:34385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWleI-0004VB-Tr for qemu-devel@nongnu.org; Tue, 01 Sep 2015 09:30:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWleE-0001HP-Qk for qemu-devel@nongnu.org; Tue, 01 Sep 2015 09:30:54 -0400 Received: from indium.canonical.com ([91.189.90.7]:46587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWleE-0001GD-M7 for qemu-devel@nongnu.org; Tue, 01 Sep 2015 09:30:50 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1ZWleD-0007Vc-7O for ; Tue, 01 Sep 2015 13:30:49 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 44AAE2E819D for ; Tue, 1 Sep 2015 13:30:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Sep 2015 13:22:21 -0000 From: Cole Robinson <1490886@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150901084936.5109.41744.malonedeb@wampee.canonical.com> Message-Id: <20150901132222.18688.19258.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1490886] Re: spice-qemu-char.c Assert Reply-To: Bug 1490886 <1490886@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I think this is fixed by: commit f7a8beb5e6a13dc924895244777d9ef08b23b367 Author: Marc-Andr=C3=A9 Lureau Date: Thu May 28 15:04:58 2015 +0200 spice: fix spice_chr_add_watch() pre-condition = Since e02bc6de30c44fd668dc0d6e1cd1804f2eed3ed3, add_watch() is called with G_IO_HUP. Even if spice-qemu-char ignores this flag, the precondition must be changed. = https://bugzilla.redhat.com/show_bug.cgi?id=3D1128992 Which is in 2.4.0 ** Changed in: qemu Status: New =3D> Fix Released ** Bug watch added: Red Hat Bugzilla #1128992 https://bugzilla.redhat.com/show_bug.cgi?id=3D1128992 -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1490886 Title: spice-qemu-char.c Assert Status in QEMU: Fix Released Bug description: spice-qemu-char.c:173: spice_chr_add_watch: Assertion `cond =3D=3D G_IO_O= UT' failed. I trace the code virtio-console.c: ret =3D qemu_chr_fe_write(vcon->chr, buf, len); trace_virtio_console_flush_buf(port->id, len, ret); if (ret < len) { VirtIOSerialPortClass *k =3D VIRTIO_SERIAL_PORT_GET_CLASS(port); /* * Ideally we'd get a better error code than just -1, but * that's what the chardev interface gives us right now. If * we had a finer-grained message, like -EPIPE, we could close * this connection. */ if (ret < 0) ret =3D 0; if (!k->is_console) { virtio_serial_throttle_port(port, true); if (!vcon->watch) { vcon->watch =3D qemu_chr_fe_add_watch(vcon->chr, G_IO_OUT|G_IO_HUP, chr_write_unblocked, = vcon); } } } and spice-qemu-char.c in function:spice_chr_add_watch assert(cond =3D=3D G_IO_OUT); so run in this code,will trigger this assert. My qemu version is 2.3.0 and spice-server version is 0.12.5 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1490886/+subscriptions