I just compiled and installed
Apache 1.3.20 with mod_perl 1.26
and mod_ssl-2.8.4.  Apache
segfaults almost immediately on all requests.

For kicks I compiled Apache 
without mod_ssl and the segfaults disappear.
Also interesting is the fact that when
I compile without mod_ssl make test
completes successfully but when I include
mod_ssl the make test fails to start a httpd process
due to a syntax error:
letting apache warm up...\c
Syntax error on line 3 of /usr/src/mod_perl-1.26/t/conf/httpd.conf:
Invalid command '=pod', perhaps mis-spelled or defined by a module not
included in the server configuration
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok

I could go with two separate web servers
but I would like to know if there is a way
to make one web server with both mod_perl and mod_ssl.

This is the script I used to compile everything:
APACHE_VER=1.3.20
MM_VER=1.1.3
MODSSL_VER=2.8.4
MODPERL_VER=1.26

(cd ../mod_ssl-$MODSSL_VER-$APACHE_VER &&
./configure \
              --with-apache=../apache_$APACHE_VER \
              --with-crt=/root/demoCA/newcerts/x.pem \
              --with-key=/root/demoCA/csr/x.csr &&
cd ../mod_perl-$MODPERL_VER &&
# prep perl side of mod_perl into the perl system
# and prep the apache side of mod_perl
perl Makefile.PL EVERYTHING=1 \
                DO_HTTPD=1 \
        APACHE_PREFIX=/usr/local/apache \
                APACHE_SRC=../apache_$APACHE_VER/src \
                USE_APACI=1  \
                PREP_HTTPD=1 &&
make &&
make install &&
cd ../apache_$APACHE_VER &&
SSL_BASE=SYSTEM \
EAPI_MM=SYSTEM \
./configure \
                          --with-layout=Slackware \
              --enable-module=ssl \
              --enable-shared=ssl \
              --disable-rule=SSL_COMPAT \
                          --enable-module=most \
                          --activate-module=src/modules/perl/libperl.a
\
              --enable-shared=max &&
make &&
make install ) 2>&1 | tee install.log

Here is the message that goes into the error log:
[Fri Sep  7 21:25:56 2001] [notice] Apache/1.3.20 (Unix) mod_perl/1.26
configured -- resuming normal operations
[Fri Sep  7 21:26:09 2001] [notice] child pid 26019 exit signal
Segmentation fault (11)

The output of perl -V is:
Summary of my perl5 (revision 5.0 version 6 subversion 1)
configuration:
  Platform:
    osname=linux, osvers=2.4.2, archname=i386-linux
    uname='linux grommet 2.4.2 #1 smp sun feb 25 16:33:33 pst 2001
i686 unknown '
    config_args='-de -Dprefix=/usr -Darchname=i386-linux
-Dprivlib=/usr/lib/perl5 -Darchlib=/usr/lib/perl5/i386-linux
-Dsitelib=/usr/lib/perl5/site_perl
-Dsitearch=/usr/lib/perl5/site_perl/i386-linux'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)',
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 -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.2.so, so=so, useshrplib=false,
libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic'
    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 11 2001 22:57:30
  @INC:
    /usr/lib/perl5/i386-linux
    /usr/lib/perl5
    /usr/lib/perl5/site_perl/i386-linux
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/site_perl

When I run apache under -X and strace here is what 
happens when the request comes in:
26480 read(5, "GET / HTTP/1.0\r\nConnection: Keep"..., 4096) = 277
26480 rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
26480 time(NULL)                        = 999917985
26480 alarm(300)                        = 300
26480 alarm(0)                          = 300
26480 stat64(0x8170710, 0xbffff17c)     = 0
26480 --- SIGSEGV (Segmentation fault) ---
26480 +++ killed by SIGSEGV +++

Does anyone have any suggestions?

Reply via email to