# Bug Report

5 messages from 2024-10-13 to 2024-10-15. Participants: 吴元守, Koji Nakamaru, Johannes Schindelin, Taylor Blau.
Thread: https://gitlist.dev/t/62327

## 吴元守, 2024-10-13 15:44

Subject: Bug Report
Message-ID: <tencent_D0324DD61B7E04E0B4686FD8761E1CDDE108@qq.com>
URL: https://gitlist.dev/e/tencent_D0324DD61B7E04E0B4686FD8761E1CDDE108%40qq.com

```
What did you do before the bug happened? (Steps to reproduce your issue)
Update the git version from 2.46.2 to 2.47.0 .
Clone any repository from Github using ssh(HTTP is not affected).

What did you expect to happen? (Expected behavior)
Clone succeed.

What happened instead? (Actual behavior)
Git clone hang for a long time during clone(Maybe hang forever).
&gt; git clone git@github.com:ibbles/LearningUnreal.git LearningUnreal2
Cloning into 'LearningUnreal2'...
remote: Enumerating objects: 3416, done.
remote: Counting objects: 100% (360/360), done.
remote: Compressing objects: 100% (261/261), done.
Receiving objects:   2% (69/3416)

Anything else you want to add:
I can reproduce it in two of my machine , and it seems to be easily reproducable.
The git process which is hanging forever have a stack as followed.

     ntdll.dll!NtReadFile()
     KernelBase.dll!00007ffca591bd3b
     msvcrt.dll!_read_nolock()
     msvcrt.dll!_read()
     git.exe!xread() Line 231
&gt;    git.exe!fill() Line 311
     git.exe!parse_pack_objects() Line 484
     git.exe!cmd_index_pack() Line 1929
     git.exe!handle_builtin() Line 484
     git.exe!run_argv() Line 821
     git.exe!cmd_main() Line 957
     git.exe!main() Line 67
     git.exe!wmain() Line 4143
     git.exe!__tmainCRTStartup() Line 260
     git.exe!mainCRTStartup() Line 182
     kernel32.dll!00007ffca7bf257d()
     ntdll.dll!RtlUserThreadStart()

[System Info]
git version:
git version 2.47.0.windows.1
cpu: x86_64
built from commit: d53e4648cb65eb75dd8d8a093d17400a18a9a15d
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.10.1
OpenSSL: OpenSSL 3.2.3 3 Sep 2024
zlib: 1.3.1
uname: Windows 10.0 22631
compiler info: gnuc: 14.2
libc info: no libc information available
$SHELL (typically, interactive shell): <unset>


[Enabled Hooks]
not run from a git repository - no hooks to show</unset>�*.�
```

## Koji Nakamaru, 2024-10-14 05:04

Subject: Re: Bug Report
Message-ID: <CAOTNsDw58poRNMpKiCOTouH84ah7+jvMfM0OPj-Y02Bo2O4kXg@mail.gmail.com>
URL: https://gitlist.dev/e/CAOTNsDw58poRNMpKiCOTouH84ah7%2BjvMfM0OPj-Y02Bo2O4kXg%40mail.gmail.com
In-Reply-To: <tencent_D0324DD61B7E04E0B4686FD8761E1CDDE108@qq.com>

```
On Mon, Oct 14, 2024 at 12:46 AM 吴元守 <wu.yuanshou@foxmail.com> wrote:
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> Update the git version from 2.46.2 to 2.47.0 .
> Clone any repository from Github using ssh(HTTP is not affected).
>
> What did you expect to happen? (Expected behavior)
> Clone succeed.
>
> What happened instead? (Actual behavior)
> Git clone hang for a long time during clone(Maybe hang forever).
> &gt; git clone git@github.com:ibbles/LearningUnreal.git LearningUnreal2
> Cloning into 'LearningUnreal2'...
> remote: Enumerating objects: 3416, done.
> remote: Counting objects: 100% (360/360), done.
> remote: Compressing objects: 100% (261/261), done.
> Receiving objects:   2% (69/3416)

I was able to reproduce the issue. It seems to be related to runtime
changes. If we replace "C:/Program Files/Git/usr/bin/msys-2.0.dll" with
the file comes with
https://github.com/git-for-windows/git/releases/tag/v2.46.2.windows.1,
"git clone" succeeds.

Koji Nakamaru

```

