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

Re: "malloc failed"

From
Jeff King <peff@peff.net>
Date
Jan 29, 2009, 05:20 UTC
Message-ID
<20090129052041.GB31507@coredump.intra.peff.net>
In-Reply-To
<87skn3rn5n.fsf@mcbain.luannocracy.com>
On Wed, Jan 28, 2009 at 07:06:28PM -0500, David Abrahams wrote:
> Well, moving the 2.6G .dar backup binary out of the fileset seems to
> have helped a little, not surprisingly :-P

Ok, that _is_ big. ;) I wouldn't be surprised if there is some corner of the code that barfs on a single object that doesn't fit in a signed 32-bit integer; I don't think we have any test coverage for stuff that big.

But it may also just be that we are going to try malloc'ing 2.6G, and that's making some system limit unhappy.

> I don't know whether anyone on this list should care about that failure
> given the level of abuse I'm inflicting on Git, but keep in mind that
> the system *does* have 8G of memory.  Conclude what you will from that,
> I suppose!

Well, I think you said before that you were never getting close to using up all your memory. Which implies it's some system limit.

-Peff
Previous: David AbrahamsNext: Jeff King
Message 8 of 15 in “"malloc failed"”
  1. David AbrahamsJan 27, 2009
  2. Shawn O. PearceJan 27, 2009
  3. David AbrahamsJan 27, 2009
  4. Johannes SchindelinJan 27, 2009
  5. Jeff KingJan 28, 2009
  6. David AbrahamsJan 28, 2009
  7. David AbrahamsJan 29, 2009
  8. Jeff KingJan 29, 2009
  9. Jeff KingJan 29, 2009
  10. Junio C HamanoJan 29, 2009
  11. David AbrahamsJan 29, 2009
  12. Andreas EricssonJan 29, 2009
  13. Jeff KingJan 30, 2009
  14. Pau Garcia i QuilesJan 28, 2009
  15. Jeff KingJan 29, 2009

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.