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

Re: BUG: commit-reach.c:66: bad generation skip

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2021, 20:14 UTC
Message-ID
<xmqq7dnf3ckf.fsf@gitster.c.googlers.com>
In-Reply-To
<962a2abc-6352-4d19-c39f-29f3c744f861@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
Show 18 quoted lines
> On 2/10/2021 7:18 AM, Filippo Valsorda wrote:
>> On Mon, Feb 8, 2021 at 3:26 AM Derrick Stolee <stolee@gmail.com> wrote:
>>> _This_ is interesting. I haven't heard of this problem happening
>>> in a released version of Git.
>>>
>>> I'm CC'ing Jonathan Nieder who recently saw this happening, but that
>>> was on a newer version than 2.30.0 with a topic that is not part
>>> of 2.30.0. But maybe the version shipped internally is versioned
>>> without extra information on top of the latest tag? (I see your
>>> @google.com email, which makes me think you have an internal version.)
>> 
>> Ah, the issue indeed first showed up as I was using the internal
>> version. I then installed mainline 2.30.0 to check that it reproduced
>> on the same local repository before reporting a bug.
>
> The mainline does have the BUG() statement, but it's really reflecting
> bad data in the commit-graph file. That data was written by the internal
> version and was not reset until you rewrote the file.

Thanks for digging, you two. The above clearly explains the symptom.

> Thanks, but let me know if it reproduces again. The bug should be fixed
> in ds/commit-graph-genno-fix [1], and I think the Google internal release
> has been rolled back until that branch is included.

The topic has been cooking in 'next' since Feb 3rd, so jrnieder's team would probably have already picked it up. It would be in 'master', together with the ak/corrected-commit-date topic it builds on, not in a very distant future (typically a topic cooks in 'next' for a week, unless it is a trivial typofix, doc updates, that sort of low-impact change).

Thanks.
Previous: Derrick Stolee
Message 6 of 6 in “BUG: commit-reach.c:66: bad generation skip”
  1. Filippo ValsordaFeb 7, 2021
  2. Filippo ValsordaFeb 7, 2021
  3. Derrick StoleeFeb 8, 2021
  4. Filippo ValsordaFeb 10, 2021
  5. Derrick StoleeFeb 10, 2021
  6. Junio C HamanoFeb 10, 2021

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.