>Number: 3136 >Category: mod_cgi >Synopsis: Another cause of "Premature end of script headers:" >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: support >Submitter-Id: apache >Arrival-Date: Mon Oct 5 01:40:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.0 >Environment: Doesn't matter >Description: If you use RLimitCPU and RLimitMem to kill runaway CGI scripts, then you can get this error if the limits are too low. >How-To-Repeat: Add this to http.conf and run a CGI script (eg. cgi-bin/printenv):
RLimitCPU 20 RLimitMem 10000 >Fix: Add this to the FAQ about "Premature end of script headers". It might be better to write an error to the error log which says that the script was killed because of RLimits (I don't know if it is possible to figure out if it failed because of CPU or Memory, but if that was possible, it should print that, too). >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]
