From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV0qA-0003Jz-EM for qemu-devel@nongnu.org; Thu, 17 May 2012 09:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SV0q3-0004hI-Tu for qemu-devel@nongnu.org; Thu, 17 May 2012 09:34:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:58694 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV0q3-0004h6-OE for qemu-devel@nongnu.org; Thu, 17 May 2012 09:33:55 -0400 Message-ID: <4FB4FE3E.7080407@suse.de> Date: Thu, 17 May 2012 15:33:50 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: 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 17.05.2012 11:23, 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 b= y > qemu to handle self-modifying code). But the sigprocmask disables the > SIGSEGV and the qemu-user... does nothing to avoid it. So the SIGSEGV i= s > unmanaged and breaks the program. Alex has the following SIGSEGV workaround queued for our openSUSE package= : http://repo.or.cz/w/qemu/agraf.git/commit/0760e24b52ff20a328f168ed23b52c9= b9c0fd28f 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 himse= lf. 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