From owner-freebsd-fs@freebsd.org Fri Aug 7 20:32:42 2015 Return-Path: Delivered-To: freebsd-fs@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 F1A609B67FF for ; Fri, 7 Aug 2015 20:32:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::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 CF9E6D5F for ; Fri, 7 Aug 2015 20:32:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (75-48-78-19.lightspeed.cncrca.sbcglobal.net [75.48.78.19]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C5B79B9C8; Fri, 7 Aug 2015 16:32:41 -0400 (EDT) From: John Baldwin To: freebsd-fs@freebsd.org Subject: Re: BTX halted Date: Fri, 07 Aug 2015 12:29:07 -0700 Message-ID: <2241493.vMCzZXQH3f@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: <1429520064.12915.56.camel@data-b104.adm.slu.se> References: <1429520064.12915.56.camel@data-b104.adm.slu.se> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 07 Aug 2015 16:32:42 -0400 (EDT) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2015 20:32:43 -0000 On Monday, April 20, 2015 08:54:24 AM Karli Sj=F6berg wrote: > Hey all! >=20 > I was just upgrading one of our storage's to 10-STABLE as per Bug > 191348[*] when something strange happened after writing new boot code= > and rebooting: >=20 > BTX loader 1.00 BTX version is 1.02 > Consoles: internal video/keyboard > BIOS drive C: is disk8 > BIOS drive D: is disk9 >=20 > int=3D00000000 err=3D00000000 efl=3D00010246 eip=3D00037d34 > eax=3D00000001 ebx=3D00000000 ecx=3D00000000 edx=3D00000000 > esi=3D00000000 edi=3D00000000 ebp=3D0008f600 esp=3D0008f598 > cs=3D002b ds=3D0033 es=3D0033 fs=3D0033 gs=3D0033 ss=3D0033 > cs:eip=3Df7 35 d0 f4 03 00 85 f6-74 05 89 3e 89 5e 04 89 > c2 e9 cc 00 00 00 66 c7-45 ea 00 00 89 d8 c1 e8 > ss:esp=3D00 00 20 00 00 00 00 00-00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 > BTX halted >=20 > Never happened to me before. I then booted with a 10.1-RELEASE CD and= > wrote bootcode from that, same problem. 9.3; same there... >=20 > Any pointers? Hmm, looks like a divide-by-zero fault: 00000000 F735D0F40300 div dword [dword 0x3f4d0] 00000006 85F6 test esi,esi 00000008 7405 jz 0xf 0000000A 893E mov [esi],edi 0000000C 895E04 mov [esi+0x4],ebx 0000000F 89C2 mov edx,eax 00000011 E9CC000000 jmp dword 0xe2 00000016 66C745EA0000 mov word [ebp-0x16],0x0 0000001C 89D8 mov eax,ebx Are you using ZFS or UFS? Also, do you have the world build from when = you did this? If so we can use gdb on the 'loader.sym' file to map the fau= lting instruction (eip above) to a source line. --=20 John Baldwin