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

Re: AAARGH bisection is hard (Re: [2.6.39 regression] X locks up hard right after logging in)

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
May 12, 2011, 17:37 UTC
Message-ID
<BANLkTi=YDZa+BRaG90vJsjrT9VxgySrDRQ@mail.gmail.com>
In-Reply-To
<BANLkTi=kb_m-CfrpnD8qQTVYLGaDdgy_tg@mail.gmail.com>
On Thu, May 12, 2011 at 10:15 AM, Andrew Lutomirski <luto@mit.edu> wrote:
Show 6 quoted lines
>
> OK, this sucks.  In the course of bisecting this, I've hit two other
> apparently unrelated bugs that prevent my from testing large numbers
> of kernels.  Do I have two questions:
>
> 1. Anyone have any ideas from looking at the log?
Nope, that doesn't look very helpful.
> 2.  The !&$#@ bisection is skipping all over the place.  I've seen
> 2.6.37 versions and all manner of -rc's out of order.

That's the _point_ of bisection. It jumps around. You can start off trying to pick points on my development tree, but I only have a hundred merges or so. You're going to start delving into the actual development versions very quickly. And if you don't do it early, bisection is going to be much much slower, because it's not going to pick half-way points.

So bisection works so well exactly because it picks points that are far away from each other, and you should just totally ignore the version number. It's meaningless. Looking at it just confuses you. Don't do it.

Now, "pick stable points" would obviously be nice, but that is going to have to be manual. You can certainly make some helper scripts, and that's where that "--first-parent" thing comes in. So if you want to, just use "git bisect reset" to the commit you want to test.

If you think it's networking, for example, and you've bisected into there but aren't sure, do "gitk --bisect", find the point where I merge, and pick that (and my parent), and "git bisect reset" those points. That way you can verify that it's the networking merge (or verify that it isn't).

                         Linus
Previous: Andrew LutomirskiNext: Johannes Sixt
Message 2 of 18 in “AAARGH bisection is hard (Re: [2.6.39 regression] X locks up hard right after logging in)”
  1. Andrew LutomirskiMay 12, 2011
  2. Linus TorvaldsMay 12, 2011
  3. Johannes SixtMay 12, 2011
  4. Linus TorvaldsMay 12, 2011
  5. Andrew LutomirskiMay 13, 2011
  6. Christian CouderMay 13, 2011
  7. Andrew LutomirskiMay 13, 2011
  8. Andrew LutomirskiMay 13, 2011
  9. Linus TorvaldsMay 13, 2011
  10. Andrew LutomirskiMay 13, 2011
  11. Andrew LutomirskiMay 13, 2011
  12. Linus TorvaldsMay 13, 2011
  13. Johannes SixtMay 13, 2011
  14. Linus TorvaldsMay 13, 2011
  15. Johannes SixtMay 13, 2011
  16. Junio C HamanoMay 13, 2011
  17. Andrew LutomirskiMay 13, 2011
  18. Linus TorvaldsMay 13, 2011

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.