From: "brian m. carlson" <sandals@crustytoothpaste•net>
To: Justin Su <injustsu@gmail•com>
Cc: git@vger•kernel.org
Subject: Re: SIGSEGV when running git fetch
Date: Fri, 28 Nov 2025 23:56:15 +0000 [thread overview]
Message-ID: <aSo2n2dhEoZd3nZW@fruit.crustytoothpaste.net> (raw)
In-Reply-To: <CAB=S_8JufSGCOBjCQJ6R1Lq-GumJXTPzWGv2JCZK2SPw_XuGPA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2799 bytes --]
On 2025-11-28 at 22:56:19, Justin Su wrote:
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? `git fetch`
>
> What did you expect to happen? `git fetch` works normally
>
> What happened instead?
>
> ```
> $ git fetch
> Fetching submodule catppuccin/bat
> Fetching submodule catppuccin/btop
> Fetching submodule catppuccin/micro
> Fetching submodule catppuccin/delta
> fatal: Unable to create
> '/home/ubuntu/.config/.git/objects/info/commit-graphs/commit-graph-chain.lock':
> File exists.
>
> Another git process seems to be running in this repository, e.g.
> an editor opened by 'git commit'. Please make sure all processes
> are terminated then try again. If it still fails, a git process
> may have crashed in this repository earlier:
> remove the file manually to continue.
>
> $ rm -f .git/objects/info/commit-graphs/commit-graph-chain.lock
>
> $ git fetch
> Fetching submodule catppuccin/bat
> Fetching submodule catppuccin/delta
> Fetching submodule catppuccin/btop
> Fetching submodule catppuccin/micro
> fish: Job 1, 'git fetch' terminated by signal SIGSEGV (Address boundary error)
> ```
>
> What's different between what you expected and what actually happened?
> `git fetch` almost always results in a SIGSEGV, however the fetch
> appears to work
I went ahead and looked at the repository you provided in the embedded
archive and I think it's corrupt. First, you're missing the `.git/refs`
directory, so my version of Git (2.51.0.338.gd7d06c2dae8) didn't even
think it was a valid Git directory. I then ran `git fsck` and found a
wide variety of missing blobs in your repository.
When running `git fetch`, I did not get a segfault, but I did get this
messsage:
----
% git fetch
error: unable to load config blob object 'd38cf93d707c01ca18ed0233bcebb7aa172f0edd'
fatal: You are attempting to fetch 06c0fdfd73559275c8d0423ddff0d3bcfd7e7f3f, which is in the commit graph file but not in the object database.
This is probably due to repo corruption.
If you are attempting to repair this repo corruption by refetching the missing object, use 'git fetch --refetch' with the missing object.
----
`git fetch --refetch` downloaded several objects, but I still have four
missing blobs afterwards.
So I would recommend running `git fsck` on your repository and see if
it's corrupt and if you're missing objects. I agree that Git should not
segfault, even with corruption, but I don't see it doing that (granted,
on a Debian unstable amd64 system, not an Ubuntu arm64 system). We may
have fixed the bug you're seeing in a newer version, though.
--
brian m. carlson (they/them)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2025-11-28 23:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 22:56 SIGSEGV when running git fetch Justin Su
2025-11-28 23:56 ` brian m. carlson [this message]
2025-11-29 0:08 ` Justin Su
2025-11-29 0:29 ` Justin Su
2025-11-29 0:49 ` Justin Su
2025-11-29 11:16 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aSo2n2dhEoZd3nZW@fruit.crustytoothpaste.net \
--to=sandals@crustytoothpaste$(echo .)net \
--cc=git@vger$(echo .)kernel.org \
--cc=injustsu@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox