# BUG: diffcore-rename.c:1674: tracking failed somehow; failed to find associated dst for broken pair

4 messages from 2024-09-20 to 2025-03-14. Participants: Olaf Hering, Jeff King, Elijah Newren.
Thread: https://gitlist.dev/t/62150

## Olaf Hering, 2024-09-20 09:22

Subject: BUG: diffcore-rename.c:1674: tracking failed somehow; failed to find associated dst for broken pair
Message-ID: <20240920112228.3d1130f5.olaf@aepfle.de>
URL: https://gitlist.dev/e/20240920112228.3d1130f5.olaf%40aepfle.de

```
The following issue left my terminal in a weird state.
Is this a bug in the repository, or a bug in git 2.43/46?

set -ex
pushd /dev/shm
test -d x.git || git clone https://github.com/intel/linux-sgx.git x.git
cd $_
git checkout -b $PPID.$$ a53adeaab7a8176fabb415bfcdf6d29fe4060678
d=external/ippcp_internal/inc
git log -p -b -B -w --stat --follow "$d" |& tail
cd $d
git log -p -b -B -w --stat --follow . |& tail


Thanks,
Olaf

```

## Jeff King, 2024-09-20 13:07

Subject: Re: BUG: diffcore-rename.c:1674: tracking failed somehow; failed to find associated dst for broken pair
Message-ID: <20240920130729.GA7349@peff.net>
URL: https://gitlist.dev/e/20240920130729.GA7349%40peff.net
In-Reply-To: <20240920112228.3d1130f5.olaf@aepfle.de>

```
On Fri, Sep 20, 2024 at 11:22:28AM +0200, Olaf Hering wrote:

> The following issue left my terminal in a weird state.
> Is this a bug in the repository, or a bug in git 2.43/46?
> 
> set -ex
> pushd /dev/shm
> test -d x.git || git clone https://github.com/intel/linux-sgx.git x.git
> cd $_
> git checkout -b $PPID.$$ a53adeaab7a8176fabb415bfcdf6d29fe4060678
> d=external/ippcp_internal/inc
> git log -p -b -B -w --stat --follow "$d" |& tail
> cd $d
> git log -p -b -B -w --stat --follow . |& tail

Definitely a bug in Git, since we're hitting a BUG(). Looks like it
reproduces with just "-B --follow" on the path in question. Bisecting
leads to 9db2ac5616 (diffcore-rename: accelerate rename_dst setup,
2020-12-11). +cc Elijah.

-Peff

```

## Elijah Newren, 2025-03-14 06:08

Subject: Re: BUG: diffcore-rename.c:1674: tracking failed somehow; failed to find associated dst for broken pair
Message-ID: <CABPp-BFb1d7dbWdPwA9q_e6pLT6OHPr2SQC5ZwqXwkS74dXqdQ@mail.gmail.com>
URL: https://gitlist.dev/e/CABPp-BFb1d7dbWdPwA9q_e6pLT6OHPr2SQC5ZwqXwkS74dXqdQ%40mail.gmail.com
In-Reply-To: <20240920130729.GA7349@peff.net>

```
On Fri, Sep 20, 2024 at 6:07 AM Jeff King <peff@peff.net> wrote:
>
> On Fri, Sep 20, 2024 at 11:22:28AM +0200, Olaf Hering wrote:
>
> > The following issue left my terminal in a weird state.
> > Is this a bug in the repository, or a bug in git 2.43/46?
> >
> > set -ex
> > pushd /dev/shm
> > test -d x.git || git clone https://github.com/intel/linux-sgx.git x.git
> > cd $_
> > git checkout -b $PPID.$$ a53adeaab7a8176fabb415bfcdf6d29fe4060678
> > d=external/ippcp_internal/inc
> > git log -p -b -B -w --stat --follow "$d" |& tail
> > cd $d
> > git log -p -b -B -w --stat --follow . |& tail
>
> Definitely a bug in Git, since we're hitting a BUG(). Looks like it
> reproduces with just "-B --follow" on the path in question. Bisecting
> leads to 9db2ac5616 (diffcore-rename: accelerate rename_dst setup,
> 2020-12-11). +cc Elijah.
>
> -Peff

Sorry for the lengthy delay; fix over here:
https://lore.kernel.org/git/pull.1876.git.1741395615315.gitgitgadget@gmail.com/

```

## Jeff King, 2025-03-14 17:24

Subject: Re: BUG: diffcore-rename.c:1674: tracking failed somehow; failed to find associated dst for broken pair
Message-ID: <20250314172453.GA16215@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20250314172453.GA16215%40coredump.intra.peff.net
In-Reply-To: <CABPp-BFb1d7dbWdPwA9q_e6pLT6OHPr2SQC5ZwqXwkS74dXqdQ@mail.gmail.com>

```
On Thu, Mar 13, 2025 at 11:08:02PM -0700, Elijah Newren wrote:

> > Definitely a bug in Git, since we're hitting a BUG(). Looks like it
> > reproduces with just "-B --follow" on the path in question. Bisecting
> > leads to 9db2ac5616 (diffcore-rename: accelerate rename_dst setup,
> > 2020-12-11). +cc Elijah.
> >
> > -Peff
> 
> Sorry for the lengthy delay; fix over here:
> https://lore.kernel.org/git/pull.1876.git.1741395615315.gitgitgadget@gmail.com/

Thanks, I left some comments there.

-Peff

```
