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

Odd git overrflow bug?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jul 10, 2016, 16:02 UTC
Message-ID
<CA+55aFz=sZnABJr6F2yF_xvx6J6fZod6BbiL2OwszEnjjn-dEw@mail.gmail.com>

We have an odd bug report in the kernel, where somebody had trouble bisecting all the way due to

  "git is failing with "you are trying to use to much memory"(?!)"

which can't be an exact error message quote, but the closest I can find smells like the "unsigned_add_overflows()" check in the strbuf code. Very odd.

See
    https://bugzilla.kernel.org/show_bug.cgi?id=121701
for the bug report.

I'm not seeing how that could *possibly* happen, but if it indeed is that strbuf code, maybe it could print out the function name (there are two different cases) and values so give a hint about where/how this happens..

Of course, since the bug report isn't an exact quote anyway, maybe that wouldn't have helped anyway. I asked for more information.

           Linus
Next: Andreas Schwab
Message 1 of 7 in “Odd git overrflow bug?”
  1. Linus TorvaldsJul 10, 2016
  2. Andreas SchwabJul 10, 2016
  3. Linus TorvaldsJul 10, 2016
  4. Linus TorvaldsJul 10, 2016
  5. Linus TorvaldsJul 10, 2016
  6. Linus TorvaldsJul 10, 2016
  7. Junio C HamanoJul 10, 2016

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.