Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3bv6-0002w7-3K for qemu-devel@nongnu.org; Tue, 22 Feb 2005 10:25:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3bsa-0002dN-4Y for qemu-devel@nongnu.org; Tue, 22 Feb 2005 10:23:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3bsW-0002Wl-5H for qemu-devel@nongnu.org; Tue, 22 Feb 2005 10:23:12 -0500 Received: from [193.70.192.33] (helo=smtp0.libero.it) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3bH8-0004qw-RM for qemu-devel@nongnu.org; Tue, 22 Feb 2005 09:44:35 -0500 Received: from localhost (172.16.1.80) by smtp0.libero.it (7.0.027-DD01) id 41BDA86900F48881 for qemu-devel@nongnu.org; Tue, 22 Feb 2005 15:44:33 +0100 Received: from default (151.81.9.81) by smtp3.libero.it (7.0.027-DD01) id 42079BE100AE8990 for qemu-devel@nongnu.org; Tue, 22 Feb 2005 15:44:30 +0100 Date: Tue, 22 Feb 2005 15:49:24 +0100 Message-ID: <7BYR8G.2008734459IYSR0X@kevquinn.com> From: "Kevin F. Quinn" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] tests fail - sigsegv? 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 Hi=2E I thought to run the tests supplied with qemu, however tripped up o= n the exception checks=2E test-i386=2Ec uses setjmp(), which on my system (and according to the man = patch any SYSV system) sets stuff for the next exception only=2E Changing= all of these except the very last one to sigsetjmp gets things to work=2E= I did this the lazy way and added #define setjmp(X) sigsetjmp(X,1) before the declaration of 'void test_exceptions(void), and #undef setjmp before the 'printf("single step exception:\n");' statement (i=2Ee=2E befor= e the last setjmp call)=2E I don't know whether sigsetjmp is available on= all platforms - perhaps configure et=2E el=2E can sort that out=2E There is one difference I get in the results; on the host, the self-modify= ing code test geenrates SEGV ACCERR ("Invalid permissions for mapped objec= t"), on qemu it generates SEGV MAPERR ("Address not mapped to object")=2E = This may not be significant, but then perhaps it is=2E=2E=2E Kev=2E