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

Re: Real-life kernel debugging scenario

From
DLDavid Lang <david.lang@digitalinsight.com>
Date
Nov 8, 2005, 00:59 UTC
Message-ID
<Pine.LNX.4.62.0511071657030.9339@qynat.qvtvafvgr.pbz>
In-Reply-To
<dkosr7$f4s$1@sea.gmane.org>
On Mon, 7 Nov 2005, walt wrote:
Show 5 quoted lines
> My worry:  what happens when I'm not smart enough to guess
> which developer to email?  My first instinct is to back out
> the most recent commits one-by-one until the bug goes away.
>
> First:  is this an optimal tactic?

it will work, but it's not optimal. this is exactly what git bisect is designed for.

you tell it that the prior night's version was good and the current version is bad. It picks a version 'halfway' in between the two and you test that. tell git if the test failed or not and it will then give you the next one to try. repeat until you identify exactly which commit triggers the problem.

unfortunantly I can't trivially point you at the right place in the docs.
David Lang
-- 
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
  -- C.A.R. Hoare
Previous: waltNext: Junio C Hamano
Message 2 of 7 in “Real-life kernel debugging scenario”
  1. waltNov 8, 2005
  2. David LangNov 8, 2005
  3. Junio C HamanoNov 8, 2005
  4. Linus TorvaldsNov 8, 2005
  5. wa1ter@myrealbox.comNov 9, 2005
  6. Jon LoeligerNov 9, 2005
  7. Linus TorvaldsNov 9, 2005

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.