Received: from eggs.gnu.org ([2001:4830:134:3::10]:38226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDwuL-0002Pi-7V for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:46:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDwuH-00054l-2y for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:46:12 -0400 Received: from indium.canonical.com ([91.189.90.7]:49462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDwuG-00054h-TC for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:46:09 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDwuG-0001rY-7A for ; Fri, 17 Jun 2016 16:46:08 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 573BE2E81A7 for ; Fri, 17 Jun 2016 16:46:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Jun 2016 16:38:57 -0000 From: Peter Maydell Reply-To: Bug 1429313 <1429313@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150307012053.4273.24823.malonedeb@wampee.canonical.com> Message-Id: <20160617163857.15314.9311.malone@wampee.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. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The patches to block signals on entry to the signal handler have now been applied to master. ** Changed in: qemu Status: In Progress =3D> Fix Committed -- = 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: Fix Committed 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