{"thread":{"id":"19009","subject":"bad object","startedAt":"2009-04-22T18:48:42Z","lastAt":"2009-04-22T23:20:20Z","messageCount":4,"participants":["J. Bruce Fields","Junio C Hamano","Nicolas Pitre"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111974","messageId":"20090422184842.GC9541@fieldses.org","threadId":"19009","inReplyTo":null,"subject":"bad object","fromName":"J. Bruce Fields","fromEmail":"bfields@fieldses.org","sentAt":"2009-04-22T18:48:42Z","receivedAt":"2009-04-22T18:48:42Z","isPatch":false,"sender":{"key":"bfields@citi.umich.edu","avatar":null},"body":"Just today operations started warning:\n\n\terror: Could not read 4e69489a0ac11a9b62a25923975bfc370a30eae5\n\nThis is Documentation/networking/baycom.txt from\n518e6540831c69422faecceee8f964bd439ac9d0 (pre-2.6.13), which is easy\nenough to find from another repository and fix the problem.\n\nBut I'm curious--how do I find out what pack file that object should be\nin, and what the corruption looks like?\n\nThis is the third time I've found corruption in a repository on this\nlaptop, so I'm a little suspicious of the hardware.  (The second time I\nreported here: http://marc.info/?l=git&m=121968278319668&w=2.)\n\n--b.\n"},{"id":"111993","messageId":"7vbpqo31fx.fsf@gitster.siamese.dyndns.org","threadId":"19009","inReplyTo":"20090422184842.GC9541@fieldses.org","subject":"Re: bad object","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-04-22T19:58:42Z","receivedAt":"2009-04-22T19:58:42Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"J. Bruce Fields\" <bfields@fieldses.org> writes:\n\n> Just today operations started warning:\n>\n> \terror: Could not read 4e69489a0ac11a9b62a25923975bfc370a30eae5\n>\n> This is Documentation/networking/baycom.txt from\n> 518e6540831c69422faecceee8f964bd439ac9d0 (pre-2.6.13), which is easy\n> enough to find from another repository and fix the problem.\n>\n> But I'm curious--how do I find out what pack file that object should be\n> in, and what the corruption looks like?\n\nThe former you should be able to read from either \"verify-pack -v\" or\n\"show-index\" output.  After finding the offset for the object data in the\npack, a bit of \"dd seek=\" would be needed to extract the data.\n\n>\n> This is the third time I've found corruption in a repository on this\n> laptop, so I'm a little suspicious of the hardware.  (The second time I\n> reported here: http://marc.info/?l=git&m=121968278319668&w=2.)\n>\n> --b.\n"},{"id":"112007","messageId":"20090422210001.GI9541@fieldses.org","threadId":"19009","inReplyTo":"7vbpqo31fx.fsf@gitster.siamese.dyndns.org","subject":"Re: bad object","fromName":"J. Bruce Fields","fromEmail":"bfields@fieldses.org","sentAt":"2009-04-22T21:00:01Z","receivedAt":"2009-04-22T21:00:01Z","isPatch":false,"sender":{"key":"bfields@citi.umich.edu","avatar":null},"body":"On Wed, Apr 22, 2009 at 12:58:42PM -0700, Junio C Hamano wrote:\n> \"J. Bruce Fields\" <bfields@fieldses.org> writes:\n> \n> > Just today operations started warning:\n> >\n> > \terror: Could not read 4e69489a0ac11a9b62a25923975bfc370a30eae5\n> >\n> > This is Documentation/networking/baycom.txt from\n> > 518e6540831c69422faecceee8f964bd439ac9d0 (pre-2.6.13), which is easy\n> > enough to find from another repository and fix the problem.\n> >\n> > But I'm curious--how do I find out what pack file that object should be\n> > in, and what the corruption looks like?\n> \n> The former you should be able to read from either \"verify-pack -v\" or\n> \"show-index\" output.\n\nThanks.  So:\n\nbfields@pig:~/local/linux-2.6$ git verify-pack -v .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b\nerror: Packfile index for .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack SHA1 mismatch\nerror: packed 000000e0199ffeffffffd143feffd143feff00c0 from .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack is corrupt\n.git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack: bad\n\nI don't have another copy of the pack 691dbdb94....  I guess I could run\ngit-unpack-objects and see what it produces for the bad blob?\n\n--b.\n\n> After finding the offset for the object data in the\n> pack, a bit of \"dd seek=\" would be needed to extract the data.\n> \n> >\n> > This is the third time I've found corruption in a repository on this\n> > laptop, so I'm a little suspicious of the hardware.  (The second time I\n> > reported here: http://marc.info/?l=git&m=121968278319668&w=2.)\n> >\n> > --b.\n"},{"id":"112029","messageId":"alpine.LFD.2.00.0904221914190.6741@xanadu.home","threadId":"19009","inReplyTo":"20090422210001.GI9541@fieldses.org","subject":"Re: bad object","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2009-04-22T23:20:20Z","receivedAt":"2009-04-22T23:20:20Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Wed, 22 Apr 2009, J. Bruce Fields wrote:\n\n> On Wed, Apr 22, 2009 at 12:58:42PM -0700, Junio C Hamano wrote:\n> > \"J. Bruce Fields\" <bfields@fieldses.org> writes:\n> > \n> > > Just today operations started warning:\n> > >\n> > > \terror: Could not read 4e69489a0ac11a9b62a25923975bfc370a30eae5\n> > >\n> > > This is Documentation/networking/baycom.txt from\n> > > 518e6540831c69422faecceee8f964bd439ac9d0 (pre-2.6.13), which is easy\n> > > enough to find from another repository and fix the problem.\n> > >\n> > > But I'm curious--how do I find out what pack file that object should be\n> > > in, and what the corruption looks like?\n> > \n> > The former you should be able to read from either \"verify-pack -v\" or\n> > \"show-index\" output.\n> \n> Thanks.  So:\n> \n> bfields@pig:~/local/linux-2.6$ git verify-pack -v .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b\n> error: Packfile index for .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack SHA1 mismatch\n> error: packed 000000e0199ffeffffffd143feffd143feff00c0 from .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack is corrupt\n> .git/objects/pack/pack-691dbdb94f881bc07a0befa45f288466bde6207b.pack: bad\n\nThis is really strange and suspicious to have \n\"000000e0199ffeffffffd143feffd143feff00c0\" as a SHA1 reference.  It \nsomehow lacks quite some randomness.\n\n> I don't have another copy of the pack 691dbdb94....  I guess I could run\n> git-unpack-objects and see what it produces for the bad blob?\n\nIt will produce nothing but some other error messages.\n\nWhat you can do is to manually copy the object or a pack containing that \nobject into your repository and repack which would get rid of the error.  \nBut you might want to keep the broken pack and its index around for \nfurther analysis.\n\n\nNicolas\n"}]}