git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git 1.5.3.5 error over NFS (pack data corruption)

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 14, 2007, 00:02 UTC
Message-ID
<20071114000218.GL3268@steel.home>
In-Reply-To
<18234.14781.55429.671459@lisa.zopyra.com>
Bill Lear, Wed, Nov 14, 2007 00:56:45 +0100:
Show 22 quoted lines
> On Tuesday, November 13, 2007 at 22:48:02 (+0100) Alex Riesen writes:
> >...
> >> >I extend the part you quoted. The file is opened here:
> >> >...
> >> >This is strange. The current git should not produce anything like
> >> >this (and does not, here). ...
> >> 
> >> You are absolutely correct.  My comrade ran this with 1.5.0.1 by
> >> mistake.  He reran the strace with 1.5.3.5, and I have replaced
> >> the tarball on my server:
> >> 
> >>     http://www.zopyra.com/~rael/git/git-trace.tar.bz2
> >
> >Still looks like v1.5.0.1:
> >
> >    write(2, "fatal: ", 7)                  = 7
> >    write(2, "cannot pread pack file: No such "..., 49) = 49
> 
> Well, I just grepped for the above string in git-1.5.3.5:
> 
> % grep 'cannot pread pack file' *.c
> index-pack.c:                   die("cannot pread pack file: %s", strerror(errno));

oh, you should be looking for usage.c, the function report (it is called by default die handler). The old code used to fputs("fatal:"), the new just vfprintf's everything, so the write should look like:

    write(2, "fatal: cannot pread pack file: No such "...
Previous: Bill LearNext: Bill Lear
Message 9 of 14 in “git 1.5.3.5 error over NFS”
  1. Bill LearNov 9, 2007
  2. Alex RiesenNov 9, 2007
  3. Bill LearNov 12, 2007
  4. Alex RiesenNov 12, 2007
  5. Alex RiesenNov 12, 2007
  6. Bill LearNov 13, 2007
  7. Alex RiesenNov 13, 2007
  8. Bill LearNov 13, 2007
  9. Alex RiesenNov 14, 2007
  10. Bill LearNov 14, 2007
  11. Alex RiesenNov 14, 2007
  12. Nicolas PitreNov 14, 2007
  13. Junio C HamanoNov 14, 2007
  14. Nicolas PitreNov 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.