X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 28 Jun 2010 14:34:40 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.6 snapshot: intermittent "CreateProcessW failed"
Message-ID: <20100628183440.GA18422@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <AANLkTikYWphtrMeneeOh3QpasUdOgXCfxPxbbzvOgVWS@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AANLkTikYWphtrMeneeOh3QpasUdOgXCfxPxbbzvOgVWS@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Jun 28, 2010 at 05:36:04PM +0100, Andy Koppe wrote:
>When running a couple of lengthy make-based builds in parallel, I
>eventually get error messages such as this:
>
>      3 [main] sh 4368 fork: child -1 - CreateProcessW failed, errno 2
>/bin/sh: fork: No such file or directory
>
>      5 [main] make 5736 fork: child -1 - CreateProcessW failed, errno 2
>make[2]: vfork: No such file or directory
>
>The errors aren't reproducible, i.e. when rerunning, one of the build
>fails elsewhere with the same sort of error. Hence I'm unable to
>provide a small testcase.
>
>It doesn't fail if I run just one build at a time, and it fails more
>quickly if I run more than two. I guess this suggests a
>synchronisation issue.
>
>This is on a 32-bit Windows XP. The issue didn't occur on 1.7.5 and
>before. I went back through previous snapshots to try to narrow to
>down the problem a little bit: 20100507 is fine, 20100518 is not.

Hmm.  That means that it is related to the change to use wide characters
for the current program name but I've reviewed the patch again and don't
see anything obvious.

Could you try this on the latest snapshot when it shows up.  I've added a
tad more debugging to the error message.

Also, if you could duplicate this under strace that would be very helpful.
Please send the strace to me at me at <myinitials> dot cx.

cgf

--
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

