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

Re: git status --> Out of memory, realloc failed

From
René Scharfe <l.s.r@web.de>
Date
Mar 1, 2017, 10:02 UTC
Message-ID
<ea0722e2-c2bd-bd80-a233-50676efcafda@web.de>
In-Reply-To
<84c02ca1-269e-2f26-c625-476d7f087f5c@cafu.de>
Am 25.02.2017 um 11:13 schrieb Carsten Fuchs:
Show 8 quoted lines
> Dear Git group,
>
> I use Git at a web hosting service, where my user account has a memory
> limit of 768 MB:
>
> (uiserver):p7715773:~$ uname -a
> Linux infongp-de15 3.14.0-ui16322-uiabi1-infong-amd64 #1 SMP Debian
> 3.14.79-2~ui80+4 (2016-11-17) x86_64 GNU/Linux
What's the output of "ulimit -a"?
> (uiserver):p7715773:~$ git --version
> git version 2.1.4

That's quite old. Can you try a more recent version easily (2.12.0 just came out)? I don't remember a specific fix, and memory usage perhaps even increased with newer versions, but ruling out already fixed issues would be nice.

Show 12 quoted lines
> (uiserver):p7715773:~/cafu$ git gc
> Zähle Objekte: 44293, Fertig.
> Komprimiere Objekte: 100% (24534/24534), Fertig.
> Schreibe Objekte: 100% (44293/44293), Fertig.
> Total 44293 (delta 17560), reused 41828 (delta 16708)
>
> (uiserver):p7715773:~/cafu$ git status
> fatal: Out of memory, realloc failed
> fatal: recursion detected in die handler
>
> The repository is tracking about 19000 files which together take 260 MB.
> The git server version is 2.7.4.1.g5468f9e (Bitbucket)
Is your repository publicly accessible?
René
Previous: Carsten FuchsNext: Carsten Fuchs
Message 2 of 7 in “git status --> Out of memory, realloc failed”
  1. Carsten FuchsFeb 25, 2017
  2. René ScharfeMar 1, 2017
  3. Carsten FuchsMar 1, 2017
  4. Duy NguyenMar 2, 2017
  5. Carsten FuchsMar 3, 2017
  6. René ScharfeMar 2, 2017
  7. Carsten FuchsMar 3, 2017

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.