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

Re: Stack overflow at write_one()

From
Cesar Eduardo Barros <cesarb@cesarb.net>
Date
Nov 19, 2011, 21:46 UTC
Message-ID
<4EC823A0.3010603@cesarb.net>
In-Reply-To
<7vty5zizwn.fsf@alter.siamese.dyndns.org>
Em 19-11-2011 19:08, Junio C Hamano escreveu:
> Already found the real cause (jGit bug) and workaround posted, I think.

I presume the cause then is what was fixed by http://egit.eclipse.org/w/?p=jgit.git;a=commit;h=2fbf296fda205446eac11a13abd4fcdb182f28d9 ?

> See $gmane/185573

That did it, thanks! The patch had an offset, a fuzz, and a reject, but it was easy to fix by hand.

$ ../git/git gc Counting objects: 30254, done. Delta compression using up to 4 threads. Compressing objects: 100% (6614/6614), done. warning: recursive delta detected for object fac71dfa0fe8c70cc852099e061c334e2a548eab warning: recursive delta detected for object 1b730f5b2e0bdb2a2206af8ed30170509e75a2f5 warning: recursive delta detected for object 2f25a87e67fa3a226e367b9e080f11aa90c9f953 warning: recursive delta detected for object d5e5eefac91788da9a94efe9a15e0b928a77489e Writing objects: 100% (30254/30254), done. Total 30254 (delta 24008), reused 28803 (delta 23266)

And after that the repack does not break anymore:

$ ../git/git gc Counting objects: 30254, done. Delta compression using up to 4 threads. Compressing objects: 100% (5876/5876), done. Writing objects: 100% (30254/30254), done. Total 30254 (delta 24008), reused 30254 (delta 24008)

-- 
Cesar Eduardo Barros
cesarb@cesarb.net
cesar.barros@gmail.com
Previous: Junio C HamanoNext: Shawn Pearce
Message 3 of 6 in “Stack overflow at write_one()”
  1. Cesar Eduardo BarrosNov 19, 2011
  2. Junio C HamanoNov 19, 2011
  3. Cesar Eduardo BarrosNov 19, 2011
  4. Shawn PearceNov 19, 2011
  5. Cesar Eduardo BarrosNov 20, 2011
  6. Shawn PearceNov 20, 2011

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.