Greetings,

I'm not sure if this should be sent here, or to the HTML::Mason list, but as
its a segfault, I've sent it here first. I've just upgraded my
apache/mod_perl installation, and have run into a few problems.

Firstly, all of mod_perl's tests pass (although a few are skipped), and
mod_perl itself seems to work (Apache::MP3 was the module I used for
testing, which seems to work). However, any attempt to use
HTML::Mason::ApacheHandler causes a segmentation fault.

I've looked though the various mod_perl and Mason FAQs/documentation, and
couldn't find anything regarding this. I'd be most appreciative if anyone
could point me in the right direction.

My system details are as below - I've included everything that seems to be
relevant from the list on http://perl.apache.org/bugs/.

I'm running FreeBSD 4.8-RELEASE, Perl 5.8.0, Apache 1.3.28 and mod_perl
1.28. mod_perl was compiled as a static module, using the following command
line in the mod_perl source directory:

perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
APACHE_PREFIX=/usr/local/apache13 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

The following mod_perl tests were skipped (the rest all completed
sucessfully):

modules/cookie........skipped
        all skipped: no reason given
modules/module........skipped
        all skipped: no reason given
modules/request.......skipped
        all skipped: no reason given
modules/stage.........skipped
        all skipped: no reason given

My perl details are as follows:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=freebsd, osvers=4.8-release, archname=i386-freebsd
    uname='freebsd holly.mutatorr.net 4.8-release freebsd 4.8-release #0:
sat may 17 18:53:46 bst 2003
[EMAIL PROTECTED]:usrsrcsyscompileholly i386 '




config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.0/m
ach -Dprivlib=/usr/local/lib/perl5/5.8.0 -Dman3dir=/usr/local/lib/perl5/5.8.
0/man/man3 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.0/mach -Dsitelib=/u
sr/local/lib/perl5/site_perl/5.8.0 -Dscriptdir=/usr/local/bin -Ui_malloc -Ui
_iconv -Uinstallusrbinperl -Dcc=cc -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/p
erl5/5.8.0/BSDPAN" -Ui_gdbm -Dusemymalloc=n -Dusethreads=n'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    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.0/BSDPAN" -DHAS_FPSETMASK -DHAS_FL
OATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
    optimize='-O -pipe ',




cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.0/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 ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lc -lcrypt -lutil
    perllibs=-lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under freebsd
  Compiled at May 26 2003 00:36:13
  @INC:
    /usr/local/lib/perl5/site_perl/5.8.0/mach
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.0/BSDPAN
    /usr/local/lib/perl5/5.8.0/mach
    /usr/local/lib/perl5/5.8.0

The GDB backtrace output (from debugging httpd -X) is as follows:

(gdb) bt
#0  0x808d079 in XS_Apache_dir_config ()
#1  0x810a7f7 in Perl_pp_entersub ()
#2  0x8104b24 in Perl_runops_standard ()
#3  0x80c39fe in Perl_call_sv ()
#4  0x80c3b42 in Perl_eval_sv ()
#5  0x80846ce in perl_require_module ()
#6  0x807f1ac in perl_call_handler ()
#7  0x807ecb4 in perl_run_stacked_handlers ()
#8  0x807d7a3 in perl_handler ()
#9  0x809bb8d in ap_invoke_handler ()
#10 0x80b185c in ap_some_auth_required ()
#11 0x80b1cec in ap_internal_redirect ()
#12 0x8076052 in ap_get_server_built ()
#13 0x809bb8d in ap_invoke_handler ()
#14 0x80b185c in ap_some_auth_required ()
#15 0x80b18c6 in ap_process_request ()
#16 0x80a817f in ap_child_terminate ()
#17 0x80a8341 in ap_child_terminate ()
#18 0x80a84ba in ap_child_terminate ()
#19 0x80a8b5c in ap_child_terminate ()
#20 0x80a93bc in main ()
#21 0x8064a22 in _start ()

The relavent sections of my httpd.conf are as follows:

<VirtualHost *>
        DocumentRoot /home/stephen/im/public_html
        ServerName im.mutatorr.net

        PerlInitHandler Apache::Reload
        PerlSetVar ReloadAll On
        PerlSetVar MasonAllowGlobals $c
        PerlRequire /usr/local/apache13/conf/conf.pl

        PerlSetVar MasonDataDir /usr/local/mason/im/

        AddType text/html .mhtml
        AddType text/html .mc

        DirectoryIndex index.html index.php index.mhtml index.mc

        <LocationMatch "(\.mhtml|\.mc)$">
            SetHandler perl-script
            PerlHandler HTML::Mason::ApacheHandler
        </LocationMatch>

        <LocationMatch "(\.mx|autohandler|dhandler)$">
            SetHandler perl-script
            PerlInitHandler Apache::Constants::FORBIDDEN
        </LocationMatch>
</VirtualHost>

conf.pl contains the following:

use strict;
use warnings;

use Apache::DBI ();

1;


Thanks for wading through all of this *grins*.

Stephen Veiss





-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to