Received: from eggs.gnu.org ([2001:4830:134:3::10]:45258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7Zgo-00057e-8t for qemu-devel@nongnu.org; Mon, 30 May 2016 22:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7Zgi-0002QH-9M for qemu-devel@nongnu.org; Mon, 30 May 2016 22:45:53 -0400 Received: from indium.canonical.com ([91.189.90.7]:36274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7Zgi-0002QC-0V for qemu-devel@nongnu.org; Mon, 30 May 2016 22:45:48 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1b7Zgg-0007zF-Ru for ; Tue, 31 May 2016 02:45:46 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 388DC2E818A for ; Tue, 31 May 2016 02:45:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 31 May 2016 02:40:04 -0000 From: Andrew Henderson Reply-To: Bug 1587211 <1587211@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160531022309.17459.89128.malonedeb@soybean.canonical.com> Message-Id: <20160531024004.28222.72101.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1587211] Re: qemu-system-i386/x86_64 crash with 1 MB guest RAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I forgot to mention that I configured QEMU with the following options prior to building it for these tests: ./configure --target-list=3Di386-softmmu,x86_64-softmmu --enable-debug --extra-cflags=3D"-g -Wno-error" I was modifying QEMU 2.5.0 for some of my own testing, and the extra- cflags options come from that. They should have no impact on the reproduction test detailed above if you wish to reproduce my build. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1587211 Title: qemu-system-i386/x86_64 crash with 1 MB guest RAM Status in QEMU: New Bug description: When launching qemu-system-i386 or qemu-system-x86_64 with 1 MB of RAM allocated to the guest (-m 1) and no guest image specified, QEMU will crash while trying to "execute code outside of RAM or ROM" after approximately 10 minutes. I discovered this while using QEMU 2.5.0, but I verified that it also occurs with 2.5.1.1 and the latest source available in git (2.6.50, commit d6550e9ed2e1a60d889dfb721de00d9a4e3bafbe). I built all of these different versions of QEMU on the same 64-bit Ubuntu 14.04.3 host using the distro's default GCC 4.8.4. Two observations: 1. This only occurs when allocating 1 MB of RAM to the guest. When I allocate 2 MB, this does not happen. I tried running both i386/x86_64 QEMUs for hours with 2 MB and didn't observe this crash. 2. This may be a SeaBIOS bug, as there is no guest code to execute. After enabling the SeaBIOS debug at the ISA 0x402 port and redirecting it to stdio, the last SeaBIOS state transition reported ("Booting from ROM... Booting from c980:0361") occurs immediately at QEMU startup with no further logging messages seen prior to the crash ten minutes later. My captured SeaBIOS debug output is here: http://pastebin.com/GXm2L44E To reproduce, use the following command lines: ./i386-softmmu/qemu-system-i386 -display none -m 1 -monitor stdio ./x86_64-softmmu/qemu-system-x86_64 -display none -m 1 -monitor stdio For both 32/64-bit QEMUs, the output is the same. After running for about 10 minutes (I've seen it take between 7m 15s (v2.5.1.1) to 10m 25s (v2.6.50) of runtime to occur by using the "time" command), the following output is shown: --- OUTPUT BEGINS --- e1000: Reading register at offset: 0x00002410. It is not fully implemente= d. e1000: Reading register at offset: 0x00002410. It is not fully implemente= d. e1000: Reading register at offset: 0x00002410. It is not fully implemente= d. e1000: Reading register at offset: 0x00002410. It is not fully implemente= d. e1000: Reading register at offset: 0x00002418. It is not fully implemente= d. e1000: Reading register at offset: 0x00002418. It is not fully implemente= d. e1000: Reading register at offset: 0x00002418. It is not fully implemente= d. e1000: Reading register at offset: 0x00002418. It is not fully implemente= d. e1000: Reading register at offset: 0x00002420. It is not fully implemente= d. e1000: Reading register at offset: 0x00002420. It is not fully implemente= d. e1000: Reading register at offset: 0x00002420. It is not fully implemente= d. e1000: Reading register at offset: 0x00002420. It is not fully implemente= d. e1000: Reading register at offset: 0x00002428. It is not fully implemente= d. e1000: Reading register at offset: 0x00002428. It is not fully implemente= d. e1000: Reading register at offset: 0x00002428. It is not fully implemente= d. e1000: Reading register at offset: 0x00002428. It is not fully implemente= d. e1000: Reading register at offset: 0x00002430. It is not fully implemente= d. e1000: Reading register at offset: 0x00002430. It is not fully implemente= d. e1000: Reading register at offset: 0x00002430. It is not fully implemente= d. e1000: Reading register at offset: 0x00002430. It is not fully implemente= d. e1000: Reading register at offset: 0x00003410. It is not fully implemente= d. e1000: Reading register at offset: 0x00003410. It is not fully implemente= d. e1000: Reading register at offset: 0x00003410. It is not fully implemente= d. e1000: Reading register at offset: 0x00003410. It is not fully implemente= d. e1000: Reading register at offset: 0x00003418. It is not fully implemente= d. e1000: Reading register at offset: 0x00003418. It is not fully implemente= d. e1000: Reading register at offset: 0x00003418. It is not fully implemente= d. e1000: Reading register at offset: 0x00003418. It is not fully implemente= d. e1000: Reading register at offset: 0x00003420. It is not fully implemente= d. e1000: Reading register at offset: 0x00003420. It is not fully implemente= d. e1000: Reading register at offset: 0x00003420. It is not fully implemente= d. e1000: Reading register at offset: 0x00003420. It is not fully implemente= d. e1000: Reading register at offset: 0x00003428. It is not fully implemente= d. e1000: Reading register at offset: 0x00003428. It is not fully implemente= d. e1000: Reading register at offset: 0x00003428. It is not fully implemente= d. e1000: Reading register at offset: 0x00003428. It is not fully implemente= d. e1000: Reading register at offset: 0x00003430. It is not fully implemente= d. e1000: Reading register at offset: 0x00003430. It is not fully implemente= d. e1000: Reading register at offset: 0x00003430. It is not fully implemente= d. e1000: Reading register at offset: 0x00003430. It is not fully implemente= d. e1000: Reading register at offset: 0x00010000. It is not fully implemente= d. e1000: Reading register at offset: 0x00010000. It is not fully implemente= d. e1000: Reading register at offset: 0x00010000. It is not fully implemente= d. e1000: Reading register at offset: 0x00010000. It is not fully implemente= d. qemu: fatal: Trying to execute code outside RAM or ROM at 0x000a0063 EAX=3D00100000 EBX=3D00000018 ECX=3D00002c06 EDX=3D0009cde0 ESI=3D000caa20 EDI=3D00100000 EBP=3Dffffffff ESP=3D00007bcc EIP=3D000038e3 EFL=3D00000046 [---Z-P-] CPL=3D0 II=3D0 A20=3D1 SMM=3D0 HL= T=3D0 ES =3D0000 00000000 ffffffff 00cf9300 CS =3D9c78 0009c780 ffffffff 008f9b00 SS =3D0000 00000000 ffffffff 008f9300 DS =3D9cf3 0009cf30 ffffffff 00cf9300 FS =3D0000 00000000 ffffffff 00cf9300 GS =3D0000 00000000 ffffffff 00cf9300 LDT=3D0000 00000000 0000ffff 00008200 TR =3D0000 00000000 0000ffff 00008b00 GDT=3D 00000000 00000000 IDT=3D 00000000 000003ff CR0=3D00000010 CR2=3D00000000 CR3=3D00000000 CR4=3D00000000 DR0=3D00000000 DR1=3D00000000 DR2=3D00000000 DR3=3D00000000 = DR6=3Dffff0ff0 DR7=3D00000400 CCS=3D000000c2 CCD=3D00002c06 CCO=3DCLR = EFER=3D0000000000000000 FCW=3D037f FSW=3D0000 [ST=3D0] FTW=3D00 MXCSR=3D00001f80 FPR0=3D0000000000000000 0000 FPR1=3D0000000000000000 0000 FPR2=3D0000000000000000 0000 FPR3=3D0000000000000000 0000 FPR4=3D0000000000000000 0000 FPR5=3D0000000000000000 0000 FPR6=3D0000000000000000 0000 FPR7=3D0000000000000000 0000 XMM00=3D00000000000000000000000000000000 XMM01=3D000000000000000000000000= 00000000 XMM02=3D00000000000000000000000000000000 XMM03=3D000000000000000000000000= 00000000 XMM04=3D00000000000000000000000000000000 XMM05=3D000000000000000000000000= 00000000 XMM06=3D00000000000000000000000000000000 XMM07=3D000000000000000000000000= 00000000 --- OUTPUT ENDS --- To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1587211/+subscriptions