Philippe M. Chiasson wrote:
[...]
Ideas? Anybody can reproduce this simple test case ? Somehow, I suspect it has to do 
with the fact
that Apache::OK isn't a plain sub but a constant, but ???

I have tried these two:


  <Location /foo>
      SetHandler perl-script
      PerlFixupHandler Apache::DECLINED
      PerlHandler +Foo
  </Location>

<Location /segv>
 PerlModule Apache::Constants
 SetHandler perl-script
 PerlHandler Apache::OK
</Location>

Both "work" (no segfault). Want me to try with another perl?


Now, that is wierd. I've copy-pasted your 2 example and they both segv
the same way, and my perl is just like yours... I am starting to think
that there must be something strange about me, not you all ;-S

Have you tried taking a shower? ;)


Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.20, archname=i686-linux-thread-multi
    uname='linux shou.sg.ectoplasm.org 2.4.20 #4 smp sat apr 12 20:16:56 sgt 2003 i686 
athlon i386 gnulinux '
    config_args='-des -Dprefix=/home/gozer/opt/perl/i386-linux/5.6.1/shrplib-threads 
-Doptimize='-g' -Duseshrplib -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.2.3 20030422 (Red Hat Linux 3.2.3-4)', 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, usemymalloc=n, 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 -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/home/gozer/opt/perl/i386-linux/5.6.1/shrplib-threads/lib/5.6.1/i686-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

We have a different libc, though mine reports a wrong library. it reports the lib it was compiled with libc=/lib/libc-2.2.5.so. However


  % ldd ~/perl/5.6.1-ithread/lib/5.6.1/i686-linux-thread-multi/CORE/libperl.so
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

/home/stas/bios> l /lib/i686/libc.so.6
lrwxrwxrwx    1 root     root           13 Jan 24 09:23 /lib/i686/lib
c.so.6 -> libc-2.3.1.so*

so I'm running 2.3.1 and you 2.3.2 (maybe, check the real version with ldd). And that could make the difference.

Also, try to use an empty/minimal httpd.conf when you test this segfault

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to