Hello

I'm using Apache2 and ModPerl2 on Fedora Core 4 x86_64 and I discover some
problem when client try to get nonexistent script uri 
(http://my.site.com/foooooo.pl).
Client doesn't obtain any response or error page.

Petr Dadak
Univesity IS development at Mendel university Brno, Czech Republic

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

  When I try to execute script, which doesn't exist, I get errors like this:
        slurp_filename('/uis/web/nonexistent.pl') / opening: (2) No such file 
or directory at 
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm
 line 540
        Can't use an undefined value as a SCALAR reference at 
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm
 line 578
  and client doesn't obtain any response. Any code in sub read_script after line
        'self->{CODE} = eval { $self->{REQ}->slurp_filename(0) }; # untainted'
  is not proceeded.

  So I made little work around putting 
        return Apache2::Const::NOT_FOUND unless -e $self->{FILENAME};
  before problem line.

  related apache configuration:
<Files *.pl>
        Options +ExecCGI
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlOptions +ParseHeaders +GlobalRequest +MergeHandlers +SetupEnv
</Files>


2. Used Components and their Configuration:

Fedora Core 4

*** mod_perl version 2.000001

*** using 
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_CONFIG  => /usr/bin/apr-config
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/sbin/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

(apr|apu)-config scripts were not found



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=linux, osvers=2.4.21-27.el, archname=x86_64-linux-thread-multi
    uname='linux crowe.devel.redhat.com 2.4.21-27.el #1 smp wed dec 1 21:53:39 
est 2004 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -m64 -mtune=nocona -Dversion=5.8.6 -Dmyhostname=localhost [EMAIL 
PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr 
-Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5.8.6 
-Dsitelib=/usr/lib/perl5/site_perl/5.8.6 
-Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.6 
-Darchlib=/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi 
-Dsitearch=/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi 
-Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi 
-Darchname=x86_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib 
-Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db 
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio 
-Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr 
-Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_endprotoent_r_proto 
-Ud_endservent_r_proto -Ud_sethostent_r_proto -Ud_setprotoent_r_proto 
-Ud_setservent_r_proto -Dinc_version_list=5.8.5 5.8.4 5.8.3'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 
-mtune=nocona',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe 
-I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='4.0.0 20050516 (Red Hat 4.0.0-6)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_64_BIT_INT 
USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at May 18 2005 18:18:57
  %ENV:
    PERL5LIB="/uis/mod_perl"
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /uis/mod_perl/5.8.6/x86_64-linux-thread-multi
    /uis/mod_perl/5.8.6
    /uis/mod_perl/x86_64-linux-thread-multi
    /uis/mod_perl/5.8.5
    /uis/mod_perl/5.8.4
    /uis/mod_perl/5.8.3
    /uis/mod_perl
    /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.6
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl
    /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.6
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.3
    /usr/lib/perl5/vendor_perl
    /usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi
    /usr/lib/perl5/5.8.6
    .

*** Packages of interest status:

Apache2            : 1.00
Apache2::Request   : -
CGI                : 3.11
ExtUtils::MakeMaker: 6.30
LWP                : 5.803
mod_perl           : -
mod_perl2          : 2.000001


This report was generated by /usr/bin/mp2bug on Thu Sep 15 14:01:38 2005 GMT.

-------------8<---------- End Bug Report --------------8<----------

Reply via email to