Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0IiU-0002BQ-JR for qemu-devel@nongnu.org; Sun, 13 Feb 2005 07:19:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0IXq-00086i-Uo for qemu-devel@nongnu.org; Sun, 13 Feb 2005 07:08:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0IUY-0007gh-EJ for qemu-devel@nongnu.org; Sun, 13 Feb 2005 07:04:48 -0500 Received: from [157.193.204.1] (helo=trappist.elis.UGent.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0HhB-0006xT-Eo for qemu-devel@nongnu.org; Sun, 13 Feb 2005 06:13:45 -0500 Received: from [157.193.206.33] (bigmac.elis.UGent.be [157.193.206.33]) by trappist.elis.UGent.be (8.11.6/8.11.6) with ESMTP id j1DBDi408666 for ; Sun, 13 Feb 2005 12:13:44 +0100 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <1108287757.7619.7.camel@localhost.localdomain> References: <1108086522.5629.11.camel@localhost.localdomain> <420EB226.4010301@thechesterfields.org> <41e41e7a0502121817746fc443@mail.gmail.com> <420EE242.2080908@wasp.net.au> <1108287757.7619.7.camel@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5538008c78eb9d182d41f6d73c7dbbc3@elis.ugent.be> Content-Transfer-Encoding: 7bit From: Jonas Maebe Subject: Re: [Qemu-devel] KQEMU bus errors Date: Sun, 13 Feb 2005 12:13:44 +0100 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 On 13 feb 2005, at 10:42, Darryl Dixon wrote: > Most of the references that I can find for a Linux 'Bus error' talk > about unaligned memory accesses. Indeed. The only way I know of to get a bus error under Linux/x86 from a user space program, is to turn on the alignment check flag in the eflags register, followed by an unaligned memory access. Usually, this is the result from a corrupted stack, causing an invalid value to be restored to the eflags register (which coincidentally has the bit corresponding to the alignment check flag set to 1). Jonas