From owner-freebsd-current@freebsd.org Tue Apr 12 07:55:47 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFE1AB0C065 for ; Tue, 12 Apr 2016 07:55:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72F1C1EFC for ; Tue, 12 Apr 2016 07:55:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u3C7tYj6073042 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 12 Apr 2016 10:55:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u3C7tYj6073042 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u3C7tYQi073033; Tue, 12 Apr 2016 10:55:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 12 Apr 2016 10:55:34 +0300 From: Konstantin Belousov To: paulw@fisheyehq.com Cc: Freebsd-current@freebsd.org Subject: Re: Kernel trap when booting inside VirtualBox Message-ID: <20160412075534.GC18263@kib.kiev.ua> References: <17ea940319f36a803594bd00940efe4f@fisheyehq.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17ea940319f36a803594bd00940efe4f@fisheyehq.com> User-Agent: Mutt/1.6.0 (2016-04-01) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 07:55:48 -0000 On Tue, Apr 12, 2016 at 07:14:47AM +0100, paulw@fisheyehq.com wrote: > Hi, > > Has anyone else got an issue with running FreeBSD SVN r297810 inside a > VirtualBox session? > > I installed 10.3, booting under EFI on my second harddrive (Windows in > on the first drive). FreeBSD would boot correctly from UEFI boot or from > inside VirtualBox. I SVNed up to head (r297810), compiled and installed > it. > It will now boot correctly from UEFI boot, but kernel traps very early > on when booted from VirtualBox. > > As a side note, I am using booting from zfs. > I am starting FreeBSD by calling boot1.efi from inside EFIShell (from > both UEFI boot and VirtualBox) > > Has anyone else seen this? Is it my setup? > > real memory = 4831838208 (4608 MB) > avail memory = 4096802816 (3907 MB) > Event timer "LAPIC" quality 400 > APIC APIC Table: > Random: unblocking device. > Loapic0 irqs 0-23 on motherboard Kernel trap 1 with > interrupts disabled > > > Fatal trap 1: privileged instruction fault while in kernel mode cpuid = > 0: apic id = 00 > instruction pointer = 0x20:0xffffffff80fed419 > stack pointer = 0x28:0xffffffff824d9c00 > frame pointer = 0x28:0xffffffff824d9c80 > code segment = base 0x0, Limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > Processor eflags = resume, IOPL = 0 > Current process = 0 (swapper) > [ thread pid 0 tid 100000 ] > Stopped as native_lapic_setup+0x99: lesl %edx,%esp > db>bt > Tracing pis 0 tid 100000 td 0xffffffff81d351b0 > native_lapic_setup() at native_lapic_setup+0x99/frame 0xffffffff8249c80 > apic_setup_io() at apic_setup_io+0x53/frame 0xffffffff824d9c90 > mi_startup() at mi_startup+0x118/frame 0xffffffff824d9cb0 > btext() at btext+0x2c > db> > Was the panic text above trascribed from the screen manually ? Anyway, please do 'kgdb kernel.debug' for your HEAD kernel, and send me the disassemble of the native_lapic_setup function.