git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bug report - BUG: builtin/pack-objects.c:4310: should_include_obj should only be called on existing objects

From
NGNik Garza <nikolas@applied.co>
Date
Apr 25, 2025, 18:14 UTC
Message-ID
<CA+ODqj2s68nPWzd1KHH3vUm3SiFHuf2b=+hmNuWesi-bo3c8_g@mail.gmail.com>
reporting the attached bug:
-- 
*Nikolas Garza*

Software Engineer

nikolas@applied.co

(209) 499-1193

Applied Intuition, Inc. <https://applied.co/>


Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

Continually hitting a oack-objects error when fetching tags in my repo. This occurs in CI during critical jobs. The issues is flaky but leads to an unreliable system.

The Error:

ERROR: Failed to fetch git tags from origin!
	Stdout:
	Stderr:
BUG: builtin/pack-objects.c:4310: should_include_obj should only be called on existing objects
error: pack-objects died of signal 6
fatal: could not finish pack-objects to repack local links
fatal: index-pack failed


What did you do before the bug happened? (Steps to reproduce your issue)

ran the following:

git fetch origin refs/tags/<version-identified>.*refs/tags/<version-identifier.*

What did you expect to happen? (Expected behavior)

tags to be fetched to the CI machine running this command 

What happened instead? (Actual behavior)

error above was thrown causing the job to fail

What's different between what you expected and what actually happened?

pretty simple...we expect the fetch to work as expected

Anything else you want to add:

we are pretty sure retries will resovle the issue but that shouldn't bne necessary. 

we upgraded git from version 2.47.0 -> 2.49.0 and then started seeing the issue so we believe this is a low level git issue itself and not our use of git in our repo

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.49.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
libcurl: 8.5.0
zlib: 1.3
uname: Linux 5.15.0-134-generic #145~20.04.1-Ubuntu SMP Mon Feb 17 13:27:16 UTC 2025 x86_64
compiler info: gnuc: 13.3
libc info: glibc: 2.39
$SHELL (typically, interactive shell): <unset>


[Enabled Hooks]
post-checkout
post-commit
post-merge
pre-commit
pre-push
Next: Elijah Newren
Message 1 of 5 in “bug report - BUG: builtin/pack-objects.c:4310: should_include_obj should only be called on existing objects”
  1. Nik GarzaApr 25, 2025
  2. Elijah NewrenApr 25, 2025
  3. Jonathan TanApr 28, 2025
  4. Nik GarzaApr 28, 2025
  5. Sam EstepOct 17, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.