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

Re: BUG: git log: fatal: internal error in diff-resolve-rename-copy

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 13, 2010, 13:38 UTC
Message-ID
<AANLkTikGE-m=Tht2tNbP5=Bej78284_ouLBfdk_aEDSO@mail.gmail.com>
In-Reply-To
<AANLkTikPhWgeeLBV3dbLZ5UM3UDmkOmpqrmwqPmGfn7Z@mail.gmail.com>

On Fri, Aug 13, 2010 at 11:25, Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:

Show 5 quoted lines
> Somewhere between the git 1.7.0.2 and the git 1.7.2.0 the rename
> detection started to fail with fatal error on some files in our
> repository. The bug could be seen on the public IntelliJ IDEA
> repository (about 760M in size), but our users have reported it as
> well.
>From a bisect:
    1da6175d438a9849db07a68326ee05f291510074 is the first bad commit
    commit 1da6175d438a9849db07a68326ee05f291510074
    Author: Bo Yang <struggleyb.nku@gmail.com>
    Date:   Thu May 6 21:52:28 2010 -0700
        Make diffcore_std only can run once before a diff_flush
        When file renames/copies detection is turned on, the
        second diffcore_std will degrade a 'C' pair to a 'R' pair.
        And this may happen when we run 'git log --follow' with
        hard copies finding. That is, the try_to_follow_renames()
        will run diffcore_std to find the copies, and then
        'git log' will issue another diffcore_std, which will reduce
        'src->rename_used' and recognize this copy as a rename.
        This is not what we want.
        So, I think we really don't need to run diffcore_std more
        than one time.
        Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
        Signed-off-by: Junio C Hamano <gitster@pobox.com>
Bisect script:
    #!/bin/sh
    cd ~/g/git
    make clean
    make -j 10 CC=clang CFLAGS=-O0
    ./git --git-dir=/tmp/idea/.git log -M --follow --name-only --
platform/lang-api/src/com/intellij/lang/documentation/CompositeDocumentationProvider.java
> /dev/null
    ret=$?
    test $ret -gt 127 && ret=127
    exit $ret
Previous: Constantine PlotnikovNext: Junio C Hamano
Message 2 of 16 in “BUG: git log: fatal: internal error in diff-resolve-rename-copy”
  1. Constantine PlotnikovAug 13, 2010
  2. Ævar Arnfjörð BjarmasonAug 13, 2010
  3. Junio C HamanoAug 13, 2010
  4. Linus TorvaldsAug 13, 2010
  5. Junio C HamanoAug 13, 2010
  6. diff --follow: do call diffcore_std() as necessaryJunio C Hamano, Aug 13, 2010
  7. Ævar Arnfjörð BjarmasonAug 13, 2010
  8. Junio C HamanoAug 13, 2010
  9. log: test for regression introduced in v1.7.2-rc0~103^2~2Ævar Arnfjörð Bjarmason, Aug 14, 2010
  10. Ævar Arnfjörð BjarmasonAug 14, 2010
  11. Junio C HamanoAug 15, 2010
  12. Ævar Arnfjörð BjarmasonAug 15, 2010
  13. Junio C HamanoAug 16, 2010
  14. Ævar Arnfjörð BjarmasonAug 16, 2010
  15. log: test for regression introduced in v1.7.2-rc0~103^2~2Ævar Arnfjörð Bjarmason, Aug 15, 2010
  16. Constantine PlotnikovAug 17, 2010

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.