fatal: pack-objects died of signal 9 / out of memory Git Origin: Build & delivery OSI layer 7 · Application Last updated 25 Nov 2026

error: pack-objects died of signal 9 fatal: the remote end hung up unexpectedly

Git ran out of memory while packing objects.

Exact message you may see pack-objects died of signal 9fatal: pack-objects died due to out of memoryOut of memory, malloc failederror: pack-objects died of signal 9 fatal: the remote end hung up unexpectedly
Seen on: Git Linux

Meaning

Limit memory: git config pack.windowMemory 100m, pack.packSizeLimit, pack.threads 1 or add swap. Large binaries and big histories trigger it on small servers.

Common causes

  • Large repository
  • Small RAM/container limits
  • Too many threads

⚡ Quick fix

  1. Set pack.windowMemory and pack.threads=1
  2. Increase memory/swap
  3. Run git gc on a bigger machine

Detailed fix by platform

Git

  1. bash
    git config pack.windowMemory 100m
    git config pack.threads 1
    git gc

How to diagnose

  1. RAM — limit?
  2. Repo — big?
  3. Threads — many?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

0xC0000005 — The application was unable to start correctly (0xc0000005) / Exception code 0xc0000005 access violation (Windows)0xC0000005APNs: BadDeviceToken (400) — {"reason":"BadDeviceToken"} HTTP/2 400 from api.push.apple.com (iOS)APNs: BadDeviceToken …Auto packing the repository in background for optimum performance — Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. (Git)Auto packing the repo…Cannot allocate memory — fork: Cannot allocate memory / ENOMEM (Linux)Cannot allocate memoryCommit unreachable after gc (reflog expired) — error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc (Git)Commit unreachable af…Container exceeded memory limit — Bitbucket Pipelines: Container 'Build' exceeded memory limit / Docker container exited with code 137 (CI/CD)Container exceeded me…error: Could not read ... fatal: pack has bad object / index-pack failed — fatal: pack has bad object at offset 12345: inflate returned -3 (Git)error: Could not read…error: Server does not allow request for unadvertised object — fatal: remote error: upload-pack: not our ref a1b2c3d4e5f6 (Git)error: Server does no…fatal: pa…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.