This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: <defunct> processes under Win9x...


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]