git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git bisect v2.6.27 v2.6.26 problem/bug

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Nov 3, 2008, 18:43 UTC
Message-ID
<alpine.LFD.2.00.0811031035390.3419@nehalem.linux-foundation.org>
In-Reply-To
<20081103173911.GA12363@xs4all.net>
On Mon, 3 Nov 2008, Miquel van Smoorenburg wrote:
Show 5 quoted lines
> 
> If at this point I do a 'git bisect good' I end up in a 2.6.26
> branch, which is good, but after a few bisects I end up at
> a version before v2.6.26 (2.6.26-rc5) again, which should be
> impossible right ?
No, not at all.

What is going on is that you are hitting commits that were not merged into 2.6.26 (so they are _not_ in the "good" part), but they were _developed_ before it. So the kernel Makefile says "v2.6.26-rc8" (not quite 2.6.26 yet), but that's because the version in the Makefile ends up being a linear explanation of what the nearest _earlier_ version was, but is not at all indicative of the much more complex non-linear development model.

IOW, you have history that looks like
	- A -> B -> C->
	    \     /
	     - D -

And let's say that 'A' is v2.6.26-rc8, while 'B' is the final v2.6.26 release, and is your 'good', while 'C' is 2.6.27, and is your 'bad'.

What does that make 'D' then?

It is clearly potentially bad, because it is _not_ in the good set (it was merged after 2.6.26, and could very well be the source of your bug. But think about what 'Makefile' must contain in 'D'.

The difference between linear history and non-linear history is very important, and "git bisect" very much is all about getting it right. It does't take a "linear" half-way point, it really does a _set_ operation, and it bisects the set of commits. And that set of commits is a DAG, not a linear series.

> Anyway - at the end I end up with a 'good' version that is
> 2.6.26-rc<something> which is kind of useless. I know that
> version up to 2.6.26 are good ...
Not at all. It's not "kind of useless", it's very important.
> What am I doing wrong ?

You're not doing anything wrong, you just didn't realize how non-linear development works.

			Linus
Previous: Alejandro Riveira
Message 3 of 3 in “git bisect v2.6.27 v2.6.26 problem/bug”
  1. Miquel van SmoorenburgNov 3, 2008
  2. Alejandro RiveiraNov 3, 2008
  3. Linus TorvaldsNov 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.