Hi List,

It's my first post.

I'm running a remote dedicated webserver running a RH 7.2.
Originally perl5.6.1 was pre-installed (rpm), so I downloaded and installed 
perl5.8.4. I decided to download some fresh Apache and mod_perl:
-Apache 1.3.31
-mod_perl 1.29 

When I set an HTML::Mason handler to serve a VirtualHost, httpd logs:
[notice] child pid 9943 exit signal Segmentation fault (11)

Note that if the HTML::Mason module is not installed, the httpd does not 
segfault.

It seems to be a shared lib issue, but I'm not a pro of that. I hope this 
issue is related to this mailing list and I hope that you will be able to 
give me some help to solve this problem.

Best regards

Richard.


Here are the gdb outputs:

>>GDB

1001: [/root] # gdb httpd

(gdb) run -X
Starting program: /usr/sbin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x0809fc4b in XS_Apache__Table_FETCH ()

(gdb) bt
#0  0x0809fc4b in XS_Apache__Table_FETCH ()
#1  0x0811e5fa in Perl_pp_entersub ()
#2  0x08118366 in Perl_runops_standard ()
#3  0x080d4094 in Perl_call_sv ()
#4  0x080d41f6 in Perl_eval_sv ()
#5  0x0808efcf in perl_require_module ()
#6  0x08089b43 in perl_call_handler ()
#7  0x08089668 in perl_run_stacked_handlers ()
#8  0x080881cb in perl_handler ()
#9  0x080a574f in ap_invoke_handler ()
#10 0x080bb1bf in ap_some_auth_required ()
#11 0x080bb220 in ap_process_request ()
#12 0x080b1ee5 in ap_child_terminate ()
#13 0x080b2090 in ap_child_terminate ()
#14 0x080b2204 in ap_child_terminate ()
#15 0x080b290e in ap_child_terminate ()
#16 0x080b3173 in main ()
#17 0x4015d657 in __libc_start_main (main=0x80b2dcc <main>, argc=2, 
ubp_av=0xbffffb34,
    init=0x8066370 <_init>, fini=0x816fc30 <_fini>, rtld_fini=0x4000dc54 
<_dl_fini>,
    stack_end=0xbffffb2c) at ../sysdeps/generic/libc-start.c:129

(gdb) list
1       rtld.c: No such file or directory.
        in rtld.c


>>
>> PERL
>>

1004: [/root] # perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.4.25-ci, archname=i686-linux
    uname='linux galago.propagation.net 2.4.25-ci #5 smp mon mar 1 21:31:28 
cst 2004 i686 unknown '
    config_args='-Doptimize=-O2 -Dcc=gcc -Dcccdlflags=-fPIC 
-Dinstallprefix=/usr -Dprefix=/usr -Uusethreads -Uuseithreads -Uuselargefiles 
-Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include 
-I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', 
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=4
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options:
  Built under linux
  Compiled at Jul 21 2004 12:29:05
  @INC:
    /usr/lib/perl5/5.8.4/i686-linux
    /usr/lib/perl5/5.8.4
    /usr/lib/perl5/site_perl/5.8.4/i686-linux
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl
    .

>>
>> MOD_PERL
>>

perl Makefile.PL \
APACHE_SRC=../apache_1.3.31/src \
USE_APACI=1 \
NO_HTTPD=1 \
PREP_HTTPD=1 \
EVERYTHING=1


>>
>> APACHE
>>

./configure \
--prefix=/www \
--with-perl=/usr/bin/perl5.8.4 \
--enable-module=env \
--enable-module=log_config \
--enable-module=mime \
--enable-module=negotiation \
--enable-module=status \
--enable-module=include \
--enable-module=autoindex \
--enable-module=dir \
--enable-module=cgi \
--enable-module=asis \
--enable-module=imap \
--enable-module=actions \
--enable-module=userdir \
--enable-module=alias \
--enable-module=rewrite \
--enable-module=access \
--enable-module=setenvif \
--enable-module=auth \
--enable-module=auth_dbm \
--enable-module=auth_db \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl




-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to