Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 9355 invoked from network); 9 Dec 2004 16:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 16:00:16 -0000 Received: (qmail 84752 invoked by uid 500); 9 Dec 2004 15:59:44 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 84585 invoked by uid 500); 9 Dec 2004 15:59:43 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 84516 invoked by uid 99); 9 Dec 2004 15:59:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Message-ID: <41B87664.6030903@lserve.com> Date: Thu, 09 Dec 2004 10:59:32 -0500 From: Brian Dimeler User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Modperl List Subject: CGI::Carp and PerlRun Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I've noticed that on some of my simpler CGI scripts, in which I use CGI::Carp's 'die' replacement to print an error message to the browser, PerlRun will give an internal server error instead, but still log the error message. These scripts worked fine under mod_cgi. CGI::Carp's documentation claims to have long ago been patched to work with mod_perl, but for some reason this isn't working for me. Even a very simple example: #!/usr/bin/perl -w use CGI::Carp 'fatalsToBrowser'; die 'CGI::Carp test'; will log this in error_log: [Thu Dec 9 10:54:27 2004] [error] PerlRun: `CGI::Carp test at /System/Library/Perl/5.8.1/CGI/Carp.pm line 312. yet generate a 500 error for the browser (access_log): [09/Dec/2004:10:54:27 -0500] "GET /cgi-bin/carptest.pl HTTP/1.1" 500 605 Does anyone know why this would happen under PerlRun, which is *supposed* to be able to run CGI scripts without modification, and if there's a workaround? Thanks, Brian -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html