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

[BUG] Out of memory on git log --simplify-by-decoration --first-parent

From
Vincent van Ravesteijn <vfr@lyx.org>
Date
Jun 8, 2012, 18:23 UTC
Message-ID
<4FD24330.2030805@lyx.org>
git dies after calling the following command on the git repo:
$ git log f623ca1c...b9cfa4e9 --simplify-by-decoration --first-parent

This happens in simplify_merges () in revision.c. The list below shows the number of times the "while (list) { ..}" block is executed until git dies:

1475 3544 8274 19588 45689 106077 245329 565153 1269244 2614903 5871845 13138892 fatal: Out of memory, malloc failed (tried to allocate 8 bytes)

Verified with msysgit and on Ubuntu Linux.
Vincent
Next: Junio C Hamano
Message 1 of 4 in “[BUG] Out of memory on git log --simplify-by-decoration --first-parent”
  1. Vincent van RavesteijnJun 8, 2012
  2. Junio C HamanoJun 8, 2012
  3. Vincent van RavesteijnJun 8, 2012
  4. Junio C HamanoJun 8, 2012

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.