Received: from eggs.gnu.org ([208.118.235.92]:50000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOmVi-0002LH-KH for qemu-devel@nongnu.org; Thu, 18 Oct 2012 05:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOmVg-0004hc-PZ for qemu-devel@nongnu.org; Thu, 18 Oct 2012 05:35:26 -0400 Received: from indium.canonical.com ([91.189.90.7]:40372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOmVg-0004hP-Gg for qemu-devel@nongnu.org; Thu, 18 Oct 2012 05:35:24 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TOmVf-00077v-KX for ; Thu, 18 Oct 2012 09:35:23 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 818D72E807C for ; Thu, 18 Oct 2012 09:35:23 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Oct 2012 09:28:53 -0000 From: =?utf-8?q?Bernhard_=C3=9Cbelacker?= Sender: bounces@canonical.com References: <20121018092853.21803.89012.malonedeb@gac.canonical.com> Message-Id: <20121018092853.21803.89012.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1068044] [NEW] regression: booting winxp installation iso makes qemu-system-i386 crash in latest git Reply-To: Bug 1068044 <1068044@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: Booting a windows xp sp3 installation cd with current git results on arm ho= st and x86 host in a SIGSEGV between loading the drivers for some hardware and the selection for install= ation, repair or the recovery console. Bisecting leads to this commit: 0b57e287138728f72d88b06e69b970c5d745c44a is the first bad commit commit 0b57e287138728f72d88b06e69b970c5d745c44a Author: David Gibson Date: Mon Sep 10 12:30:57 2012 +1000 cpu_physical_memory_write_rom() needs to do TB invalidates ... :100644 100644 c0fbd5b149fd01929410e970b3e8f4a9b9b9700c f22e9e69519177fa50d= e3a966b35f8c8faa4a7d0 M exec.c This commit was later changed to a call to invalidate_and_set_dirty. By disabling this call to invalidate_and_set_dirty in exec.c:3536 the machi= ne can boot successfully to the selection screen. - Got current git - ./configure --target-list=3D'i386-softmmu' --disable-werror --static --di= sable-strip --enable-debug --enable-debug-tcg - gdb --args /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qemu/= i386-softmmu/qemu-system-i386 -monitor stdio -vnc :0 -cdrom /home/qemu/qemu= -data/machines/winxp/winxp-homepro-sp3-setup.iso On ARM (Feroceon 88F6281 rev 1 (v5l), running a Debian Wheezy chroot): Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x42a012e0 (LWP 19506)] 0x0034d354 in helper_stl_mmu (env=3D0x0, addr=3D0, val=3D1553085696, mmu_id= x=3D1553085696) at /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qemu/softmm= u_template.h:254 254 tlb_addr =3D env->tlb_table[mmu_idx][index].addr_write; (gdb) bt #0 0x0034d354 in helper_stl_mmu (env=3D0x0, addr=3D0, val=3D1553085696, mm= u_idx=3D1553085696) at /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qemu/softmm= u_template.h:254 #1 0x40362074 in ?? () #2 0x40362074 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) = Later found this behaviour also on x86 (AMD Athlon 64 X2 running Debian Squ= eeze): (gdb) handle SIGUSR1 noprint nostop Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) run Starting program: /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_o= rigin/qemu-git/qemu/i386-softmmu/qemu-system-i386 -monitor stdio -vnc :0 -c= drom ../machines/winxp/winxp-homepro-sp3-setup.iso [Thread debugging using libthread_db enabled] [New Thread 0xb4dfcb70 (LWP 32438)] [New Thread 0xb45fcb70 (LWP 32439)] QEMU 1.2.50 monitor - type 'help' for more information (qemu) [New Thread 0xab365b70 (LWP 32440)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb45fcb70 (LWP 32439)] 0x082463b8 in tlb_set_page (env=3D0x8bab658, vaddr=3D4294836224, paddr=3D42= 76092928, prot=3D7, mmu_idx=3D146454104, size=3D4096) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qemu-= git/qemu/cputlb.c:281 281 env->iotlb[mmu_idx][index] =3D iotlb - vaddr; (gdb) bt #0 0x082463b8 in tlb_set_page (env=3D0x8bab658, vaddr=3D4294836224, paddr= =3D4276092928, prot=3D7, mmu_idx=3D146454104, size=3D4096) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qemu-= git/qemu/cputlb.c:281 #1 0x082ed6f2 in cpu_x86_handle_mmu_fault (env=3D0x8bab658, addr=3D4294836= 352, is_write1=3D1, mmu_idx=3D146454104) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qemu-= git/qemu/target-i386/helper.c:847 #2 0x082f9b09 in tlb_fill (env=3D0x8bab658, addr=3D4294836352, is_write=3D= 1, mmu_idx=3D146454104, retaddr=3D3056035390) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qemu-= git/qemu/target-i386/mem_helper.c:141 #3 0x082f8ed1 in helper_stl_mmu (env=3D0x8bab658, addr=3D4294836352, val= =3D0, mmu_idx=3D146454104) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qemu-= git/qemu/softmmu_template.h:291 #4 0xb627663f in code_gen_buffer () #5 0x00000000 in ?? () (gdb) ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1068044 Title: regression: booting winxp installation iso makes qemu-system-i386 crash in latest git Status in QEMU: New Bug description: Booting a windows xp sp3 installation cd with current git results on arm = host and x86 host in a SIGSEGV between loading the drivers for some hardware and the selection for insta= llation, repair or the recovery console. = Bisecting leads to this commit: 0b57e287138728f72d88b06e69b970c5d745c44a is the first bad commit commit 0b57e287138728f72d88b06e69b970c5d745c44a Author: David Gibson Date: Mon Sep 10 12:30:57 2012 +1000 cpu_physical_memory_write_rom() needs to do TB invalidates ... :100644 100644 c0fbd5b149fd01929410e970b3e8f4a9b9b9700c f22e9e69519177fa5= 0de3a966b35f8c8faa4a7d0 M exec.c = This commit was later changed to a call to invalidate_and_set_dirty. By disabling this call to invalidate_and_set_dirty in exec.c:3536 the mac= hine can boot successfully to the selection screen. = - Got current git - ./configure --target-list=3D'i386-softmmu' --disable-werror --static --= disable-strip --enable-debug --enable-debug-tcg - gdb --args /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qem= u/i386-softmmu/qemu-system-i386 -monitor stdio -vnc :0 -cdrom /home/qemu/qe= mu-data/machines/winxp/winxp-homepro-sp3-setup.iso = On ARM (Feroceon 88F6281 rev 1 (v5l), running a Debian Wheezy chroot): Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x42a012e0 (LWP 19506)] 0x0034d354 in helper_stl_mmu (env=3D0x0, addr=3D0, val=3D1553085696, mmu_= idx=3D1553085696) at /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qemu/soft= mmu_template.h:254 254 tlb_addr =3D env->tlb_table[mmu_idx][index].addr_write; (gdb) bt #0 0x0034d354 in helper_stl_mmu (env=3D0x0, addr=3D0, val=3D1553085696, = mmu_idx=3D1553085696) at /home/qemu/qemu-data/qemu-git_2012-10-17_origin/qemu-git/qemu/soft= mmu_template.h:254 #1 0x40362074 in ?? () #2 0x40362074 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) = = Later found this behaviour also on x86 (AMD Athlon 64 X2 running Debian S= queeze): (gdb) handle SIGUSR1 noprint nostop Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) run Starting program: /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17= _origin/qemu-git/qemu/i386-softmmu/qemu-system-i386 -monitor stdio -vnc :0 = -cdrom ../machines/winxp/winxp-homepro-sp3-setup.iso [Thread debugging using libthread_db enabled] [New Thread 0xb4dfcb70 (LWP 32438)] [New Thread 0xb45fcb70 (LWP 32439)] QEMU 1.2.50 monitor - type 'help' for more information (qemu) [New Thread 0xab365b70 (LWP 32440)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb45fcb70 (LWP 32439)] 0x082463b8 in tlb_set_page (env=3D0x8bab658, vaddr=3D4294836224, paddr=3D= 4276092928, prot=3D7, mmu_idx=3D146454104, size=3D4096) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qem= u-git/qemu/cputlb.c:281 281 env->iotlb[mmu_idx][index] =3D iotlb - vaddr; (gdb) bt #0 0x082463b8 in tlb_set_page (env=3D0x8bab658, vaddr=3D4294836224, padd= r=3D4276092928, prot=3D7, mmu_idx=3D146454104, size=3D4096) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qem= u-git/qemu/cputlb.c:281 #1 0x082ed6f2 in cpu_x86_handle_mmu_fault (env=3D0x8bab658, addr=3D42948= 36352, is_write1=3D1, mmu_idx=3D146454104) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qem= u-git/qemu/target-i386/helper.c:847 #2 0x082f9b09 in tlb_fill (env=3D0x8bab658, addr=3D4294836352, is_write= =3D1, mmu_idx=3D146454104, retaddr=3D3056035390) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qem= u-git/qemu/target-i386/mem_helper.c:141 #3 0x082f8ed1 in helper_stl_mmu (env=3D0x8bab658, addr=3D4294836352, val= =3D0, mmu_idx=3D146454104) at /home/bernhard/data/emu/pc/qemu/emu/qemu-git_2012-10-17_origin/qem= u-git/qemu/softmmu_template.h:291 #4 0xb627663f in code_gen_buffer () #5 0x00000000 in ?? () (gdb) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1068044/+subscriptions