From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmFvk-0007cu-HW for qemu-devel@nongnu.org; Tue, 13 Dec 2005 14:35:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmFvg-0007Xo-J7 for qemu-devel@nongnu.org; Tue, 13 Dec 2005 14:35:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmFvg-0007XG-9M for qemu-devel@nongnu.org; Tue, 13 Dec 2005 14:35:16 -0500 Received: from [217.13.200.26] (helo=mail6.worldserver.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EmFxc-0003W6-L8 for qemu-devel@nongnu.org; Tue, 13 Dec 2005 14:37:16 -0500 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: References: <0BE5F4F1-1337-43E6-AD37-ED47FCE3BDCB@stud.tu-ilmenau.de> <0BF839A5-2D32-44FD-9E19-B3EEFA3721E7@kberg.ch> <8B6EFA45-DC47-47FC-91B0-9B5CB41808D2@kberg.ch> <57692F3D-3487-48EB-AA0C-43124745EF3E@stud.tu-ilmenau.de> <2891E47F-E788-4FFD-8FCE-2F9C78C41CDE@kberg.ch> <3C424D8F-05C8-4F06-A1D5-4D37B0F7017D@kberg.ch> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <11979026-8109-4044-A0C5-8B4E15B41C84@stud.tu-ilmenau.de> Content-Transfer-Encoding: 7bit From: Joachim Henke Subject: Re: [Qemu-devel] Mac OS X issues Date: Tue, 13 Dec 2005 20:34:32 +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 > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 > 0x00062f98 in tb_phys_invalidate (tb=0x8cad00, > page_addr=4294967295) at /Volumes/Data/build/qemu/exec-all.h:249 > 249 { > > This is the path to the crash (each function calling the next one): > > tb_invalidate_phys_page_range() [exec.c] > tb_phys_invalidate() [exec.c] > tb_reset_jump() [exec.c] > tb_set_jmp_target() [exec-all.h] > > According to GDB, qemu crashes in the moment (or shortly after) > when tb_set_jmp_target() is called (line 442, exec.c). As I wrote > in my last post, the crash does not occur when cpu-exec.c is > compiled with GCC4 while everything else is compiled with GCC3. > Compiling only exec.c with GCC4 does not help. Since cpu-exec.c > includes exec-all.h through target-pcc/exec.h this could be a point > to start. For completeness I did the opposit experiment with the same CVS code: Compiling everything with GCC4, but compiling cpu-exec.c with GCC3. And qemu crashes like a pure GCC3 build. GDB output is a little bit different, but points in fact to the same place. Note that the functions tb_phys_invalidate() <- tb_reset_jump() <- tb_set_jmp_target () are all inlined into tb_invalidate_phys_page_range(). Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 0x00061e20 in tb_invalidate_phys_page_range (start=630485, end=630486, is_cpu_write_access=1) at /Volumes/Data/build/qemu/exec.c: 442 442 tb_set_jmp_target(tb, n, (unsigned long)(tb->tc_ptr + tb- >tb_next_offset[n])); I post this with the hope that the main authors of these files can help. Sinercely Jo.