From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 04:42:03 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1532C6EB; Sun, 6 Jul 2014 04:42:03 +0000 (UTC) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) (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 C6A2D2ECA; Sun, 6 Jul 2014 04:42:02 +0000 (UTC) Received: by gddsn.org.cn (Postfix, from userid 65534) id BC43C2E0A8; Sun, 6 Jul 2014 12:41:51 +0800 (CST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gddsn.org.cn X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lp.gddsn.org.cn (unknown [218.19.164.153]) (Authenticated sender: wsk) by gddsn.org.cn (Postfix) with ESMTPA id A0B752E046; Sun, 6 Jul 2014 12:41:37 +0800 (CST) Message-ID: <53B8D382.2000809@gddsn.org.cn> Date: Sun, 06 Jul 2014 12:41:38 +0800 From: wsk User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Dimitry Andric , Arrigo Marchiori Subject: Re: 10.0-RELEASE BTX halted on DELL R900 References: <53B659B7.3020202@gddsn.org.cn> <20140705060939.GA11739@flea.casa> <5881B5EA-B625-4E47-ADCB-3F2F894A8630@FreeBSD.org> In-Reply-To: <5881B5EA-B625-4E47-ADCB-3F2F894A8630@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: stable@freebsd.org, questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 04:42:03 -0000 于 2014/07/05 20:57, Dimitry Andric 写道: hi, Andric it still got BTX halted with your patched loader. and here is the new BTX picture http://sw.gddsn.org.cn/jopens/test/btx_edd.jpg TIA > On 05 Jul 2014, at 08:09, Arrigo Marchiori wrote: >> On Fri, Jul 04, 2014 at 03:37:27PM +0800, wsk wrote: >>> lists >>> I met a BTX halted problem while upgrade Freebsd 9.0-RC3 to >>> 10.0-Release via freebsd-update. >>> and please check the link below: >>> http://sw.gddsn.org.cn/jopens/test/btx.jpg >>> >>> BTW: I can booted 10.0-R from DVD-ROM as expected but got same error >>> message with flash-driver. >> I don't remember if that error message means ``division by zero''. > It certainly looks a lot like it. The code at cs:eip from the OP's > screenshot disassembles to: > > 36217: f7 35 bc d6 03 00 divl 0x3d6bc > 3621d: 85 ff test %edi,%edi > 3621f: 74 05 je 0x36226 > 36221: 89 1f mov %ebx,(%edi) > 36223: 89 4f 04 mov %ecx,0x4(%edi) > 36226: 89 c2 mov %eax,%edx > 36228: e9 c2 00 00 00 jmp 0x362ef > 3622d: 66 c7 45 ea 00 00 movw $0x0,-0x16(%ebp) > 36233: 89 c8 mov %ecx,%eax > > This is a piece of code from /usr/src/lib/libstand/qdivrem.c, which is > used to do 64-bit divides. > > It would be nice if you could try out this loader binary, which has a > few additional checks for zero sector counts or sizes: > > http://www.andric.com/freebsd/loader.edd > SHA256 (loader.edd) = 89f99500adb3a8feaa84336ce625975bcfdc0f886514ab02de4992859a671aa9 > > However, this might still mis-detect your disk sizes, obviously. > > >> Just in case, you could try the patch attached to this bug: >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=176748 >> >> The patch was compiled for 9-STABLE; if it does not apply to the 10.0 >> sources, then drop me a line so I can adapt it. > I tried this patch on a few FreeBSD VMs, and each of them stopped being > able to mount the root filesystem because of it. I don't really know > what the explanation is... > > -Dimitry > --