{"thread":{"id":"58756","subject":"bug while cloning http repo","startedAt":"2022-11-07T16:58:27Z","lastAt":"2022-11-08T00:26:41Z","messageCount":2,"participants":["andrey a","Taylor Blau"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"466677","messageId":"CAOvKmB_qjAm66fAuDBmgGQG7J=+=VW6Fayxfp1zPs5qJfdd=-Q@mail.gmail.com","threadId":"58756","inReplyTo":null,"subject":"bug while cloning http repo","fromName":"andrey a","fromEmail":"gvozdila@gmail.com","sentAt":"2022-11-07T16:58:03Z","receivedAt":"2022-11-07T16:58:27Z","isPatch":false,"sender":{"key":"gvozdila@gmail.com","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\ngit clone http://git.altlinux.org/gears/r/rust.git\n\n\nWhat did you expect to happen? (Expected behavior)\n\nNormal cloned repo appears.\n\nWhat happened instead? (Actual behavior)\n\ngit clone http://git.altlinux.org/gears/r/rust.git\nCloning into 'rust'...\nerror: Unable to get pack file\nhttp://git.altlinux.org/gears/r/rust.git/objects/pack/pack-42e36950f8cd6e0d242719691491d16dd2e270e6.pack\ntransfer closed with 7043414950 bytes remaining to read\nerror: Unable to find 7f4c666c73ca05cecab9089c91d8c6dfff5a7cb7 under\nhttp://git.altlinux.org/gears/r/rust.git\nCannot obtain needed object 7f4c666c73ca05cecab9089c91d8c6dfff5a7cb7\nerror: fetch failed.\n\nNote that hash of broken object is always same.\nWhat's different between what you expected and what actually happened?\n\nLooks like versions before 2.33.4 works fine. And after 2.33.5 (and\n2.34.1 2.35.1) reproduce bug.\n\nAnything else you want to add:\n\nReproducible on Ubuntu 22(2.34.1), Altlinux p10(2.33.5), Gentoo(2.35.1)\nBug reproducible with latest git version 2.38.1.385.g3b08839926/\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.34.1\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC\n2022 x86_64\ncompiler info: gnuc: 11.2\nlibc info: glibc: 2.35\n$SHELL (typically, interactive shell): /bin/bash\n\n$ GIT_TRACE2=2 git clone http://git.altlinux.org/gears/r/rust.git\n17:28:03.618164 common-main.c:48                  version 2.34.1\n17:28:03.618728 common-main.c:49                  start git clone\nhttp://git.altlinux.org/gears/r/rust.git\n17:28:03.618840 compat/linux/procinfo.c:170       cmd_ancestry bash <-\nkonsole <- gnome-shell <- systemd <- systemd\n17:28:03.619295 git.c:456                         cmd_name clone (clone)\n17:28:03.620976 repository.c:132                  worktree /home/krom/soft/rust\nCloning into 'rust'...\n17:28:03.629163 run-command.c:740                 child_start[0] git\nremote-http origin http://git.altlinux.org/gears/r/rust.git\n17:28:03.641629 common-main.c:48                  version 2.34.1\n17:28:03.642043 common-main.c:49                  start\n/usr/lib/git-core/git remote-http origin\nhttp://git.altlinux.org/gears/r/rust.git\n17:28:03.642169 compat/linux/procinfo.c:170       cmd_ancestry git <-\nbash <- konsole <- gnome-shell <- systemd <- systemd\n17:28:03.642678 git.c:736                         cmd_name\n_run_dashed_ (clone/_run_dashed_)\n17:28:03.643132 run-command.c:740                 child_start[0]\ngit-remote-http origin http://git.altlinux.org/gears/r/rust.git\n17:28:03.649348 common-main.c:48                  version 2.34.1\n17:28:03.649841 common-main.c:49                  start\n/usr/lib/git-core/git-remote-http origin\nhttp://git.altlinux.org/gears/r/rust.git\n17:28:03.649975 compat/linux/procinfo.c:170       cmd_ancestry git <-\ngit <- bash <- konsole <- gnome-shell <- systemd <- systemd\n17:28:03.650025 repository.c:132                  worktree /home/krom/soft\n17:28:03.650044 remote-curl.c:1493                cmd_name remote-curl\n(clone/_run_dashed_/remote-curl)\nremote: 09912a27cf9a7028344e23986c14fd03341600af        refs/heads/c7\nremote: 09912a27cf9a7028344e23986c14fd03341600af        refs/heads/c7.1\n\n...\n\nremote: d8a6a190551618fae1b205c3210fad9f5955877e        refs/tags/1.58.0-alt1^{}\nremote: a3658ef7fb155cfa1f877abf6e59fb95acebc5f9        refs/tags/1.58.1\nremote: b2f00be3d04a8f1eeb605957ceaa7e9325f892fe        refs/tags/1.58.1^{}\nremote: 12bd79da893d981a2588d6b414da48cc2950fd3b        refs/tags/1.58.1-alt1\nremote: e0905262166aff9e8a6c245294dba39f4cc0\n17:32:29.224262 usage.c:65                        error unable to\naccess 'http://git.altlinux.org/gears/r/rust.git/': Recv failure:\nConnection reset by peer\nfatal: unable to access 'http://git.altlinux.org/gears/r/rust.git/':\nRecv failure: Connection reset by peer\n17:32:29.224313 usage.c:69                        exit\nelapsed:265.575951 code:128\n17:32:29.224331 trace2/tr2_tgt_normal.c:123       atexit\nelapsed:265.575982 code:128\n17:32:29.225644 run-command.c:996                 child_exit[0]\npid:190489 code:128 elapsed:265.582499\n17:32:29.225698 git.c:758                         exit\nelapsed:265.591604 code:128\n17:32:29.225733 trace2/tr2_tgt_normal.c:123       atexit\nelapsed:265.591639 code:128\n17:32:29.226442 transport-helper.c:581            exit\nelapsed:265.971163 code:128\n17:32:29.228597 trace2/tr2_tgt_normal.c:123       atexit\nelapsed:265.973323 code:128\n\n\n[Enabled Hooks]\nnot run from a git repository - no hooks to show\n\nHope this report can help. Feel free to ask additional questions or\ncontact me directly.\nAndrey Yakunin\n"},{"id":"466771","messageId":"Y2miO01QqsL/mvIm@nand.local","threadId":"58756","inReplyTo":"CAOvKmB_qjAm66fAuDBmgGQG7J=+=VW6Fayxfp1zPs5qJfdd=-Q@mail.gmail.com","subject":"Re: bug while cloning http repo","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2022-11-08T00:26:35Z","receivedAt":"2022-11-08T00:26:41Z","isPatch":false,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"On Mon, Nov 07, 2022 at 07:58:03PM +0300, andrey a wrote:\n> Thank you for filling out a Git bug report!\n> Please answer the following questions to help us understand your issue.\n>\n> What did you do before the bug happened? (Steps to reproduce your issue)\n>\n> git clone http://git.altlinux.org/gears/r/rust.git\n>\n>\n> What did you expect to happen? (Expected behavior)\n>\n> Normal cloned repo appears.\n>\n> What happened instead? (Actual behavior)\n>\n> git clone http://git.altlinux.org/gears/r/rust.git\n> Cloning into 'rust'...\n> error: Unable to get pack file\n> http://git.altlinux.org/gears/r/rust.git/objects/pack/pack-42e36950f8cd6e0d242719691491d16dd2e270e6.pack\n> transfer closed with 7043414950 bytes remaining to read\n\nIt looks like something (e.g., firewall, anti-virus software) between\nyour workstation and git.altlinux.org is terminating the connection\nearlier than it should be.\n\nSo your client is only getting part of the pack that it asked for, and\nsome of the objects appear missing.\n\n> Looks like versions before 2.33.4 works fine. And after 2.33.5 (and\n> 2.34.1 2.35.1) reproduce bug.\n\nIf there is a bisection which conclusively points to a single commit,\nthat would be interesting to know. That might not necessarily indicate a\nbug in Git, but instead a behavior change which tickles whatever\nmechanism is sitting on either side of the connection.\n\nThanks,\nTaylor\n"}]}