Git fork process infinitely and never stop
Git Version: 2.36.1
In some circumstance, Git will fork child process forever until my PC crash. I don’t understand why and I don’t know what log or information I should provide Details are showed in this Youtube video. Please feel free to ask if I can provide anything.
https://www.youtube.com/watch?v=DTXvgKYjy5k
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
Quoted 6 lines · 程洋
Git Version: 2.36.1
In some circumstance, Git will fork child process forever until my PC crash. I don’t understand why and I don’t know what log or information I should provide Details are showed in this Youtube video. Please feel free to ask if I can provide anything.
Hi and welcome to Git mailing list!
For this bug report to be useful, please include following information, inline in your email:
- git version
- steps to reproduce the bug
- what you expect and actual behavior, as well as the differences
- system info
- miscellaneous
And don't forget to send as plaintext email.
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
- git version:
2.36.1
- steps to reproduce the bug
: We have no idea actually. We're maintainer of our internal git/gerrit. We found sometimes some user will invoke 100+ threads to clone the same repository. And when we ask those guy, they say they only executed the "git fetch" once. And just like the youtube videio, you will find git fork a child git, and then grandson child git, and loop like this forever until the server down. If we copy their local repository to our own PC, and then execute git fetch, we can also reproduce it. It seems that some broken local git files cause this bug
- what you expect and actual behavior, as well as the differences
Mentioned above
- system info
Ubuntu 18.04
- miscellaneous
N/A
-----Original Message-----
From: Bagas Sanjaya <[email protected]>
Sent: Tuesday, July 5, 2022 8:33 PM
To: 程洋 <[email protected]>; [email protected]
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>
Subject: [External Mail]Re: Git fork process infinitely and never stop
[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。
Quoted 6 lines · 程洋
Git Version: 2.36.1
In some circumstance, Git will fork child process forever until my PC crash.
I don’t understand why and I don’t know what log or information I
should provide Details are showed in this Youtube video. Please feel free to ask if I can provide anything.
Hi and welcome to Git mailing list!
For this bug report to be useful, please include following information, inline in your email:
- git version
- steps to reproduce the bug
- what you expect and actual behavior, as well as the differences
- system info
- miscellaneous
And don't forget to send as plaintext email.
Thanks.
--
An old man doll... just what I always wanted! - Clara
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
Quoted 13 lines · 程洋
- git version:
2.36.1
- steps to reproduce the bug
: We have no idea actually. We're maintainer of our internal
git/gerrit. We found sometimes some user will invoke 100+ threads to
clone the same repository. And when we ask those guy, they say they
only executed the "git fetch" once. And just like the youtube videio,
you will find git fork a child git, and then grandson child git, and
loop like this forever until the server down.
If we copy their local repository to our own PC, and then executegit fetch, we can also reproduce it. It seems that some broken local git files cause this bug
- what you expect and actual behavior, as well as the differences
Mentioned above
- system info
Quoted 2 lines
Ubuntu 18.04- miscellaneous
I assume you can't share the repo, but perhaps try if you can reproduce it with a "git fast-export --anonymize" version of it, and if so whether you'd be willing to share that. It will publish the "shape of the history" of the repo, but not any meaningful data (all commits, trees, blobs etc. are replaced).
Alternatively myself & probably some other regular contributors to git would be willing to look at that repo + reproduction recipe off the public ML, to see if we could reproduce the issue, if that sounds good to you contact me off-list.
Or perhaps we can still figure out a reproduction for this...
The YouTube video shows that you're using various options to git-fetch, including filters, refspecs etc. Does a plain "git fetch" reproduce this, and if not what's the option (try adding them one at a time & experiment) that needs to be added to trigger this?
I somewhat suspect some --filter funny business, but that's just a hunch...
Am 06.07.22 um 00:50 schrieb Ævar Arnfjörð Bjarmason:
Quoted 7 lines
The YouTube video shows that you're using various options to git-fetch, including filters, refspecs etc. Does a plain "git fetch" reproduce this, and if not what's the option (try adding them one at a time & experiment) that needs to be added to trigger this?
I somewhat suspect some --filter funny business, but that's just a hunch...
Hooks may also play a role.
-- Hannes
Quoted 5 lines
- git version:
2.36.1
- steps to reproduce the bug
: We have no idea actually. We're maintainer of our internal git/gerrit. We found sometimes some user will invoke 100+ threads to clone the same repository. And when we ask those guy, they say they only executed the "git fetch" once. And just like the youtube videio, you will find git fork a child git, and then grandson child git, and loop like this forever until the server down. If we copy their local repository to our own PC, and then executegit fetch, we can also reproduce it. It seems that some broken local git files cause this bug
So the repo "git/gerrit" is hosted in your local? and how you "copy" it to your own PC?
To lilinchao:
Quoted 1 line
So the repo "git/gerrit" is hosted in your local? and how you "copy" it to your own PC?
1. git/gerrit is hosted on remote server
2. I just scp the whole repository of the user who reproduce the problem to our own PC. And then we can reproduce it on our own PC.
To Johannes:
Quoted 1 line
Hooks may also play a role.
We do have some hooks. But I don't think they're related. Because even I delete those hooks, the problem stands still
To Ævar Arnfjörð:
Quoted 1 line
I assume you can't share the repo, but perhaps try if you can reproduce it with a "git fast-export --anonymize" version of it, and if so whether you'd be willing to share that. It will publish the "shape of the history" of the repo, but not any meaningful data (all commits, trees, blobs etc. are replaced).
git fast-export --anonymize just output is empty. If I try git fast-export --anonymize --all, it seems to fetch first, which goes into the infinite loop again
Quoted 2 lines
The YouTube video shows that you're using various options to git-fetch, including filters, refspecs etc. Does a plain "git fetch" reproduce this, and if not what's the option (try adding them one at a time & experiment) that needs to be added to trigger this?
git fetch also has this problem.
I somewhat suspect some --filter funny business, but that's just a hunch...
It seems to happen after I told my team to use "partial-clone" AND "git v2.36.1". I'm not sure which one is the cause or both of them cause this.
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with -c core.commitGraph=false
-----Original Message-----
From: 程洋
Sent: Thursday, July 7, 2022 10:20 PM
To: '[email protected]' <[email protected]>; 'Bagas Sanjaya' <[email protected]>; 'git' <[email protected]>
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>; 凡军辉 <[email protected]>; 石奉兵 <[email protected]>
Subject: RE: RE: [External Mail]Re: Git fork process infinitely and never stop
I found another thing.
1. if I execute git fetch --filter=blob:none --quiet --progress miui --prune --tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor-vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stable on version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"
2. I found if I delete .git/objects, everything goes fine. And there are only 20 files inside it. So I delete them one by one to see which cause the problem. It's .git/objects/info/commit-graph. So I upload the file as attachment
Tree before I do second experiment
.
├── 20
│ └── 740928c988ed93daf943869621290d68f62b47
├── 25
│ └── cbb5f02bbcde2effebba84bbc866a29e68afdf
├── 36
│ └── 3aa2d25b71c5aff9d0d8ad8207bc27b4492e8b
├── 5b
│ └── 7b5cb8dd63be48e1466c9d957420a9765a805e
├── 65
│ └── e272c21f28fa8e28dd904f3576f5f23cdb8214
├── 8b
│ └── 148aa56b7c559e217bd31a16e886b16e21cde1
├── 97
│ └── faebca644ae8bfebcbdc8a1dd8e179e9b657de
├── a3
│ └── 852cda2af632dcc7dfbe466d6d8608c2e06520
├── a4
│ └── aa8ae78300217b0da0ab7c4b8ea22b5b74b958
├── a9
│ ├── 04e09d1ee0e0b89acd5196326399d89de70742
│ └── 7d1ffa5c4dad081469b356d0571d0b6166d00e
├── b3
│ └── 2b750166e2d54b8bd3ac62d7aeaf732e14f20d
├── b8
│ └── 957799c3a460ba2e0d26ce0081a4d092dcfb17
├── c5
│ └── be026b3b87a1ae4321700ee45ffcb5eee3ca48
├── d1
│ └── e65d268d5a2230d1d869d55497e0c1eb59b9a5
├── dd
│ └── 483c3c475117275bbf7768a940962842bd5aeb
├── e2
│ └── 6899458dc6cf2c3749c0732ac5b04ccd4c7765
├── e3
│ └── 06b12e22c7914ff80374b7857ee67864a61ba5
├── e7
│ └── a0cc17f9939b80b135c0ec389cbcc98aea70c7
├── eb
│ └── 9169a0d2124594e92720fc6ac1ce3fb29c7d87
├── ed
│ └── 6a815060f960032ecaf70fefdbdae4ac466314
├── f8
│ └── 4401972a0a7020aef85b83561d70af41962a6f
├── info
│ ├── commit-graph
│ └── packs
└── pack
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.idx
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.pack
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.promisor
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.idx
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.pack
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.promisor
├── tmp_idx_RRo8oo
└── tmp_pack_1hgueq-----------------------------------------------------------------------------------Original Message---------------------------------------------------------------------------------------------------------------------------------------
From: 程洋
Sent: Wednesday, July 6, 2022 10:03 PM
To: [email protected]; Bagas Sanjaya <[email protected]>; git <[email protected]>
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>
Subject: 回复: RE: [External Mail]Re: Git fork process infinitely and never stop
To lilinchao:
Quoted 1 line
So the repo "git/gerrit" is hosted in your local? and how you "copy" it to your own PC?
1. git/gerrit is hosted on remote server
2. I just scp the whole repository of the user who reproduce the problem to our own PC. And then we can reproduce it on our own PC.
To Johannes:
Quoted 1 line
Hooks may also play a role.
We do have some hooks. But I don't think they're related. Because even I delete those hooks, the problem stands still
To Ævar Arnfjörð:
Quoted 1 line
I assume you can't share the repo, but perhaps try if you can reproduce it with a "git fast-export --anonymize" version of it, and if so whether you'd be willing to share that. It will publish the "shape of the history" of the repo, but not any meaningful data (all commits, trees, blobs etc. are replaced).
git fast-export --anonymize just output is empty. If I try git fast-export --anonymize --all, it seems to fetch first, which goes into the infinite loop again
Quoted 2 lines
The YouTube video shows that you're using various options to git-fetch, including filters, refspecs etc. Does a plain "git fetch" reproduce this, and if not what's the option (try adding them one at a time & experiment) that needs to be added to trigger this?
git fetch also has this problem.
I somewhat suspect some --filter funny business, but that's just a hunch...
It seems to happen after I told my team to use "partial-clone" AND "git v2.36.1". I'm not sure which one is the cause or both of them cause this.
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
Any feedback on this?
-----Original Message-----
From: 程洋
Sent: Friday, July 8, 2022 1:54 AM
To: '[email protected]' <[email protected]>; 'Bagas Sanjaya' <[email protected]>; 'git' <[email protected]>
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>; 凡军辉 <[email protected]>; 石奉兵 <[email protected]>
Subject: RE: RE: [External Mail]Re: Git fork process infinitely and never stop
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with -c core.commitGraph=false
-----Original Message-----
From: 程洋
Sent: Thursday, July 7, 2022 10:20 PM
To: '[email protected]' <[email protected]>; 'Bagas Sanjaya' <[email protected]>; 'git' <[email protected]>
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>; 凡军辉 <[email protected]>; 石奉兵 <[email protected]>
Subject: RE: RE: [External Mail]Re: Git fork process infinitely and never stop
I found another thing.
1. if I execute git fetch --filter=blob:none --quiet --progress miui --prune --tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor-vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stable on version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"
2. I found if I delete .git/objects, everything goes fine. And there are only 20 files inside it. So I delete them one by one to see which cause the problem. It's .git/objects/info/commit-graph. So I upload the file as attachment
Tree before I do second experiment
.
├── 20
│ └── 740928c988ed93daf943869621290d68f62b47
├── 25
│ └── cbb5f02bbcde2effebba84bbc866a29e68afdf
├── 36
│ └── 3aa2d25b71c5aff9d0d8ad8207bc27b4492e8b
├── 5b
│ └── 7b5cb8dd63be48e1466c9d957420a9765a805e
├── 65
│ └── e272c21f28fa8e28dd904f3576f5f23cdb8214
├── 8b
│ └── 148aa56b7c559e217bd31a16e886b16e21cde1
├── 97
│ └── faebca644ae8bfebcbdc8a1dd8e179e9b657de
├── a3
│ └── 852cda2af632dcc7dfbe466d6d8608c2e06520
├── a4
│ └── aa8ae78300217b0da0ab7c4b8ea22b5b74b958
├── a9
│ ├── 04e09d1ee0e0b89acd5196326399d89de70742
│ └── 7d1ffa5c4dad081469b356d0571d0b6166d00e
├── b3
│ └── 2b750166e2d54b8bd3ac62d7aeaf732e14f20d
├── b8
│ └── 957799c3a460ba2e0d26ce0081a4d092dcfb17
├── c5
│ └── be026b3b87a1ae4321700ee45ffcb5eee3ca48
├── d1
│ └── e65d268d5a2230d1d869d55497e0c1eb59b9a5
├── dd
│ └── 483c3c475117275bbf7768a940962842bd5aeb
├── e2
│ └── 6899458dc6cf2c3749c0732ac5b04ccd4c7765
├── e3
│ └── 06b12e22c7914ff80374b7857ee67864a61ba5
├── e7
│ └── a0cc17f9939b80b135c0ec389cbcc98aea70c7
├── eb
│ └── 9169a0d2124594e92720fc6ac1ce3fb29c7d87
├── ed
│ └── 6a815060f960032ecaf70fefdbdae4ac466314
├── f8
│ └── 4401972a0a7020aef85b83561d70af41962a6f
├── info
│ ├── commit-graph
│ └── packs
└── pack
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.idx
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.pack
├── pack-029d08823bd8a8eab510ad6ac75c823cfd3ed31e.promisor
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.idx
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.pack
├── pack-c931093ae6c9df5d36b773f94efc38d9d4b39108.promisor
├── tmp_idx_RRo8oo
└── tmp_pack_1hgueq-----------------------------------------------------------------------------------Original Message---------------------------------------------------------------------------------------------------------------------------------------
From: 程洋
Sent: Wednesday, July 6, 2022 10:03 PM
To: [email protected]; Bagas Sanjaya <[email protected]>; git <[email protected]>
Cc: 何浩 <[email protected]>; Xin7 Ma 马鑫 <[email protected]>
Subject: 回复: RE: [External Mail]Re: Git fork process infinitely and never stop
To lilinchao:
Quoted 1 line
So the repo "git/gerrit" is hosted in your local? and how you "copy" it to your own PC?
1. git/gerrit is hosted on remote server
2. I just scp the whole repository of the user who reproduce the problem to our own PC. And then we can reproduce it on our own PC.
To Johannes:
Quoted 1 line
Hooks may also play a role.
We do have some hooks. But I don't think they're related. Because even I delete those hooks, the problem stands still
To Ævar Arnfjörð:
Quoted 1 line
I assume you can't share the repo, but perhaps try if you can reproduce it with a "git fast-export --anonymize" version of it, and if so whether you'd be willing to share that. It will publish the "shape of the history" of the repo, but not any meaningful data (all commits, trees, blobs etc. are replaced).
git fast-export --anonymize just output is empty. If I try git fast-export --anonymize --all, it seems to fetch first, which goes into the infinite loop again
Quoted 4 lines
The YouTube video shows that you're using various options to git-fetch, including filters, refspecs etc. Does a plain "git fetch" reproduce this, and if not what's the option (try adding them one at a time & experiment) that needs to be added to trigger this?
git fetch also has this problem.
I somewhat suspect some --filter funny business, but that's just a hunch...
It seems to happen after I told my team to use "partial-clone" AND "git v2.36.1". I'm not sure which one is the cause or both of them cause this.
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
possible bug with commit-graph causing git to fork bomb (was Re: [External Mail]Re: Git fork process infinitely and never stop)
Quoted 1 line · 程洋
Any feedback on this?
My guess is that the problem has been difficult enough to reproduce with the instructions you provided and because of the top posting that the people most likely to come up with a solution are not even aware yet of the issue.
I changed the subject and I am including some of your discovery below and copying someone that might know better, but trying to find a way to provide a repository where this could be replicated locally (maybe using the --anonymize option mentioned in the thread) or a copy of the repository (not in an attachment) if it is not sensitive would be of a lot of help.
Also, I heard rumours that most of the people working with that feature that you might have identified as problematic might be off this week, so might need to wait a little longer.
Carlo
PS. also, try to post your responses inline like this one.
------ CUT BELOW FOR PROBABLY RELEVANT INFORMATION FROM THREAD ------
Stolee
Quoted 2 lines
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with-c core.commitGraph=false
This would seem to indicate that something in the repository might be triggered by the commit-graph code.
Quoted 1 line
if I execute
git fetch --filter=blob:none --quiet --progress miui --prune --tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor-vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stableon version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"
maybe a regression?
Carlo
RE: possible bug with commit-graph causing git to fork bomb (was Re: [External Mail]Re: Git fork process infinitely and never stop)
Quoted 11 lines
Quoted 2 lines
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with-c core.commitGraph=falseThis would seem to indicate that something in the repository might be triggered by the commit-graph code.
Quoted 1 line
if I execute
git fetch --filter=blob:none --quiet --progress miui --prune --tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor-vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stableon version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"maybe a regression?
Carlo
I looks like the same issue I reported in [1], and we can see the fixup in [2].
1. https://lore.kernel.org/git/[email protected]/
2. https://lore.kernel.org/git/[email protected]/
-Han Xin
Re: possible bug with commit-graph causing git to fork bomb (was Re: [External Mail]Re: Git fork process infinitely and never stop)
Quoted 11 lines · Han Xin
Quoted 11 lines
Quoted 3 lines
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with-c core.commitGraph=falseThis would seem to indicate that something in the repository might be triggered by the commit-graph code.
Quoted 1 line
if I execute
git fetch --filter=blob:none --quiet --progress miui --prune --tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor-vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stableon version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"maybe a regression?
Quoted 7 lines
Quoted 1 line
Carlo
I looks like the same issue I reported in [1], and we can see the fixup in [2].
1. https://lore.kernel.org/git/[email protected]/
2. https://lore.kernel.org/git/[email protected]/
Indeed; and it is already integrated through hx/lookup-commit-in-graph-fix and merged all the way to "next", which would likely become 2.38 sometime soon.
程洋,
if you could build a new git version based on next and confirm it solves your problem, it would help us all.
Alternative can get that single "one line" patch[1] and integrate it on top of the git version you are using.
Carlo
RE: possible bug with commit-graph causing git to fork bomb (was Re: [External Mail]Re: Git fork process infinitely and never stop)
Quoted 11 lines
if you could build a new git version based on next and confirm it solves your problem, it would help us all.
Alternative can get that single "one line" patch[1] and integrate it on top of the git version you are using.
Carlo
[1]
https://lore.kernel.org/git/96d4bb71505d87ed501c058bbd89bfc13d08b24a.1
[email protected]/
Yes. This patch works. I think it is the root cause of my problem
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
RE: possible bug with commit-graph causing git to fork bomb (was Re: [External Mail]Re: Git fork process infinitely and never stop)
In reply to Carlo ArenasI found another fork bomb with partial-clone but not related to commitGraph
Here is the video: https://youtu.be/3Xun4PQNQC4
And here is the tree command, GIT_TREACE2 and GIT_TRACE_PACKET log
https://drive.google.com/file/d/1mJ4-UcA8ytdjrYL7K6XxCtxys-DRRTqd/view?usp=sharing
https://drive.google.com/file/d/1rOlskap5l2Z1N6LnaBgLhW-G_UF8zx3Z/view?usp=sharing
https://drive.google.com/file/d/1zjI7Cm4aXv3fhPN3F_cwY15Ua-p4ncFl/view?usp=sharing
I still have the scene which can reproduce this bug. If there is something else I can provide, feel free to ask
Quoted 38 lines · Han Xin
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
To be a supplement.
If I delete .git/objects/info/commit-graph, everything works well As well as fetch with-c core.commitGraph=falseThis would seem to indicate that something in the repository might be triggered by the commit-graph code.
Quoted 1 line
if I execute `git fetch --filter=blob:none --quiet --progress miui --prune -
-tags +refs/heads/*:refs/remotes/miui/* +refs/heads/miui13-s-thor- vendor-stable:refs/remotes/miui/miui13-s-thor-vendor-stable` on version 2.25.1. It just throw error rather than infinite loop, like this youtube video "https://www.youtube.com/watch?v=qvYTvVRE0FU&feature=youtu.be"
Quoted 5 lines
Quoted 4 lines
maybe a regression?
Carlo
Quoted 8 lines
I looks like the same issue I reported in [1], and we can see the fixup in [2].
1.
https://lore.kernel.org/git/[email protected]
om/ 2.
https://lore.kernel.org/git/[email protected]
om/Indeed; and it is already integrated through hx/lookup-commit-in-graph-fix and merged all the way to "next", which would likely become 2.38 sometime soon.
程洋,
if you could build a new git version based on next and confirm it solves your problem, it would help us all.
Quoted 8 lines
Alternative can get that single "one line" patch[1] and integrate it on top of the git version you are using.
Carlo
[1]
https://lore.kernel.org/git/96d4bb71505d87ed501c058bbd89bfc13d08b24a.1
[email protected]/
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#