CGI.pm > 2.98 sends malformed headers
Posted on 2003-11-12
Apache 1.3.29 + PHP 4.3.4 + mod_perl 1.29
perl 5.8.2 from ports
scripts in question running under mod_cgi, not mod_perl
Script (for simplicities sake):
use CGI::Carp qw(fatalsToBrowser);
die "i'm dead!";
When I run a script (like the one above, or anything using CGI::Carp) under mod_cgi using the CGI.pm 2.99 or 3.0 package, I get the following an internal server error and a the following line appears in the error log:
[Tue Nov 11 20:49:30 2003] [error] [client 184.108.40.206] malformed header from script. Bad header=<pre>my error: /path/to/script/test.cgi
If I downgrade to CGI.pm 2.98 or below, I do not get these errors and everything works flawlessly. I've posted to a couple of perl lists and nobody can figure it out. I've tried stripping down to a basic httpd.conf, removing all the mod_perl and php directives, but I still get the same error. Every other function of CGI.pm 3.0 works, it's just the CGI::Carp stuff that errors.
Any ideas? If you have any questions about my setup and whatnot just ask. Thanks!