Received: from eggs.gnu.org ([2001:4830:134:3::10]:42473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUKLy-0002X3-1r for qemu-devel@nongnu.org; Sat, 07 Mar 2015 14:25:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUKLu-0000uC-JR for qemu-devel@nongnu.org; Sat, 07 Mar 2015 14:25:37 -0500 Received: from indium.canonical.com ([91.189.90.7]:54881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUKLu-0000ts-8s for qemu-devel@nongnu.org; Sat, 07 Mar 2015 14:25:34 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YUKLt-0006ip-3i for ; Sat, 07 Mar 2015 19:25:33 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 11E972E80AF for ; Sat, 7 Mar 2015 19:25:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 07 Mar 2015 19:18:03 -0000 From: Timothy Baldwin <1429313@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150307012053.4273.24823.malonedeb@wampee.canonical.com> Message-Id: <20150307191803.8734.37305.launchpad@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1429313] Re: qemu-user doesn't block target signals on entry to signal hanlder. Reply-To: Bug 1429313 <1429313@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Assignee: (unassigned) =3D> Timothy Baldwin (t-e-baldwin99) ** Changed in: qemu Status: New =3D> In Progress -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429313 Title: qemu-user doesn't block target signals on entry to signal hanlder. Status in QEMU: In Progress Bug description: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler. The attached test case my be run as: $ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions