Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 25 Feb 2004 14:34:46 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Snapshot 20040221: make hangs on XP
Message-ID: <20040225193446.GA1214@redhat.com>
Mail-Followup-To: cygwin@cygwin.com
References: <bvtrlg$7ln$1@sea.gmane.org> <40241A7E.30901@scytek.de> <40280270.3060403@scytek.de> <403BCEC6.3070503@scytek.de> <20040225001924.GA22911@redhat.com> <20040225002457.GA24184@redhat.com> <c1ir72$po8$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <c1ir72$po8$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

On Wed, Feb 25, 2004 at 01:57:37PM -0500, Rolf Campbell wrote:
>Christopher Faylor wrote:
>>>>--- t.sh ---
>>>>#!/bin/bash
>>>>export C=1
>>>>while make -j ; do C=$(($C+1)) ; done
>>>>echo Failed after $C runs 1>&2
>>>>--- end of t.sh ---
>>>>
>>>>The script failed with:
>>>>
>>>>$ ./t.sh > freeze.out
>>>>/bin/sh: line 1: sleep: No such file or directory
>>>>make: *** [12.pp] Error 127
>>>>make: *** Waiting for unfinished jobs....
>>>>Failed after 1499 runs
>>>
>>>I ran a variation of the above for three days without fail so I think I
>>>can safely say that I can't reproduce this problem.
>>
>>And, by the way: http://cygwin.com/ml/cygwin/2004-02/msg00923.html
>
>I tried running that script again, here were my results:
>
>Feb14: more than 10,000 iterations  (never failed, just got bored of 
>watching it)
>Feb17: more than 270 (still running)
>Feb18: Froze after 12, 41, 6
>Feb20: Froze after 9, 2, 4
>Feb21: Froze after 1, 5, 4

Out of curiousity, the next time it freezes, try hitting CTRL-D.  I ran one
of the scripts for four hours and got a freeze.  gdb showed that make was
sitting in console input mode for some reason.  Hitting ctrl-d (followed two seconds
by an expletive) got things running again.

I didn't really expect that to "fix" things, though.  I really wanted to
poke around to see why it was waiting for input.

So, if this is correct then putting a "< /dev/null" in the script
would probably make things run forever, not that that should be
the ultimate solution.

>My un-educated guess is:
>2004-02-17  Corinna Vinschen  <corinna@vinschen.de>
>
>	* fork.cc (fork_child): Move fixup_shms_after_fork so that
>	signal_arrived is initialized when calling it.
>

It is unlikely in the extreme that this would be the cause.  make doesn't
use shm, AFAIK.

cgf

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

