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

Re: Bugreport: pack-objects died of signal 11

From
Jeff King <peff@peff.net>
Date
Jul 14, 2022, 21:37 UTC
Message-ID
<YtCMklbIoTAN/WRs@coredump.intra.peff.net>
In-Reply-To
<977a6e0e-251c-4fa5-8b3b-fa3e2a761926@www.fastmail.com>
On Tue, Jul 12, 2022 at 10:51:29AM +0200, Paul Horn wrote:
> ultimately, `git repack` segfaults:
> 
>     $ git repack
>     error: pack-objects died of signal 11

Can you provide a backtrace that shows where we segfaulted? If you can build Git from source and have access to a debugger like gdb, that should be enough.

One option is to make sure core dumps are enabled (probably "ulimit -c unlimited"), then run the failing repack, then find the core file (usually in the current directory, but I'm not sure offhand about macOS), and then open the debugger on it ("gdb /path/to/your/git /path/to/core").

But perhaps easier may be to directly run the buggy pack-objects invocation. I pulled the options here from your trace file. Something like:

  gdb -ex 'set args pack-objects \
      --delta-base-offset tmp-pack \
      --keep-true-parents --honor-pack-keep --non-empty \
      --all --reflog --indexed-objects --unpacked --incremental \
      </dev/null' \
    /path/to/your/git

Then "r" to run inside the debugger, which will stop if we segfault. And then "bt" will show the backtrace.

Alternatively, is it possible to make the offending repository available (even off-list)?

-Peff
Previous: Paul HornNext: Emily Noneman
Message 2 of 15 in “Bugreport: pack-objects died of signal 11”
  1. Paul HornJul 12, 2022
  2. Jeff KingJul 14, 2022
  3. Emily NonemanAug 4, 2022
  4. Derrick StoleeAug 4, 2022
  5. Ævar Arnfjörð BjarmasonAug 4, 2022
  6. Emily NonemanAug 4, 2022
  7. revision.c: set-up "index_state.repo", don't segfault in pack-objectsÆvar Arnfjörð Bjarmason, Aug 5, 2022
  8. Derrick StoleeAug 5, 2022
  9. Jeff KingAug 5, 2022
  10. Junio C HamanoAug 5, 2022
  11. Emily NonemanAug 8, 2022
  12. Jeff KingAug 9, 2022
  13. Junio C HamanoAug 9, 2022
  14. Jeff KingAug 9, 2022
  15. Junio C HamanoAug 9, 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.