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

Re: git-bisect problem

From
Junio C Hamano <junkio@cox.net>
Date
Feb 14, 2006, 01:52 UTC
Message-ID
<7v8xseyae8.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060213165620.11ec6051.akpm@osdl.org>
Andrew Morton <akpm@osdl.org> writes:
Show 7 quoted lines
> The bug is in Jeff's tree only
> (git+ssh://master.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git#ALL)
> so I wanted to perform the bisection on the git-netdev-all branch.
>
> So I did a `git log git-netdev-all' and looked at where the ipw2200 changes
> were and then decided that the 2.6.16-rc1 and 2.6.16-rc2 commits straddled
> those changes nicely, so I chose those as the bisection starting points.

Ah. Jeff merges from Linus and that causes things on Linus tree to appear in his tree. So you saw -rc1 and -rc2 in the output, but neither of them may contain the problematic change, and are not good/bad pair at all. They are probably both good ones.

git log output is chronological and there is no guarantee that the ordering has much to do with the actual ordering of commits, especially when merges are involved. In fact, "Jeff's tree only" suggests to me that 2.6.16-rc2 has not merged those changes, but you thought (arguably rightly so) rc1 and rc2 straddled them.

              -rc1                     -rc2
    ---o---o---o---o---o---o---o---o---o---o---o---o--- Linus
                                            \ 
                                             \ 
       ---o---o---o---*---o---o---o---*---o---o---o---o--- Jeff
                       <- ipw2200 ->

So you would want to perhaps pick two commits like the above * and bisect. If the one marked as bad on the Linus tree initially (-rc2) is not bad and does not reach the allegedly bad commit on Jeff's line, there is no way for bisect to find it.

If you are suspecting ipw2200, 2f633db and 747af1e might be a pair of good anchor points to start bisecting.

The way I came up with these two; I should be using gitk for
this kind of thing, but I do not work in X during daytime, so I
am guessing these from:
 
        $ git rev-list --pretty=oneline linus..garzik/netdev |
          grep -C4 -i ipw2200 | less

This gets the list of commits that are on Jeff's tree but not in Linus' in reverse chrono order, and grabs ones with ipw2200 in their titles. It shows that 2f633db is (close to) the latest that touches ipw2200, and 747af1e is (close to) the reasonably old that touches ipw2200. As a review of these two points, I did this:

	$ git log 747af1e..2f633db
Hope it helps this time...
Previous: Petr Baudis
Message 23 of 23 in “git-bisect problem”
  1. Andrew MortonFeb 13, 2006
  2. Junio C HamanoFeb 13, 2006
  3. Andrew MortonFeb 13, 2006
  4. Ryan AndersonFeb 13, 2006
  5. Andrew MortonFeb 13, 2006
  6. Fernando J. PeredaFeb 13, 2006
  7. Luben TuikovFeb 13, 2006
  8. Luben TuikovFeb 13, 2006
  9. cat-file (was Re: git-bisect problem)Joshua N Pritikin, Feb 13, 2006
  10. Ryan AndersonFeb 13, 2006
  11. Andrew MortonFeb 13, 2006
  12. Linus TorvaldsFeb 13, 2006
  13. Luben TuikovFeb 13, 2006
  14. Andrew MortonFeb 13, 2006
  15. Junio C HamanoFeb 14, 2006
  16. Junio C HamanoFeb 13, 2006
  17. Andrew MortonFeb 13, 2006
  18. Junio C HamanoFeb 14, 2006
  19. Andrew MortonFeb 14, 2006
  20. Linus TorvaldsFeb 14, 2006
  21. Petr BaudisFeb 14, 2006
  22. Petr BaudisFeb 14, 2006
  23. Junio C HamanoFeb 14, 2006

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.