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

Re: current git kernel has strange problems during bisect

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jan 11, 2009, 22:34 UTC
Message-ID
<alpine.LNX.1.00.0901111727510.19665@iabervon.org>
In-Reply-To
<f19298770901111417t6762e1e3x79b2f488ee6f1243@mail.gmail.com>
On Mon, 12 Jan 2009, Alexey Zaytsev wrote:
Show 50 quoted lines
> On Sun, Jan 11, 2009 at 23:04, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> >
> > On Sun, 11 Jan 2009, Sam Ravnborg wrote:
> >>
> >> The cost of moving this piece of history from one git tree to another
> >> git tree is that we make it harder to debug the kernel for the advanced user
> >> that knows how to do bisect.
> >>
> >> It is not like this history would be lost - one just had to look
> >> somewhere else to find it.
> >>
> >> That may be a bad pain/benefit ratio - time will tell.
> >
> > Umm. No.
> >
> > Time is exactly what makes it useful. It will make all the downsides
> > shrink, and the advantages stay.
> >
> >> There should be a way to avoid such pain when bisecting without
> >> having to mark a semi-random (for the average person) commit as good.
> >
> > Well, you don't actually have to mark that semi-random one as good either.
> > What you can do is to just mark anything that _only_ contains fs/btrfs as
> > good. IOW, you don't have to know the magic number - you just have to be
> > told that "oh, if you only have btrfs files, and you're not actively
> > bisecting a btrfs bug, just do 'git bisect good' and continue".
> >
> > Yeah, you'll hit it a few times, but you don't even have to compile things
> > or boot anything, so it's not actually going to be all that much slower
> > than just knowing about the magic point either.
> 
> But would not such bug avoid being bisected if you blindly
> mark btrfs commits as good?
> 
> v2.6.29 <-- bad
> ...
> ...
> ...
> btrfs stuff <-- mark as good
> ...
> the-real-bug
> ...
> v2.6.28 <-- good
> 
> So you hit the btrfs commit, mark it as good, leaving the real bug below,
> and the bisection continues, with both sides being actually bad.
> 
> Am I missing something?

Yes, there are no kernel bugs below the btrfs stuff, because there's no kernel at all below the btrfs stuff. The history is actually like:

A -- B -- C -- D -- G
              /
        F -- E

F and E are the btrfs stuff, while A-D and G are commit containing the kernel source (D and G also containing btrfs). Marking E as good cuts off F, but doesn't cut off anything at all on the top line. Of course, if you're actually debugging a problem with btrfs that you somehow know to have worked while btrfs was a separate module at so point, you would want to get into this history (and would build it as a separate module in order to do so).

	-Daniel
*This .sig left intentionally blank*
Previous: Sam RavnborgNext: Andi Kleen
Message 21 of 23 in “current git kernel has strange problems during bisect”
  1. Christian BorntraegerJan 11, 2009
  2. Christian BorntraegerJan 11, 2009
  3. Johannes SchindelinJan 11, 2009
  4. Christian BorntraegerJan 11, 2009
  5. Boaz HarroshJan 11, 2009
  6. Linus TorvaldsJan 11, 2009
  7. Sam RavnborgJan 11, 2009
  8. Alexey ZaytsevJan 11, 2009
  9. Pierre HabouzitJan 11, 2009
  10. Christian CouderJan 12, 2009
  11. Christian CouderJan 12, 2009
  12. Linus TorvaldsJan 11, 2009
  13. Christian BorntraegerJan 11, 2009
  14. Daniel BarkalowJan 11, 2009
  15. Kyle MoffettJan 13, 2009
  16. Andreas BombeJan 15, 2009
  17. Kyle MoffettJan 15, 2009
  18. Sam RavnborgJan 11, 2009
  19. Alexey ZaytsevJan 11, 2009
  20. Sam RavnborgJan 11, 2009
  21. Daniel BarkalowJan 11, 2009
  22. Andi KleenJan 11, 2009
  23. Johannes SchindelinJan 11, 2009

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.