Summary: | CGI-script can break error-log | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Sander Holthaus <info> |
Component: | mod_cgi | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0.45 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | FreeBSD |
Description
Sander Holthaus
2003-05-21 12:55:07 UTC
It seems that stop - start doesn't help either, you need to change the error- logfile (forgot that I did that, sorry). OK, figured it out. The errorlog does not seem to break (eg. other cgi-scripts and stuff can write to it, no restart neccesary), the bug is caused something I didn't look at (since is worked in previous versions). The error-log does not seem to be outputted when writing out a Location header. My script ends with: print "Location http://www.mysite.com/succes.html\n\n"; exit; This code worked up to 2.0.43, but as of 2.0.45 it doesn't. If I quote out this line I get an error 500 (since nothing is outputted to the browser), but everything gets written to the error-log. Was that using an nph- script? Bug 18348 concerns loss of stderr output from nph- scripts. Ah, no, you had tracked it down correctly. This is harder to hit with 2.0.50 and later which have the "CGI bucket" changes, but the remaining case is fixed on the trunk: http://svn.apache.org/viewcvs.cgi/httpd/httpd/trunk/modules/generators/mod_cgi.c?rev=106195&r1=106103&r2=106195 Thanks for the report. |