delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/15/17:06:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_YE,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=CRaqIhZDmOhxvJICgFUBdbcnJCgg6E3vXkYML6xZ0To=; b=iWjt2+UhyZIVv9FIz7W6h5nJiqSBPO82XkLxxDX0Ymd9gQU5DrC1pekWRCSonYa9Fb vidt53lCVLsjcqr29wRXBXrkTw1hDQ5SOjPrgFt9wBF8WtQk6FAzlnUoOzD+Fc51z5YE lfjHSzmLqNKpeDdlrlQiBy51oeNUSWtGGQtk6imrc9nCkIN01wx/WIiS9MrtfycNyHuR +76Yc8fhE5egJ9b34XkHBDb57WFxCyI7/QS326fMekfjAdyVNDL24aV1Krounf4YJk1H FnX36KEjzGNHWr9QTlOzXF2T6+gSG32FE2Kd5sDx9RwCzDhxUCNsA04p1VvvVNuYN6HZ R6QA==
Message-ID: <50A5675E.5090703@kitware.com>
Date: Thu, 15 Nov 2012 17:06:22 -0500
From: Bill Hoffman <bill DOT hoffman AT kitware DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: git fork failure on pull with a workaround (hopefully a clue for a fix)
References: <509AB02F DOT 1000300 AT kitware DOT com> <509AC4E0 DOT 2080709 AT bopp DOT net> <509BC18E DOT 1050905 AT kitware DOT com> <50A545D3 DOT 1060209 AT kitware DOT com> <20121115205545 DOT GA14187 AT ednor DOT casa DOT cgf DOT cx> <50A55E87 DOT 3060304 AT kitware DOT com>
In-Reply-To: <50A55E87.3060304@kitware.com>
X-Gm-Message-State: ALoCoQn+t9C1kw9IRa3J0IjYfhAhDhsbxKuYeKOscbqnLBolj4BGEKWpGLiiC3/j45+nZblt6FuYwPZTC5BQlA+ru9JrUdFHd92Ekr2Mk3sQrFOuMdw+x+S8e7oKiEk1w+fOgw5Vzujbe2NxifDuIoLnEpvSCc65qA==
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hopefully more useful information...  :)


I used GIT_TRACE=1 to figure out where in the git pull things go bad and 
found something potentially interesting.

I get the fork failure if I do this:

$ /cygdrive/c/cygwin/lib/git-core/git.exe 'fetch' '--update-head-ok'
       2 [main] git 6380 fork: child -1 - forked process 3928 died 
unexpectedly, retry 0, exit code -1073741515, errno 11
error: cannot fork() for rev-list: Resource temporarily unavailable
error: Could not run 'git rev-list'
   35915 [main] git 6380 fork: child -1 - forked process 4324 died 
unexpectedly, retry 0, exit code -1073741515, errno 11
error: cannot fork() for rev-list: Resource temporarily unavailable
error: Could not run 'git rev-list'
error: git://kwsource.kitwarein.com/computer-vision/vision-tpl.git did 
not send all necessary objects


However, if I do this:
  /usr/bin/git.exe 'fetch' '--update-head-ok'

It does not fail, but works.

These seem to be the same file:
$ ls -l /usr/bin/git.exe
-rwxr-xr-x 109 hoffman root 1159694 Feb 13  2012 /usr/bin/git.exe

hoffman AT exarius ~/Work/vision/vidtk-bootstrap/b/Sources/vision_tpl
$ ls -l /cygdrive/c/cygwin/lib/git-core/git.exe
-rwxr-xr-x 109 hoffman root 1159694 Feb 13  2012 
/cygdrive/c/cygwin/lib/git-core/git.exe
$ diff /cygdrive/c/cygwin/lib/git-core/git.exe /usr/bin/git.exe

 From the strace I posted you can see that git pull invokes git from 
C:\cygwin\lib\git-core\git.exe and not /usr/bin/git.exe.

It seems to matter where git.exe is.

I copied /usr/bin/git.exe to the current directory and it fails:

$ GIT_TRACE=1 ./git.exe 'fetch' '--update-head-ok'
trace: built-in: git 'fetch' '--update-head-ok'
trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' 
'--all' '--quiet'
      84 [main] git 3896 fork: child -1 - forked process 8320 died 
unexpectedly, retry 0, exit code -1073741515, errno 11
error: cannot fork() for rev-list: Resource temporarily unavailable
error: Could not run 'git rev-list'
trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
   32347 [main] git 3896 fork: child -1 - forked process 8756 died 
unexpectedly, retry 0, exit code -1073741515, errno 11
error: cannot fork() for rev-list: Resource temporarily unavailable
error: Could not run 'git rev-list'

If I run the same command from /usr/bin/git.exe it works:

$ GIT_TRACE=1 /usr/bin/git.exe 'fetch' '--update-head-ok'
trace: built-in: git 'fetch' '--update-head-ok'
trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' 
'--all' '--quiet'
trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
trace: exec: 'git' 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
trace: built-in: git 'rev-list' '--verify-objects' '--stdin' '--not' '--all'


-Bill

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019