From owner-freebsd-current@freebsd.org Fri Apr 15 13:20:33 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 80211AEC94D for ; Fri, 15 Apr 2016 13:20:33 +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 EB2781E28 for ; Fri, 15 Apr 2016 13:20:32 +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 u3FDKEpU010188 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 15 Apr 2016 16:20:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u3FDKEpU010188 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u3FDKEUk010186; Fri, 15 Apr 2016 16:20:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 15 Apr 2016 16:20:14 +0300 From: Konstantin Belousov To: Paul Wootton Cc: Freebsd-current@freebsd.org Subject: Re: Kernel trap when booting inside VirtualBox Message-ID: <20160415132014.GK2422@kib.kiev.ua> References: <17ea940319f36a803594bd00940efe4f@fisheyehq.com> <20160412075534.GC18263@kib.kiev.ua> <000b01d19506$cb7d8b80$6278a280$@com> <090901d19717$a98458c0$fc8d0a40$@co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <090901d19717$a98458c0$fc8d0a40$@co.uk> 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: Fri, 15 Apr 2016 13:20:33 -0000 On Fri, Apr 15, 2016 at 02:06:43PM +0100, Paul Wootton wrote: > On Wed, Apr 12, 2016 at 11:01PM, Paul Wootton wrote: > >On Tue, Apr 12, 2016 at 02:02PM, Paul Wootton wrote: > > > >With the help of Konstantin, I have got a proper disassembly. > > > >I have recompiled a few times so my new panic is > >instruction pointer = 0x20:0xffffffff80fed2d9 > >stack pointer = 0x28:0xffffffff824d89c0 > >frame pointer = 0x28:0xffffffff824d8a40 > >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 at native_lapic_setup+0x99: lesl %edx,%esp > > > >and a disassembly gives > >0xffffffff80fed2d9 : (bad) 0x99 == 153 > > > >Now to figure out why I am making bad binaries. > >Ive not seen any issues yet with the world, so its not as if every binary I > >make is bad > > I have found that having CPUTYPE?=native in /etc/make.conf was my issue. > Commenting that line out (the only other line I have is KERNCONF) and now I > can build a good kernel I think there is something to look at by clang people.