Received: from eggs.gnu.org ([2001:4830:134:3::10]:60244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4Gd8-00066K-2K for qemu-devel@nongnu.org; Tue, 08 Nov 2016 19:20:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4Gd3-00040U-4l for qemu-devel@nongnu.org; Tue, 08 Nov 2016 19:20:42 -0500 Received: from indium.canonical.com ([91.189.90.7]:59053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4Gd2-00040O-VP for qemu-devel@nongnu.org; Tue, 08 Nov 2016 19:20:37 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c4Gd2-0002VT-1F for ; Wed, 09 Nov 2016 00:20:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E0AD22E80C3 for ; Wed, 9 Nov 2016 00:20:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Nov 2016 00:08:31 -0000 From: Michal Suchanek Reply-To: Bug 1639322 <1639322@bugs.launchpad.net> Sender: bounces@canonical.com References: <20161104181436.19841.43234.malonedeb@soybean.canonical.com> Message-Id: <20161109000831.28243.96363.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1639322] Re: pasting into ppc64 serial console kills qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is gtk interface. However, the function on line 40 os spapr_vty.c looks really insane. It asserts that it is not given more data to input in a ring buffer than is size of the buffer and then stuffs all the data in regardless of the amount of data already present. It should probably loop or one of its callers but I did not find a decent comparable piece of code to cut and paste whatever callbacks are needed for the other side to consume the bytes. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1639322 Title: pasting into ppc64 serial console kills qemu Status in QEMU: New Bug description: - run qemu-system-ppc64 - when X window appears press Ctrl+Alt+3 - paste any text longer than 16 characters = qemu-system-ppc64: /home/abuild/rpmbuild/BUILD/qemu-2.6.1/hw/char/spapr_v= ty.c:40: vty_receive: Assertion `(dev->in - dev->out) < 16' failed. Aborted (core dumped) Broken in SUSE Leap 42.2 and git 4eb28abd52d48657cff6ff45e8dbbbefe4dbb414 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1639322/+subscriptions