Subject: Re: Stack overflow at write_one()

From: Cesar Eduardo Barros <[email-masked]>
Date: Sat, 19 Nov 2011 19:46:08 -0200

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
[email-masked]
[email-masked]