On Wed, 2002-12-18 at 17:48, iansmith wrote:
> I have compiled apache_1.3.27 with mod_perl-1.27 and got no errors.
> I have mod_perl as a shared module.
> 
> I can run Apache without mod_perl fine, but when I activate the
> mod_perl module, it gives me this in error_log for every connection
> and fails to deliver any pages at all.
> 
> [notice] child pid 27049 exit signal Segmentation fault (11)
> 
> My perl is: This is perl, v5.8.0 built for i386-linux-thread-multi
> 
> I looked over the mod_perl documentation, but can't seem to find
> anything that says what works and what does not.
> 

I had a similar issue with a fresh install of Mandrake 9.0.
(see below for the 'perl -V output')

I Embperl (2.0b9dev5 or 2.0b8) wouldn't work without compiling my own
non-threaded version of Perl. 

For my own install of Perl I used all the default Perl compile settings
and everything went fine.

The biggest problem for me under Mandrake with self compiled version of
Perl was the MDK::Common module that drakxconf uses and along with that
Gtk-Perl.  I have yet to get them all working 100%, but my mod_perl
server is running great.  The other stuff I can work around.

I was mainly trying to get Embperl setup. My Apache::ASP sites seemed to
work fine with the default Perl.

I realize this isn't exactly like your problem, but possibly there is a
commonality of troubles with the threaded 5.8 Perl and mod_perl.

Oddly enough on a machine I upgraded from Mandrake 8.2 to 9.0 (Perl
5.6.1 to 5.8.0) everything compiled and worked.

I should also not that my Apache/mod_perl compile was done using the
Apachetoolbox utility and mod_perl was static not DSO.

Aaron Johnson

Mandrake 9 default perl -V:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.19-2mdkenterprise,
archname=i386-linux-thread-multi
    uname='linux no.mandrakesoft.com 2.4.19-2mdkenterprise #1 smp tue
aug 13 00:17:42 cest 2002 i686 unknown unknown gnulinux '
    config_args='-des -Darchname=i386-linux -Dcc=gcc -Doptimize=-O3
-fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math
-fno-strength-reduce -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr
-Dman3ext=3pm -Dcf_by=MandrakeSoft -Dmyhostname=localhost
-Dperladmin=root@localhost -Dd_dosuid -Ud_csh -Duseshrplib -Dusethreads'
    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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
-march=i586 -ffast-math -fno-strength-reduce',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-I/usr/include/gdbm'
    ccversion='', gccversion='3.2 (Mandrake Linux 9.0 3.2-1mdk)',
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='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
    cccdlflags='-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 linux
  Compiled at Sep  6 2002 23:24:44
  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    .


> Do I need to compile a non-threaded version of Perl?
> 
> Thanks.
> 
> --
> Ian
> 
> 
> 

Reply via email to