## Johannes Schindelin, 2024-10-14 06:02

Subject: Re: Bug Report
Message-ID: <9d2d6e7b-9691-4c9f-9b13-f1019cd1c491@gmx.de>
URL: https://gitlist.dev/e/9d2d6e7b-9691-4c9f-9b13-f1019cd1c491%40gmx.de
In-Reply-To: <CAOTNsDw58poRNMpKiCOTouH84ah7+jvMfM0OPj-Y02Bo2O4kXg@mail.gmail.com>

```
Hi Koji and Yuanshou,

On Mon, 14 Oct 2024, Koji Nakamaru wrote:

> On Mon, Oct 14, 2024 at 12:46 AM 吴元守 <wu.yuanshou@foxmail.com> wrote:
> >
> > What did you do before the bug happened? (Steps to reproduce your issue)
> > Update the git version from 2.46.2 to 2.47.0 .
> > Clone any repository from Github using ssh(HTTP is not affected).
> >
> > What did you expect to happen? (Expected behavior)
> > Clone succeed.
> >
> > What happened instead? (Actual behavior)
> > Git clone hang for a long time during clone(Maybe hang forever).
> > &gt; git clone git@github.com:ibbles/LearningUnreal.git LearningUnreal2
> > Cloning into 'LearningUnreal2'...
> > remote: Enumerating objects: 3416, done.
> > remote: Counting objects: 100% (360/360), done.
> > remote: Compressing objects: 100% (261/261), done.
> > Receiving objects:   2% (69/3416)
>
> I was able to reproduce the issue. It seems to be related to runtime
> changes. If we replace "C:/Program Files/Git/usr/bin/msys-2.0.dll" with
> the file comes with
> https://github.com/git-for-windows/git/releases/tag/v2.46.2.windows.1,
> "git clone" succeeds.

This bug has been reported at
https://github.com/git-for-windows/git/issues/5199 and has been addressed
in the latest snapshot at
https://wingit.blob.core.windows.net/files/index.html

Ciao,
Johannes

```

## Koji Nakamaru, 2024-10-14 06:22

Subject: Re: Bug Report
Message-ID: <CAOTNsDz7Q=KrRgeV2EN6Y4WmSNdn7kF-4Xury8dbxEcbcoxBbQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAOTNsDz7Q%3DKrRgeV2EN6Y4WmSNdn7kF-4Xury8dbxEcbcoxBbQ%40mail.gmail.com
In-Reply-To: <9d2d6e7b-9691-4c9f-9b13-f1019cd1c491@gmx.de>

```
On Mon, Oct 14, 2024 at 3:02 PM Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> This bug has been reported at
> https://github.com/git-for-windows/git/issues/5199 and has been addressed
> in the latest snapshot at
> https://wingit.blob.core.windows.net/files/index.html

Thank you. I tried the latest snapshot and it worked perfectly.

Koji Nakamaru

```

## Taylor Blau, 2024-10-15 00:40

Subject: Re: Bug Report
Message-ID: <Zw257L4gPDdeW8us@nand.local>
URL: https://gitlist.dev/e/Zw257L4gPDdeW8us%40nand.local
In-Reply-To: <CAOTNsDz7Q=KrRgeV2EN6Y4WmSNdn7kF-4Xury8dbxEcbcoxBbQ@mail.gmail.com>

```
On Mon, Oct 14, 2024 at 03:22:13PM +0900, Koji Nakamaru wrote:
> On Mon, Oct 14, 2024 at 3:02 PM Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > This bug has been reported at
> > https://github.com/git-for-windows/git/issues/5199 and has been addressed
> > in the latest snapshot at
> > https://wingit.blob.core.windows.net/files/index.html
>
> Thank you. I tried the latest snapshot and it worked perfectly.

Thanks, both.

Thanks,
Taylor

```
