delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/05/14:20:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Mon, 5 Jun 2000 14:19:32 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: <defunct> 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
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 <defunct> 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 <defunct> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019