httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20866] - cgi script just hangs at end, then apr_bucket_read error
Date Sun, 22 Jun 2003 21:32:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20866>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20866

cgi script just hangs at end, then apr_bucket_read error





------- Additional Comments From jon5@modem.org  2003-06-22 21:32 -------
Yeah, I think the problem has to do with at least 70 or 80 lines of output to 
STDERR.

I was able to make a small script that shows the problem.

http://www.hotdlz.com/bug/

here is the source code, there are two files index.cgi and bug.pl:

----- index.cgi -----
#!/usr/bin/perl

print "Content-type: text/html\n";
print "Expires: Sun, 22 Jun 2003 20:27:21 GMT\n";
print "Last-Modified: Sun, 22 Jun 2003 20:27:21 GMT\n";
print "Set-Cookie: user=0\n";
print "\n";

if (1) {
  require "/my/www/path/bug/bug.pl";
}

----- bug.pl -----
#!/usr/bin/perl

$| ++;  # non-buffered, it does not matter if you comment this line, bug still 
exists

print "<HTML><BODY>\n";

for ($i=1; $i <= 100; $i++) {
  warn "foo";
  print "$i<BR>";
}

----- END OF SCRIPTS -----

If you adjust the $i <= 100 to something smaller, like 50, there is no 5 minute 
pause.

When I run these scripts through the URL, I do see them in ps and lsof for 5 
minutes until apache times it out with the apr_bucket_read error in its error 
log.

I hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message