Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7543391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:24:58+00:00 2026-05-30T08:24:58+00:00

My mod_perl appears to cause a segmentation fault in my Apache. ‘httpd -X’ simply

  • 0

My mod_perl appears to cause a segmentation fault in my Apache. ‘httpd -X’ simply gives ‘Segmentation Fault’ and my server does not start.

I am using Apache 2.2.22, mod_perl 2.0.5, CentOS 5.7 x86_64. I built mod_perl and Apache together from source with the following command:

perl5.12.4 Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=/usr/local/src/httpd-2.2.22 MP_AP_CONFIGURE=”–with-mpm=prefork –enable-rewrite”

What I have tried so far:

  1. Point httpd.conf to my Catalyst application. Result: Apache dies with ‘Segmentation fault’.
  2. Point httpd.conf to a simple application created with catalyst.pl. Apache dies with ‘Segmentation fault’.
  3. Point httpd.conf to a static site. Result: Apache starts fine and serves the website.

I tried the following:

gdb -c /usr/local/apache2/bin/httpd

Program received signal SIGSEGV, Segmentation fault.

0x00002aaab0db0270 in ?? ()

(gdb) bt

#0 0x00002aaab0db0270 in ?? ()

#1 0x00000000004c9d24 in Perl_newUNOP ()

#2 0x00000000004fb6a6 in Perl_yyparse ()

#3 0x0000000000557c57 in S_doeval ()

#4 0x0000000000559546 in Perl_pp_require ()

#5 0x0000000000528bae in Perl_runops_standard ()

#6 0x00000000004d5d2f in Perl_eval_sv ()

#7 0x0000000000478425 in modperl_require_module ()

#8 0x0000000000472283 in modperl_boot ()

#9 0x00000000005529cc in Perl_leave_scope ()

#10 0x00000000004d87eb in S_parse_body ()

#11 0x00000000004d927c in perl_parse ()

#12 0x0000000000471d2a in modperl_startup ()

#13 0x0000000000471cbc in modperl_startup ()

#14 0x000000000047202e in modperl_init ()

#15 0x000000000047215f in modperl_hook_init ()

#16 0x00000000004737bb in modperl_cmd_perldo ()

#17 0x000000000046432b in invoke_cmd (cmd=0x5b9880, parms=0x7fffffffe770,
mconfig=0x844728, args=0x89b7d8 “use lib qw( /usr/local/apache2/virtualhosts/api.nwwi.nl
/httpdocs/lib/ );\n”) at config.c:757

#18 0x0000000000465865 in ap_walk_config_sub (current=0x89b828, parms=0x7fffffffe770, section_vector=0x830c18) at config.c:1163

#19 0x0000000000465914 in ap_walk_config (current=0x89b828, parms=0x7fffffffe770, section_vector=0x830c18) at config.c:1196

#20 0x0000000000466cb9 in ap_process_config_tree (s=0x82de10, conftree=0x86fcb0, p=0x822138, ptemp=0x82a178) at config.c:1765

#21 0x0000000000449512 in main (argc=2, argv=0x7fffffffe9e8) at main.c:723

I have no idea how to read and interpret this. Can somebody help and point me in a direction to further troubleshoot this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:24:59+00:00Added an answer on May 30, 2026 at 8:24 am

    I received the following response from Dave Hodgkinson on the mod_perl mailing list:

    #17 0x000000000046432b in invoke_cmd (cmd=0x5b9880,

    parms=0x7fffffffe770, mconfig=0x844728, args=0x89b7d8 "use lib qw(
    

    /usr/local/apache2/virtualhosts/api.nwwi.nl /httpdocs/lib/ );\n”) at

    config.c:757
    

    This appears to be what it’s trying to do. Take that directive
    out and see what happens?

    After some experimentation I changed part of the Apache configuration from

    PerlSwitches -I/srv/www/example.com/application/lib/
    
    <Perl>
        use lib qw( /srv/www/example.com/application/lib/ );
    </Perl>
    
    PerlModule application
    

    to

    <Perl>
        use lib qw( /srv/www/example.com/application/lib/ );
    </Perl>
    

    and this fixed my issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Server version: Apache/1.3.34 (Debian) mod_perl - 1.29 By refering to STDIN,
mod_perl/apache doesn't seem able to follow symlinks. In httpd.conf I have: Options FollowSymLinks <VirtualHost
I have a mod_perl-enable Apache running native (handlers, not Apache::Registry or similar) mod_perl code.
My company develop web apps using combination of mod_perl, axkit and apache. We have
I am trying to build Apache 1.3.41 with mod_perl 1.31 for deployment to a
Occasionally mod_perl apache process is marked defunct in top utility, that is becomes a
I'm using Apache 2.2x. Most of the content is generated via mod_perl. So, it's
I am using mod_perl 2, mason, and apache 2.2 on Ubuntu 10.10 (x86) (standard
This question is about HTTPD (Apache) 2.? on centOS and modperl 1.7+ When I
We've developed an open web API using Apache and mod_perl, where you can pass

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.