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

Git Bug Report: out of memory using git tag

From
MEMartin Englund <martin@englund.nu>
Date
Oct 28, 2022, 22:29 UTC
Message-ID
<CABYbkvP=fMmaFUD3bQbeQ-XKiMSP6g-u0p7Vq1Qt_K5=D5WJ+A@mail.gmail.com>

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? (Steps to reproduce your issue) I created a signed tag (git tag -s) using a ssh-agent key and then ran git tag -l --format '%(contents:body)' v0.6.1

What did you expect to happen? (Expected behavior) I get the output

What happened instead? (Actual behavior) fatal: Out of memory, malloc failed (tried to allocate 18446744073709551266 bytes)

What's different between what you expected and what actually happened? git tries to allocate an unreasonable amount of memory

Anything else you want to add: I don't have 18,000 PB of memory

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.38.1.280.g63bba4fdd8 cpu: x86_64 built from commit: 63bba4fdd86d80ef061c449daa97a981a9be0792 sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.15.0-1021-aws #25~20.04.1-Ubuntu SMP Thu Sep 22 13:59:08 UTC 2022 x86_64 compiler info: gnuc: 9.4 libc info: glibc: 2.31 $SHELL (typically, interactive shell): /bin/bash

Cheers, /Martin

-- 
Martin Englund, martin@englund.nu / GnuPG key: FE91E717
http://blog.englund.nu/
Next: Jeff King
Message 1 of 15 in “Git Bug Report: out of memory using git tag”
  1. Martin EnglundOct 28, 2022
  2. Jeff KingNov 1, 2022
  3. Philippe BlainNov 2, 2022
  4. Jeff KingNov 2, 2022
  5. 1/2 ref-filter: fix parsing of signatures without blank linesJeff King, Nov 2, 2022
  6. 2/2 ref-filter: fix parsing of signatures with CRLF and no bodyJeff King, Nov 2, 2022
  7. Elijah NewrenNov 2, 2022
  8. gigantic commit messages, was Re: Git Bug Report: out of memory using git tagJeff King, Nov 2, 2022
  9. Ævar Arnfjörð BjarmasonNov 2, 2022
  10. Elijah NewrenNov 2, 2022
  11. Eric SunshineNov 2, 2022
  12. Philippe BlainNov 2, 2022
  13. Jeff KingNov 3, 2022
  14. Taylor BlauNov 3, 2022
  15. Philippe BlainNov 2, 2022

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.