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

Re: SIGPIPE in t9300-fast-import

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 12, 2010, 21:49 UTC
Message-ID
<20101212214909.GA19709@burratino>
In-Reply-To
<0BB1933F-1C3D-4C24-9C91-263121BF55FB@gernhardtsoftware.com>
Brian Gernhardt wrote:
> 	read blob_id type size <&3 &&
> 	echo "$blob_id $type $size" >response &&
> 	dd of=blob bs=$size count=1 <&3 &&
[...]
> 0+1 records in
> 0+1 records out
> 8139 bytes transferred in 0.000062 secs (131297847 bytes/sec)
> error: git-fast-import died of signal 13
[...]
> I can run help provide diagnostics, if anyone needs more data.
Hmm.  Any idea why dd is ending early?  Does using
	head -c "$size" >blob <&3 &&
or
	dd of=blob bs=1 count=$size <&3 &&
in its place work?  What does the Mac OS X equivalent of
	strace dd of=blob bs=$size count=1 <&3
(dtrace or ktrace, I guess) tell?
Thanks for noticing.
Previous: Brian GernhardtNext: Brian Gernhardt
Message 2 of 6 in “SIGPIPE in t9300-fast-import”
  1. Brian GernhardtDec 12, 2010
  2. Jonathan NiederDec 12, 2010
  3. Brian GernhardtDec 12, 2010
  4. t9300: avoid short reads from ddJonathan Nieder, Dec 13, 2010
  5. Junio C HamanoDec 13, 2010
  6. t9300: use perl "head -c" clone in place of "dd bs=1 count=16000" klugeJonathan Nieder, Dec 13, 2010

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.