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

Re: Git clone stalls at a read(3, ...) saw using strace

From
ARAndré Goddard Rosa <andre.goddard@gmail.com>
Date
Jul 28, 2006, 13:57 UTC
Message-ID
<b8bf37780607280657x1c4c88d1ofd0734ddc4642d02@mail.gmail.com>
In-Reply-To
<EA24FE8B11562848B4760FD5EB4D2E9401B3F3C2@SAO1016V.ww101.siemens.net>
On 7/28/06, Ribeiro, Humberto Plinio <humberto.ribeiro@siemens.com> wrote:
Show 11 quoted lines
> Hi, Andre.
>
> After a "ps -ef" I saw two instances of the script defined by
> GIT_PROXY_COMMAND. Strangely one of those instances was child
> of the other. A strace showed the scripts were blocked in a
>"waitpid(-1,". I've killed the child script and the git clone resumed the
>process.
>
> I didn't understand why this blocking on git happened though. The
> creation of these two instances (one child of the other) was also
> strange.
Yes,  it worked to me too, but I also don't know why.

Let me explain exactly what we had to do so someone perhaps can explain why we had to do this:

I configured GIT_PROXY_COMMAND pointing to a script with this content:

(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | nc 172.29.0.6 3128 | (read a; read a; cat )

Later:
git clone git://source.mvista.com/git/linux-davinci-2.6.git

After some time (downloading 117 Mb) it stalled (git-fetch on a pipe read) and we had to do this to resume and let it finish:

[root@mao2wx23 tmp]# ps -ef | grep git | grep -v grep opb694 9975 1451 0 01:39 pts/11 00:00:00 /bin/sh /usr/bin/git-clone git://source.mvista.com/git/linux-davinci-2.6.git opb694 9985 9975 3 01:39 pts/11 00:01:56 git-fetch-pack --all -k git //source.mvista.com git/linux-davinci-2.6.git [root@mao2wx23 tmp]# ps -ef | grep proxy | grep -v grep opb694 9986 9985 0 01:39 pts/11 00:00:00 /bin/sh /home/opb694/proxy-cmd.sh source.mvista.com 9418 opb694 9987 9986 0 01:39 pts/11 00:00:00 /bin/sh /home/opb694/proxy-cmd.sh source.mvista.com 9418 [root@mao2wx23 tmp]# kill 9987

Thanks again for the patience,
-- 
[]s,
André Goddard
Previous: Ribeiro, Humberto Plinio
Message 14 of 14 in “Git clone stalls at a read(3, ...) saw using strace”
  1. André Goddard RosaJul 27, 2006
  2. Pavel RoskinJul 27, 2006
  3. André Goddard RosaJul 27, 2006
  4. Linus TorvaldsJul 27, 2006
  5. André Goddard RosaJul 27, 2006
  6. André Goddard RosaJul 27, 2006
  7. Linus TorvaldsJul 27, 2006
  8. André Goddard RosaJul 27, 2006
  9. Pavel RoskinJul 27, 2006
  10. André Goddard RosaJul 27, 2006
  11. André Goddard RosaJul 28, 2006
  12. André Goddard RosaJul 28, 2006
  13. Ribeiro, Humberto PlinioJul 28, 2006
  14. André Goddard RosaJul 28, 2006

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.