{"thread":{"id":"5398","subject":"Re: Problem with pack","startedAt":"2006-08-26T18:49:36Z","lastAt":"2006-08-26T18:49:36Z","messageCount":1,"participants":["Sergio Callegari"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"25950","messageId":"44F097C0.1000109@arces.unibo.it","threadId":"5398","inReplyTo":null,"subject":"Re: Problem with pack","fromName":"Sergio Callegari","fromEmail":"scallegari@arces.unibo.it","sentAt":"2006-08-26T18:49:36Z","receivedAt":"2006-08-26T18:49:36Z","isPatch":false,"sender":{"key":"scallegari@arces.unibo.it","avatar":null},"body":">\n> Junio C Hamano <junkio@cox.net> writes:\n>\n> > Earlier you said \"unpack-objects <$that-pack.pack\" fails with\n> > \"error code -3 in inflate...\"  What exact error do you get?\n> > I am guessing that it is get_data() which says:\n> >\n> > \t\"inflate returned %d\\n\"\n> >\n> > (side note: we should not say \\n there).\n> > ...\n> > This pattern appears practically everywhere...\n> > ...  I've been\n> > wondering if it is possible for inflate to eat some input but\n> > that was not enough to produce one byte of output, and what [it]\n> > would return in such a case...\n>\n> I do not think this fear does not apply to this particular case;\n> return value -3 is Z_DATA_ERROR, so the deflated stream is\n> corrupt.\n>\n> > So there are only a few ways you can get that error message.\n> > ...\n>\n> I just realized there is another not so inplausible explanation.\n>\n> When the problematic pack was made on the mothership,\n> csum-file.c::sha1write_compressed() gave the data for the base\n> object to zlib, an alpha particle hit a memory cell that\n> contained zlib output buffer (resulting in a corrupt deflated\n> stream in variable \"out\"), and sha1write() wrote it out while\n> computing the right checksum.\n>\n> Is the memory on your mothership reliable (I do not want to make\n> this message sound like one on the kernel list, but memtest86\n> might be in order)?\n>   \nFor sure you can never say, but so far I have never had any problem with \nthat machine nor I had any after this incident...\n\nSergio\n>\n>\n>\n>   \n"}]}