From owner-freebsd-current@FreeBSD.ORG Sat Nov 15 18:52:33 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CAD25363 for ; Sat, 15 Nov 2014 18:52:33 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F63BA27 for ; Sat, 15 Nov 2014 18:52:33 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XpiSQ-0003Oa-Eg; Sat, 15 Nov 2014 18:52:26 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sAFIqPBI006433; Sat, 15 Nov 2014 11:52:25 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/0rFsDzHdx2DOuOMwbu6D5 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Finding a rogue src/sys commit with bisection? From: Ian Lepore To: Steve Kargl In-Reply-To: <20141115184332.GA30344@troutmask.apl.washington.edu> References: <20141115184332.GA30344@troutmask.apl.washington.edu> Content-Type: text/plain; charset="us-ascii" Date: Sat, 15 Nov 2014 11:52:24 -0700 Message-ID: <1416077544.4781.148.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 15 Nov 2014 18:52:33 -0000 On Sat, 2014-11-15 at 10:43 -0800, Steve Kargl wrote: > Before I totally hose by /usr/src directory, does anyone > have some guidelines on doing a binary search for a rogue > commit in /usr/src/sys?. Either cam or usb (or acpi?) has > broken the ability to remove a external USB device once it > is plugged into a usb port on my Dell Latitude D530 laptop. > I know that a good kernel can be built with r271273 and > a bad kernel comes from (nearly) top of tree at r274456. > > I assume I need to do somthing along the lines > > % cd /usr/src/sys > % svn merge -r 274456:272864 (half way point between good and bad) > (build kernel and test) > % cd /usr/src/sys > % svn revert -R . > (assume 272864 builds working kernel) > % svn merge -r 274456:273660 (1/2 point between 272864 and 274456). > > Rinse and repeat. > I've always used 'svn up -rnnnnnn' to bisect. No need to revert, just repeatedly update to the next halfway point, and when you're all done, -rHEAD to get back to normal. I've also had very good results with using -DNO_CLEAN on kernel bisects, it lets you zoom in quickly then when you think you have a candidate you can do a more complete clean-and-rebuild to be sure. Sometimes build glitches will require a clean rebuild at some bisect points. -- Ian