Received: from eggs.gnu.org ([2001:4830:134:3::10]:43279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWhR8-0006tk-0E for qemu-devel@nongnu.org; Tue, 01 Sep 2015 05:01:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWhR3-0006DV-0y for qemu-devel@nongnu.org; Tue, 01 Sep 2015 05:01:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:44123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWhR2-0006Bf-QP for qemu-devel@nongnu.org; Tue, 01 Sep 2015 05:00:56 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1ZWhR2-0006n9-5Q for ; Tue, 01 Sep 2015 09:00:56 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 1F2AC2E8047 for ; Tue, 1 Sep 2015 09:00:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Sep 2015 08:49:36 -0000 From: Quwj Sender: bounces@canonical.com Message-Id: <20150901084936.5109.41744.malonedeb@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1490886] [NEW] 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 Public bug reported: spice-qemu-char.c:173: spice_chr_add_watch: Assertion `cond =3D=3D G_IO_OUT= ' 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, vc= on); } } } 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 ** Affects: qemu Importance: Undecided Status: New -- = 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: New 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