Re: index-pack died on pread

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michal Rokos <michal.rokos@...>
Cc: GIT <git@...>
Date: Monday, July 23, 2007 - 1:04 pm

On Mon, 23 Jul 2007, Michal Rokos wrote:

Ok, that's bogus. When "n" is zero, the errno (and thus the error string) 
is not changed by pread, so that's a very misleading error report.

So what seems to have happened is that the pack-file is too short, so we 
got a return value of 0, and then reported it as if it had an errno.

The reason for returning zero from pread would be:

 - broken pread. I don't think HPUX should be a problem, so that's 
   probably not it.

 - the pack-file got truncated

 - the offset is corrupt, and points to beyond the size of the packfile.

In this case, since the offset is just 123601, I suspect it's a truncation 
issue, and your pack-file is simply corrupt. Either because of some 
problem with receiving it, or because of problems on the remote side.


One thing to look out for is that the "git.kernel.org" machines aren't the 
"primary" ones, and the data gets mirrored from other machines. If the 
mirroring is incomplete, I could imagine that the remote side simply ended 
up terminating the connection, and you ended up with a partial pack-file.

Some of the kernel.org machines ran out of disk space the other day, so 
maybe you happened to hit it in an unlucky window. Does it still happen?

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
index-pack died on pread, Michal Rokos, (Mon Jul 23, 8:52 am)
Re: index-pack died on pread, Linus Torvalds, (Mon Jul 23, 1:04 pm)
Re: index-pack died on pread, Robin Rosenberg, (Wed Jul 25, 7:15 pm)
Re: index-pack died on pread, Linus Torvalds, (Wed Jul 25, 7:44 pm)
Re: index-pack died on pread, Alex Riesen, (Thu Jul 26, 8:42 am)
Re: index-pack died on pread, Linus Torvalds, (Thu Jul 26, 12:13 pm)
Re: index-pack died on pread, Junio C Hamano, (Thu Jul 26, 11:43 pm)
Re: index-pack died on pread, Linus Torvalds, (Fri Jul 27, 1:36 am)
Re: index-pack died on pread, Nicolas Pitre, (Fri Jul 27, 9:38 am)
Re: index-pack died on pread, Tomash Brechko, (Fri Jul 27, 5:50 am)
Re: index-pack died on pread, Tomash Brechko, (Fri Jul 27, 6:33 am)
Re: index-pack died on pread, Alex Riesen, (Thu Jul 26, 12:51 pm)
Re: index-pack died on pread, Linus Torvalds, (Thu Jul 26, 2:02 pm)
Re: index-pack died on pread, Nicolas Pitre, (Mon Jul 23, 2:03 pm)
Re: index-pack died on pread, Alex Riesen, (Mon Jul 23, 11:32 am)
Re: index-pack died on pread, Michal Rokos, (Wed Jul 25, 4:07 pm)
Re: index-pack died on pread, Alex Riesen, (Wed Jul 25, 4:48 pm)