strace of 100% CPU usage
Chris Faylor
cgf@cygnus.com
Thu Oct 12 06:38:00 GMT 2000
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
More information about the Cygwin-developers
mailing list