Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Mon, 5 Jun 2000 14:19:32 -0400 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: processes under Win9x... Message-ID: <20000605141932.B1292@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com References: <20000605180047 DOT 21614 DOT rocketmail AT web221 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000605180047.21614.rocketmail@web221.mail.yahoo.com>; from kcoleman@yahoo.com on Mon, Jun 05, 2000 at 11:00:47AM -0700 I'm sorry this is really to difficult to debug from an strace log. The symptom of wait_subproc looping is not abnormal. It's what happens when a program has started a sub process. The wait_subproc thread disappears when the program exits. That's the only time it goes away. You are going to have to do quite a bit more debugging, unfortunately. If you have an actual process that is not going away then you should be able to attach to it with gdb. cgf On Mon, Jun 05, 2000 at 11:00:47AM -0700, Ken Coleman wrote: >I've debugged a problem I reported a few weeks ago a little bit more, >and I can tell you fairly well what's happening. > >I'm trying to get Apache 1.3.12 running, and when I run CGI scripts, >the subprocesses that run the script become and stay that way >forever. It fork()s Apache, then calls one of the exec() functions to >run the CGI script synchronously. In one of the processes, it's >spinning at the top of wait_subproc in sigproc.cc. It's appears that >it will be in the loop forever, although I haven't let the processes >run for more than a few minutes. > >In that function, WaitForMultipleObjects() is consistently returning >WAIT_TIMEOUT, but proc_loop_wait is still 500. It appears that you set >it to 0 when it's time for the process to terminate, but somehow that >has not occurred. The process has already received several >PROC_CHILDTERMINATED signals into proc_subproc, which is why it's set >to in the process table (zombie flag is set). > >Any help would be greatly appreciated. There are several strace logs >that I sent in my earlier message that may be useful - it's dated >5/23/2000. It works under WinNT (I ran it on my work system), but >fails under Win9x. There are two strace logs - one for each OS. I >know you hate dealing with Win9x, but I just can't really upgrade this >system to Win2K. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com