[rt-devel] Segmentation Fault -- Help?

Benjamin D. Hudgens benjamin at winternals.com
Thu Sep 4 12:24:46 EDT 2003


This will be long; but so has the process in which I've gone through to
resort to a post:

My Environment:

I've tried:
Freebsd 4.8
Perl 5.00305 (with FBSD distribution)
Perl 5.6.1
Mysql 11.18 Dist 3.23.57
The Apache and Mod_perl ports with FreeBSD
All dependencies installed from Perl -MCPAN -eshell 
All dependencies installed from direct download/source

And NOW I'm running:
Freebsd 4.8
Perl 8.0 (perl.org)
Mysql 11.18 Dist 3.23.57 (from ports)
Apache 1.3.28 Compiled from source (apache.org)
Mod_perl 1.28 Compiled from source (perl.apache.org)
Dependancies installed via FixDeps (no errors)

My Problem:
When everything is finally installed correctly; apache core dumps when
loading webmux.pl.  Running a strace gives the impression it occurs
right after reading in and closing Mason::ApacheHandler, dunno?

I also ran a kernel trace, but so far, it only looks like tons of wasted
sifting.  =)

I've spent quite a bit of time working to get all the dependencies to
compile correctly from CPAN, etc.  After finally resorting to raw source
and compiling from source downloaded directly (instead of using ports),
I was able to get all the dependencies to compile correctly with no
errors.  I thought using all the newest-of-the-new, I was finally going
to see success; but no... I'm still core dumping.

I've been running RT2.0 for many moons under linux with no problem.  I'm
currently running it now, no problem.  At this point, I'm completely
baffled why a perl application in apache would have any problems on
FreeBSD over Linux, but that's what I'm seeing.

I've read through previous posts and someone had this problem recently;
it was suggested they recompile mod_perl and apache and that fixed the
problem for them.  I have re-compiled many many times with no luck.

Here's a bunch of information you guys will probably ask for:

---------------------------------------------------------------------


bash-2.05b# `which httpd` -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_perl.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
bash-2.05b#

bash-2.05b# `which httpd` -v
Server version: Apache/1.3.28 (Unix)
Server built:   Sep  3 2003 13:56:27
bash-2.05b#

bash-2.05b# pwd
/usr/src/rt-2-0-15
bash-2.05b# make testdeps
/usr/bin/perl ./tools/testdeps -warn mysql
Checking for Digest::MD5...found
Checking for Storable...found
Checking for DBI 1.18 ...found
Checking for DBIx::DataSource 0.02 ...found
Checking for DBIx::SearchBuilder 0.48 ...found
Checking for HTML::Entities...found
Checking for MLDBM...found
Checking for Net::Domain...found
Checking for Net::SMTP...found
Checking for Params::Validate 0.02 ...found
Checking for HTML::Mason 1.02 ...found
Checking for CGI::Cookie 1.20 ...found
Checking for Apache::Cookie...found
Checking for Apache::Session 1.53 ...found
Checking for Date::Parse...found
Checking for Date::Format...found
Checking for MIME::Entity 5.108 ...found
Checking for Mail::Mailer 1.20 ...found
Checking for Getopt::Long 2.24 ...found
Checking for Tie::IxHash...found
Checking for Text::Wrapper...found
Checking for Text::Template...found
Checking for File::Spec 0.8 ...found
Checking for Errno...found
Checking for FreezeThaw...found
Checking for File::Temp...found
Checking for Log::Dispatch 1.6 ...found
Checking for DBD::mysql 2.0416 ...found

Important part of apache.conf:

<VirtualHost *>
    ServerName tickets2.austin.winternals.com
    DocumentRoot /usr/rt2/WebRT/html
    ServerAlias tickets

    PerlModule Apache::DBI
#    PerlFreshRestart On
    PerlRequire /usr/rt2/bin/webmux.pl

    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</VirtualHost>


bash-2.05b# strace -f httpd

[...A HUGE SNIP...]

stat("/usr/local/lib/perl5/5.8.0/i386-freebsd/HTML/Mason/ApacheHandler.p
mc", 0xbfbff710) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/perl5/5.8.0/i386-freebsd/HTML/Mason/ApacheHandler.p
m", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/perl5/5.8.0/HTML/Mason/ApacheHandler.pmc",
0xbfbff710) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/perl5/5.8.0/HTML/Mason/ApacheHandler.pm", O_RDONLY)
= -1 ENOENT (No such file or directory)
stat("/usr/local/lib/perl5/site_perl/5.8.0/i386-freebsd/HTML/Mason/Apach
eHandler.pmc", 0xbfbff710) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/perl5/site_perl/5.8.0/i386-freebsd/HTML/Mason/Apach
eHandler.pm", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pmc"
, 0xbfbff710) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm",
O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=31889, ...}) = 0
read(3, "# Copyright (c) 1998-2003 by Jon"..., 16384) = 16384
read(3, "bals} = [\'$r\'];\n\t}\n    }\n\n    my"..., 16384) = 15505
close(3)                                = 0
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
bash-2.05b#



More information about the Rt-devel mailing list