From owner-freebsd-ports@FreeBSD.ORG Sat Sep 6 20:18:03 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B331A106564A for ; Sat, 6 Sep 2008 20:18:03 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id 3FE468FC18 for ; Sat, 6 Sep 2008 20:18:02 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so558367ika.3 for ; Sat, 06 Sep 2008 13:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=g5s96HtfoMXmBKo+IIh1lIRVa9JSFMXshH1tojYusKY=; b=n2X2otk46+yR14xQ1+fv85Q1Me3sgPb8SOB54fO2po5oMPC+xl8SOjG6xU3u+IuRuL +t8pziYjsJgWLQPh7H9uzoDNY/ZwnfvbDdUeoczRc4B27co+kLefxn2tHE4zgheuX1Ql e8HIG1JUlseL2hNtqnIzsvE8qFQ9DeflFpL5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=me3wxIEz3coPpu4WIxFjILH2iGYCaMpyEnni8jClnUvHQYWi37699ZB1E27g9fIM+G NAHDv3GxoQIL+vbzjOAW8t0bZefYIFI1F1q7urjz2Ud/56KW38ZWx/2rN9C1zXO3BIhc Z6/DJWrQRb4O95LzVAlL+eDh40m8hZkFu+vX4= Received: by 10.103.173.5 with SMTP id a5mr8949346mup.117.1220732278965; Sat, 06 Sep 2008 13:17:58 -0700 (PDT) Received: by 10.103.231.14 with HTTP; Sat, 6 Sep 2008 13:17:58 -0700 (PDT) Message-ID: Date: Sat, 6 Sep 2008 17:17:58 -0300 From: "Carlos A. M. dos Santos" To: Ganbold In-Reply-To: <48C27D1F.4000205@micom.mng.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C27D1F.4000205@micom.mng.net> Cc: freebsd-ports Subject: Re: qemu problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 20:18:03 -0000 On Sat, Sep 6, 2008 at 9:52 AM, Ganbold wrote: > Hi, > > I have problem installing FreeBSD-7.0 using qemu in RELENG_7. > It starts installing FreeBSD, but it crashes and dumps core in different > places. It would be important to know what "different places" means. It is *during* installation or *after* it? > Did somebody experience this before? > > devil# uname -an > FreeBSD devil.micom.mng.net 7.0-STABLE FreeBSD 7.0-STABLE #9: Tue Aug 19 > 18:35:02 ULAT 2008 tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL > i386 > devil# > > devil# qemu -boot d -hda freebsd.img -m 256 -cdrom > ~tsgan/7.0-RELEASE-i386-disc1.iso -localtime -net nic -net tap smp 2 > qemu: fatal: triple fault > EAX=c0bfe67c EBX=0000000c ECX=f001003f EDX=f001003f > ESI=c0bfe67c EDI=c24f7c60 EBP=c0bfe670 ESP=c0bfe5e0 > EIP=c0a49004 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 > ES =0028 00000000 ffffffff 00cf9300 > CS =0020 00000000 ffffffff 00cf9b00 > SS =0028 00000000 ffffffff 00cf9300 > DS =0028 00000000 ffffffff 00cf9300 > FS =0008 ffc00000 ffffffff ffcf93c0 > GS =0028 00000000 ffffffff 00cf9300 > LDT=0050 c0bfef20 00000087 c000e2bf > TR =0060 c0bff1c0 00000067 c00089bf > GDT= c0bfe5a0 00000097 > IDT= c0c00240 000007ff > CR0=e005003b CR2=f0010043 CR3=0141e000 CR4=00000690 > CCS=c0bfe67c CCD=c0bfe6e8 CCO=ADDB FCW=127f FSW=0020 [ST=0] FTW=00 > MXCSR=00001f80 > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 > FPR4=ccccccccccc40000 3ffe FPR5=8000000000000000 3ffe > FPR6=e670d1fa33376800 3ffe FPR7=8e670d1fa3337800 4002 > XMM00=00000000000000000000000000000000 > XMM01=00000000000000000000000000000000 > XMM02=00000000000000000000000000000000 > XMM03=00000000000000000000000000000000 > XMM04=00000000000000000000000000000000 > XMM05=00000000000000000000000000000000 > XMM06=00000000000000000000000000000000 > XMM07=00000000000000000000000000000000 > Abort (core dumped) QEMU treats triple faults generated by the guest OS as fatal errors, so it aborts execution and dumps core. In my opinion this is a too self-punishing behavior that chould be replaced by a less harmful VM restart. Triple faults are in fact fatal errors, so QEMU is correct, in theory. In practice, however, some operating systems generate triple faults on purpose in order to force a system reboot. The Linux kernel used to do this. It appears that the FreeBSD boot loader does it as well, so if you start FreeBSD and choose option 7 in the boot prompt you will ever crash QEMU. > %pkg_info|grep qemu > kqemu-kmod-1.3.0.p11_9 Kernel Accelerator for QEMU CPU Emulator > qemu-0.9.1_9 QEMU CPU Emulator > %kldstat > Id Refs Address Size Name > 1 22 0xc0400000 701ae4 kernel > 2 1 0xc0b02000 5844 if_tap.ko > 3 1 0xc0b08000 15524 snd_hda.ko > 4 2 0xc0b1e000 52a08 sound.ko > 5 2 0xc0b71000 10ebc drm.ko > 6 1 0xc0b82000 71c4 i915.ko > 7 1 0xc0b8a000 1ff24 kqemu.ko > 8 1 0xc0baa000 b8c8 aio.ko > 9 1 0xc0bb6000 6b3d0 acpi.ko > 10 1 0xc4340000 9000 if_bridge.ko > 11 1 0xc4349000 6000 bridgestp.ko > 12 2 0xc44ac000 d000 ipfw.ko > 13 1 0xc4500000 4000 ipdivert.ko > 14 1 0xc4526000 22000 linux.ko > 15 1 0xc45a0000 e000 fuse.ko -- cd /usr/ports/sysutils/life make clean