I couldn't find any references to a possible cause of the segmentation fault. Does 
mod_perl 1.99_13 solve this problem?

Anyway, here's the bug report:

1. Problem Description:

Segmentation fault when starting Apache2 with mod_perl

2. Used Components and their Configuration:

*** mod_perl version 1.9912

*** using /usr/local/lib/perl5/site_perl/5.8.2/mach/Apache2/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/local/sbin/apxs
  MP_COMPAT_1X    => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /usr/local/sbin/httpd -V
Server version: Apache/2.0.49
Server built:   Mar 22 2004 17:34:08
Server's Module Magic Number: 20020903:7
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache2/httpd.conf"


*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=freebsd, osvers=4.9-prerelease, archname=i386-freebsd-thread-multi
    uname='freebsd eris.abc.ro 4.9-prerelease freebsd 4.9-prerelease #1: thu oct 2 
19:01:23 eest 2003 [EMAIL PROTECTED]:usrobjusrsrcsyseris i386 '
    config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.2/mach 
-Dprivlib=/usr/local/lib/perl5/5.8.2 -Dman3dir=/usr/local/lib/perl5/5.8.2/man/man3 
-Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.2/mach 
-Dsitelib=/usr/local/lib/perl5/site_perl/5.8.2 -Dscriptdir=/usr/local/bin -Ui_malloc 
-Ui_iconv -Uinstallusrbinperl -Dcc=cc -Doptimize=-O3 -pipe -funroll-loops -march=k6 
-Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN" -Ud_dosuid 
-Di_gdbm -Dusethreads=y -Dusemymalloc=n'
    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=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN" 
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
    optimize='-O3 -pipe -funroll-loops -march=k6',
    cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN" -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', 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 ='-pthread -Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc_r
    perllibs=-lm -lcrypt -lutil -lc_r
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  
-Wl,-R/usr/local/lib/perl5/5.8.2/mach/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under freebsd
  Compiled at Feb 26 2004 13:02:55
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl5/site_perl/5.8.2/mach
    /usr/local/lib/perl5/site_perl/5.8.2
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.2/BSDPAN
    /usr/local/lib/perl5/5.8.2/mach
    /usr/local/lib/perl5/5.8.2
    .


3. This is the core dump trace: 

GNU gdb 4.18 (FreeBSD)
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 "i386-unknown-freebsd"...
(no debugging symbols found)...
(gdb) core-file httpd.core 
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.

[... snip long list of "Reading symbols from /usr/local/lib/ ...
(no debugging symbols found)...done." messages ...]

#0  0x290304f7 in Perl_newSVpvn ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
(gdb) backtrace 
#0  0x290304f7 in Perl_newSVpvn ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
#1  0x29081219 in PerlIO_open ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
#2  0x28fb5363 in S_open_script ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
#3  0x28fb25a2 in S_parse_body ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
#4  0x28fb1994 in perl_parse ()
   from /usr/local/lib/perl5/5.8.2/mach/CORE/libperl.so
#5  0x28f704b0 in modperl_startup ()
   from /usr/local/libexec/apache2/mod_perl.so
#6  0x28f70410 in modperl_startup ()
   from /usr/local/libexec/apache2/mod_perl.so
#7  0x28f71081 in modperl_hook_init ()
   from /usr/local/libexec/apache2/mod_perl.so
#8  0x806979d in ap_run_open_logs ()
#9  0x806c07f in main ()
#10 0x805d026 in _start ()
(gdb) 

This report was generated by -e on Wed Mar 31 14:58:36 2004 GMT.

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

Reply via email to