This is the mail archive of the
cygwin-developers@sources.redhat.com
mailing list for the Cygwin project.
Re: strace of 100% CPU usage
- To: cygwin developers <cygwin-developers at sources dot redhat dot com>
- Subject: Re: strace of 100% CPU usage
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 12 Oct 2000 09:37:14 -0400
- References: <20001012132904.22636.qmail@web123.yahoomail.com>
- Reply-To: cygwin-developers at sources dot redhat dot com
On Thu, Oct 12, 2000 at 06:29:04AM -0700, Earnie Boyd wrote:
>I've attached two straces one using a -f switch the other without it. I was
>expecting to get something huge with this as the strace was of the make of
>Cygwin. What I found was that an `sh' goes looping waiting on some
>non-existant child and during this wait the CPU is 100% used with the waiting
>`sh' job getting most of the time. The waiting `sh' job eventually times out
>after ~5 minutes. Under strace we get:
> ... sync_with_child: WaitForMultipleObjects timed out
> Cannot fork: No more processes
> Make: *** [all-apache] Error 2
>where ... is: ######### [main] sh ###
>
>Without the strace the make continues albeit abusivly and slowly.
I actually duplicated this yesterday. I am still scratching my head over
the cause. There was actually a bug in strace which causes the looping,
though. If you rebuild from CVS the looping goes away and is replaced
by a SIGSEGV.
Thanks for the strace, though.
cgf