public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>,
	Joel Brobecker <brobecker@adacore.com>
Cc: "H.J. Lu via Binutils" <binutils@sourceware.org>,
	GDB <gdb@sourceware.org>
Subject: Re: Does "git bisect" work for anyone?
Date: Sat, 3 Oct 2020 06:57:26 -0700	[thread overview]
Message-ID: <CAMe9rOovQrXdsGiSDC3yq4c6m8HGrouxrzYevq1ZDJP2WrL4FQ@mail.gmail.com> (raw)
In-Reply-To: <87imbrhlhx.fsf@linux-m68k.org>

On Fri, Oct 2, 2020 at 11:27 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Okt 02 2020, H.J. Lu via Binutils wrote:
>
> > On master branch, I got
> >
> > $ git checkout d0e70c4189d5d6a6e63b85c1d3c10c74852173b4
> > Previous HEAD position was 5a805384b83 asan: readelf buffer overflow and abort
> > HEAD is now at d0e70c4189d Automatic date update in version.in
> > $ git bisect good
> > $ git checkout fe07b5721a64a84e36ec63e15638b87655faf1bf
> > Previous HEAD position was d0e70c4189d Automatic date update in version.in
> > HEAD is now at fe07b5721a6 gdb/testsuite: Update test pattern in
> > ptype-on-functions.exp
> > $ git bisect bad
> > Some good revs are not ancestors of the bad rev.
>
> Git told you the reason.
>
> $ git rev-list d0e70c4189d5d6a6e63b85c1d3c10c74852173b4..fe07b5721a64a84e36ec63e15638b87655faf1bf | wc -l
> 0

How did this happen?  Joel, shouldn't git commit hook check non-empty
forward and backward git rev-list outputs to support git bisect?

> $ git rev-list fe07b5721a64a84e36ec63e15638b87655faf1bf..d0e70c4189d5d6a6e63b85c1d3c10c74852173b4 | wc -l
> 232
>
> > git bisect cannot work properly in this case.
> > Maybe you mistook good and bad revs?
>
> If you want to find the commit where an issue is fixed, you need to mark
> the commits that don't have the issue as bad and the the ones that have
> the issue as good.
>



-- 
H.J.

  reply	other threads:[~2020-10-03 13:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 22:25 H.J. Lu
2020-10-03  6:27 ` Andreas Schwab
2020-10-03 13:57   ` H.J. Lu [this message]
2020-10-06 21:29     ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMe9rOovQrXdsGiSDC3yq4c6m8HGrouxrzYevq1ZDJP2WrL4FQ@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).