From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXKNp-0007p3-0k for qemu-devel@nongnu.org; Wed, 23 May 2012 18:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXKNm-00076s-Rv for qemu-devel@nongnu.org; Wed, 23 May 2012 18:50:20 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43020 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXKNm-00076X-LK for qemu-devel@nongnu.org; Wed, 23 May 2012 18:50:18 -0400 Message-ID: <4FBD699E.8000403@suse.de> Date: Thu, 24 May 2012 00:50:06 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <4FB4FE3E.7080407@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Signal management in qemu-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Barcelo Cc: Peter Maydell , qemu-devel , Alexander Graf Am 24.05.2012 00:38, schrieb Alex Barcelo: >>> Running it in a i386 machine works and gives an output of "0x0d\n0x20= ". >>> Running it in a qemu-i386 segfaults. Because the self-modifying code >>> raises a SIGSEGV in the qemu (I understand that it is the method used= by >>> qemu to handle self-modifying code). But the sigprocmask disables the >>> SIGSEGV and the qemu-user... does nothing to avoid it. So the SIGSEGV= is >>> unmanaged and breaks the program. >> >> Alex has the following SIGSEGV workaround queued for our openSUSE pack= age: >> http://repo.or.cz/w/qemu/agraf.git/commit/0760e24b52ff20a328f168ed23b5= 2c9b9c0fd28f >> >> Don't know if it fixes your specific problem. Peter had some ideas how >> to refactor signal handling but iirc didn't have time to work on it hi= mself. >=20 > Is it similar at all? Peter answered that already: No, it isn't. Sorry for the confusion. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg