You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by dg...@hyperreal.org on 1997/07/23 19:26:17 UTC

Re: general/607: CGI processes that run certain outside programs hang indefinately

Synopsis: CGI processes that run certain outside programs hang indefinately

State-Changed-From-To: closed-suspended
State-Changed-By: dgaudet
State-Changed-When: Wed Jul 23 10:26:15 PDT 1997
State-Changed-Why:
This does turn out to be an apache bug.  The user was running
ScriptLog.  ScriptLog is broken -- it creates a deadlock situation
with any CGI that generates a lot of stderr output.  For example,
if the CGI generates enough to fill the stderr pipe() then the CGI
will block writing that pipe.  But the webserver is probably blocked
reading the stdout pipe from the CGI and deadlock occurs.

The solution to this (and other problems) is do to full event
style select() processing for CGIs.  Roy suggests this wait
until 2.0 and SFIO... Dean pretty much agrees with that.

Dean
Release-Changed-From-To: 1.2b10 IRIX-1.2
Release-Changed-By: dgaudet
Release-Changed-When: Wed Jul 23 10:26:15 PDT 1997
Category-Changed-From-To: general-mod_cgi
Category-Changed-By: dgaudet
Category-Changed-When: Wed Jul 23 10:26:15 PDT 1997