Re: git hang with corrupted .pack
From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:47:39
Pascal Obry [off-list ref] wrote:
Le 20/10/2009 17:14, Alex Riesen a ??crit :quoted
I seem to have problems with this change (on Cygwin). Sometimes accessing an object in a pack fails in unpack_compressed_entry. When it happens, both avail_in and avail_out of the stream are 0, and the reported status is Z_BUF_ERROR. Output with the second attached patch: error: *** inflate error: 0x862380 size=1256, avail_in=0 (was 697), avail_out=0 (was 1256) error: *** unpack_compressed_entry failed error: failed to read object 3296766eb5531ef051ae392114de5d75556f5613 at offset 2620741 from .git/objects/pack/pack-996206790aaefbf4d34c86b3ff546bb924546b7c.pack fatal: object 3296766eb5531ef051ae392114de5d75556f5613 is corruptedI have this problem on some repository on Cygwin too. For now I have reverted to Git 1.6.4 which seems to be working fine.
It was fixed in 1.6.5.2 by Junio. -- Shawn.