From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ5kh-00061x-Dr for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:37:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ5kd-00061L-E9 for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:37:14 -0500 Received: from [199.232.76.173] (port=47027 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ5kd-00061I-8J for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:37:11 -0500 Received: from soufre.accelance.net ([213.162.48.15]:59323) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJ5kc-0007Uo-Rp for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:37:11 -0500 Received: from [192.168.0.3] (potipota.net [88.168.176.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by soufre.accelance.net (Postfix) with ESMTP id 7D0E6450F3 for ; Sat, 3 Jan 2009 13:37:07 +0100 (CET) From: Lionel Landwerlin Content-Type: text/plain; charset=UTF-8 Date: Sat, 03 Jan 2009 13:36:59 +0100 Message-Id: <1230986219.3814.13.camel@cocoduo.atr> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Let's compile a very simple program : #include #include #include int main (int argc, char *argv[]) { int *i =3D NULL; sleep (1); *i =3D 42; return EXIT_SUCCESS; } Now run this program under qemu with gdbstub : qemu -g 1234 ./test-segfault Run gdb on the same program, connect it to qemu and start execution. This program will raise a SIGSEGV signal and qemu will be locked in an endless loop. Gdb will never be notify by qemu of SIGSEGV signal. The following post provides a fix for that. Regards, --=20 =EF=BB=BFLione Landwerlin =20 =EF=BB=BF O p e n W i d e 14, rue Gaillon 75002 Paris