From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jmhe8-0002mK-6y for qemu-devel@nongnu.org; Thu, 17 Apr 2008 23:52:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jmhe6-0002lN-QT for qemu-devel@nongnu.org; Thu, 17 Apr 2008 23:52:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jmhe6-0002lK-Lw for qemu-devel@nongnu.org; Thu, 17 Apr 2008 23:52:18 -0400 Received: from wf-out-1314.google.com ([209.85.200.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jmhe6-0001Wl-7C for qemu-devel@nongnu.org; Thu, 17 Apr 2008 23:52:18 -0400 Received: by wf-out-1314.google.com with SMTP id 28so281166wff.4 for ; Thu, 17 Apr 2008 20:52:16 -0700 (PDT) Message-ID: Date: Fri, 18 Apr 2008 10:52:16 +0700 From: "Mulyadi Santosa" Subject: Re: [Qemu-devel] Crash when dereferencing -1 In-Reply-To: <48076ABF.9040503@borg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48076ABF.9040503@borg.org> 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 On Thu, Apr 17, 2008 at 10:20 PM, Kent Borg wrote: > Running 0.9.0 on Ubuntu 7.04 host, a Ubuntu 7.04 guest crashes when I > dereference -1. This also happens on a Windows XP host running the > precompiled Qemu 0.9.1. Both with kqemu. > > #include > > main() > { > int *foo = -1; > > printf("hello, world %d\n", *foo); > } > I suspect SIGSEGV isn't handled correctly or just passed to the host, thus triggering process termination. regards, Mulyadi.