Ask Your Question
2

"fatal: Needed a single revision" when trying to bisect the linux kernel

asked 2013-12-29 16:23:32 -0500

remjg gravatar image

updated 2013-12-29 17:08:04 -0500

Hi,

I'm facing a kernel regression and thanks to older kernels available on koji I have been able to narrow down my problem:

  • kernel-3.12.0-0.rc0.git11.1.fc21 is "good" (koji link)
  • kernel-3.12.0-0.rc0.git12.1.fc21 is "bad" (koji link)

I now want to bisect the Linux kernel to track the commit where it all started. I have never done that before but I found a useful wiki page about it.

Unfortunately the following command doesn't work:

git bisect bad v3.12.0.rc0.git12.1
fatal: Needed a single revision
Bad rev input: v3.12.0.rc0.git12.1

What version number should I use according to the package above? I have tried many combinations without success.

Thank you for you help,

Rémi.

Edit: I have found valid version numbers in changelogs available on Koji like below:

Changelog screenshot

Should I use v3.11-3891-gae7a835 for kernel-3.12.0-0.rc0.git11.1.fc21? v3.11-4809-ga09e9a7 for kernel-3.12.0-0.rc0.git12.1.fc21?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-03-02 05:36:52 -0500

MJG gravatar image

updated 2015-03-02 09:33:40 -0500

You should use the version number in git, which you can specify by any of the many ways detailed in the "git revisions" man page., e.g. an abbreviated SHA1.

In your case, this would be ae7a835 resp. a09e9a7 for those two kernels: The two "versions" you found are output from "git describe", which is in the form <tag>-<number>-g<sha1>, and should be understood by git itself, but unfortunately isn't it seems.

This can happen as follows: When "git describe" was used, 7 digits were enough to uniquely describe that revision, but they are not sufficient now any more.

git rev-parse --disambiguate=ae7a835

will show you all revisions matching that abbreviation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-12-29 16:23:32 -0500

Seen: 1,530 times

Last updated: Mar 02 '15