-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
$ENV{REDIRECT_ERROR_NOTES} not working with MP2Using latest everything (modperl 2 RC5).
To illustrate, I simply configure Apache with an errordocument:
ErrorDocument 500 /cgi/printenv
I have a perl-scripts configured like this:
<Directory "/usr/local/apache2/perl">
Options ExecCGI
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
</Directory>And a script the generates an error:
#/usr/bin/perl barf();
The errordocument 'printenv' output shows REDIRECT_ERROR_NOTES empty.
When the identical barf script is run under CGI (script-alias), REDIRECT_ERROR_NOTES has an error message.
I fooled around with more complex examples, accessing ARP table 'error-notes' and that is also empty.
2. Used Components and their Configuration:
*** mod_perl version 1.999022
*** using /usr/local/src/mod_perl-2.0.0-RC5/lib/Apache2/BuildConfig.pm
*** Makefile.PL options: MP_APR_LIB => aprext MP_APXS => /usr/local/apache2/bin/apxs MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1
*** The httpd binary was not found
*** (apr|apu)-config linking info
-L/usr/local/apache2/lib -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl -L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0 -lexpat
*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=linux, osvers=2.4.18-14, archname=i686-linux
uname='linux heretic.lbl.gov 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686
i686 i386 gnulinux '
config_args='-Dprefix=/usr -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/include/gdbm'
ccversion='', gccversion='3.2 20020903 (Red Hat Linux 8.0 3.2-7)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.2.93.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.2.93'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Apr 27 2005 11:50:31 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .
*** Packages of interest status:
Apache2 : - Apache2::Request: - CGI : 3.08 LWP : 5.803 mod_perl : 1.999021 mod_perl2 : 1.999022
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by ./t/REPORT on Thu Apr 28 16:46:18 2005 GMT.
-------------8<---------- End Bug Report --------------8<----------
