Hello I have been having problems getting Apache (APXS build) working with
mod_perl. I get a segfault (printed in the errorlog) when clients try and
connect to apache.

All the components (perl, apache, mod_perl) are default clean builds (all
gcc) - the segfault (and apache hang) only occurs when mod_perl is enabled.
No extra/additional mod_perl scripts/handlers are being used - only whats in
the default installation.  No core dump produced by the segfault.

Below, I have included all the information noted in the SUPPORT document (is
anything else needed?)

I have seen a few other people with the exact same problem as this, and that
the problem could be due to Perl 5.6.0 which may be a bit dodgy at dyanmic
module loading (??ithink - probably read wrong?? :-)

Could someone please help me on this as I am at abit of a dead end.  I know
that DSO support is experimental - but I would rather not compile statically
if possible in order to resolve this (previous mod_perl rpm worked fine)

Hope this information below helps

Many thanks,

Roger Foskett

related thread:
http://www.geocrawler.com/mail/thread.php3?subject=httpd+coredumps&list=182

-------- APACHE VERSION --------
apache_1.3.12  (built as APXS - works fine)

-------- MOD_PERL VERSION --------
mod_perl-1.23

--------- MOD_PERL CONFIGURATION --------
perl ./Makefile.PL \
    USE_APXS=1 \
    WITH_APXS=/usr/local/apache/bin/apxs \
    EVERYTHING=1

-------- SERVER CONFIG DETAILS --------
Default installation httpd.conf - no extra modules / handlers / scripts
enabled (mod_perl enabled)
  LoadModule perl_module   libexec/libperl.so
  AddModule mod_perl.c
  PerlModule Apache

-------- Error log message --------
[Mon May 22 22:09:16 2000] [notice] child pid 2101 exit signal Segmentation
fault (11)

-------- make test --------
Can't make test with APXS (yet)

-------- perl -V --------
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.14-15mdk, archname=i686-linux
    uname='linux mako 2.2.14-15mdk #7 fri may 5 19:58:40 bst 2000 i686
unknown '
    config_args='-de -Dcc=gcc'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O2', gccversion=2.95.2 19991024 (release)
    cppflags='-fno-strict-aliasing'
    ccflags
='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    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='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.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 May 21 2000 16:52:47
  @INC:
    /usr/local/lib/perl5/5.6.0/i686-linux
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/i686-linux
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl
    .

-------- BACKTRACE --------
(the seg fault was caused by telnetting into port 80 and typing 'GET\n' )

# gdb /usr/local/apache/bin/httpd
GNU gdb 19991116
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux"...
(gdb)  run -X -f /www/conf/httpd.conf -d /tmp
Starting program: /usr/local/apache/bin/httpd -X -f /www/conf/httpd.conf -d
/tmp

Program received signal SIGSEGV, Segmentation fault.
0x403c8e20 in ?? () from /usr/local/apache/libexec/libperl.so
(gdb) bt
#0  0x403c8e20 in ?? () from /usr/local/apache/libexec/libperl.so
#1  0x8054287 in run_method ()
#2  0x80543b6 in ap_header_parse ()
#3  0x8068830 in process_request_internal ()
#4  0x8068c5a in ap_process_request ()
#5  0x805fdf6 in child_main ()
#6  0x805ffb1 in make_child ()
#7  0x806012c in startup_children ()
#8  0x806078d in standalone_main ()
#9  0x8060fbc in main ()
#10 0x400c19ee in __libc_start_main (main=0x8060c24 <main>, argc=6,
    argv=0xbffffa64, init=0x804e870 <_init>,
    fini=0x80964d4 <_fini>, rtld_fini=0x4000a570 <_dl_fini>,
stack_end=0xbffffa5c)
    at ../sysdeps/generic/libc-start.c:90

(how do I get the lineno for this??)

Reply via email to