From owner-freebsd-current@freebsd.org Tue Apr 12 23:20:29 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 8D0CFB0E24B for ; Tue, 12 Apr 2016 23:20:29 +0000 (UTC) (envelope-from paulw@fisheyehq.com) Received: from smtprelay.hostedemail.com (smtprelay0162.hostedemail.com [216.40.44.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3FB1AA8 for ; Tue, 12 Apr 2016 23:20:28 +0000 (UTC) (envelope-from paulw@fisheyehq.com) Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave03.hostedemail.com (Postfix) with ESMTP id CC03B28E6D2 for ; Tue, 12 Apr 2016 22:01:02 +0000 (UTC) Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id D79E5C2141; Tue, 12 Apr 2016 22:00:55 +0000 (UTC) X-Session-Marker: 7061756C77406669736865796568712E636F6D X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, paulw@fisheyehq.com, :::, RULES_HIT:10:41:355:379:541:542:599:960:967:973:988:989:1042:1155:1160:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:1981:2194:2199:2393:2525:2553:2560:2563:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4605:5007:6117:6119:7903:7974:8829:8985:9025:10004:10400:10848:11026:11232:11233:11658:11914:12043:12517:12519:12555:12663:13018:13019:13439:14181:14721:21080:21366:30012:30022:30054:30083:30090:30091, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0, LFtime:1, LUA_SUMMARY:none X-HE-Tag: room60_423e1b03a365a X-Filterd-Recvd-Size: 3818 Received: from DESKTOPBP64BFH (78-32-77-65.static.enta.net [78.32.77.65]) (Authenticated sender: paulw@fisheyehq.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Tue, 12 Apr 2016 22:00:55 +0000 (UTC) From: "Paul Wootton" To: Cc: "'Konstantin Belousov'" References: <17ea940319f36a803594bd00940efe4f@fisheyehq.com> <20160412075534.GC18263@kib.kiev.ua> In-Reply-To: Subject: RE: Kernel trap when booting inside VirtualBox Date: Tue, 12 Apr 2016 23:00:57 +0100 Organization: Fisheye Message-ID: <000b01d19506$cb7d8b80$6278a280$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdGUkLTNQ3nmdE/TR6y/FaaCtOOgcgAKpfcAABI2g9A= Content-Language: en-gb x-cr-hashedpuzzle: C8pD DTlX F7ty Hx4s IV3B KG8x LlBG L2Qx Mnj6 O2M/ P0gv QNok Tv58 VGec Vb61 Vcjf; 2; ZgByAGUAZQBiAHMAZAAtAGMAdQByAHIAZQBuAHQAQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBrAG8AcwB0AGkAawBiAGUAbABAAGcAbQBhAGkAbAAuAGMAbwBtAA==; Sosha1_v1; 7; {1A89C231-3A48-4464-9863-36AF9FB66B5D}; cABhAHUAbAB3AEAAZgBpAHMAaABlAHkAZQBoAHEALgBjAG8AbQA=; Tue, 12 Apr 2016 22:00:53 GMT; UgBFADoAIABLAGUAcgBuAGUAbAAgAHQAcgBhAHAAIAB3AGgAZQBuACAAYgBvAG8AdABpAG4AZwAgAGkAbgBzAGkAZABlACAAVgBpAHIAdAB1AGEAbABCAG8AeAA= x-cr-puzzleid: {1A89C231-3A48-4464-9863-36AF9FB66B5D} X-Antivirus: avast! (VPS 160412-1, 12/04/2016), Outbound message X-Antivirus-Status: Clean 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 23:20:29 -0000 On Tue, Apr 12, 2016 at 02:02PM, Paul Wootton wrote: >On Tue, Apr 12, 2016 at 08:56AM, Konstantin Belousov wrote: >>Anyway, please do 'kgdb kernel.debug' for your HEAD kernel, and >>send me the disassemble of the native_lapic_setup function. > >" >Dump of assembler code for function native_lapic_setup: >0xffffffff80fd1320 : add %al,(%rax) >0xffffffff80fd1322 : add %al,(%rax) >0xffffffff80fd1324 : add %al,(%rax) >0xffffffff80fd1326 : add %al,(%rax) >0xffffffff80fd1328 : add %al,(%rax) >... >... >0xffffffff80fd1880 : add %al,(%rax) >0xffffffff80fd1882 : add %al,(%rax) >0xffffffff80fd1884 : add %al,(%rax) >0xffffffff80fd1886 : add %al,(%rax) >End of assembler dump >" >Every line is the same instruction, add %al,(%rax) > >I downloaded an ISO of r294499 and that booted correctly inside VBox. >I SVNed down to r294499, compiled and that did not boot. Did a disassembley and it's the same as above. >I downloaded an ISO of r297692 and that booted correctly. > >So it's got to be either my kernel conf or my enviroment > >Im going to try and compile a generic kernel and see if that works 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 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus