You are not logged in.

#1 2011-07-04 00:21:25

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Can't load mod_perl with apache

Hello,

I was receiving a strange error the other day when restarting apache:

[root@lennon mod_perl]# sudo /etc/rc.d/httpd start
:: Starting Apache Web Server                                            [BUSY] /usr/sbin/apachectl: line 84: 18930 Segmentation fault      $HTTPD -k $ARGV
                                                                         [FAIL]

After further investigation, mod_perl seems to be causing this to fail.  Removing the following line from my httpd.conf allowed apache to start:

LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so

I deployed a fresh arch installation (pacman -Syu'd after the install) and installed apache, perl, and mod_perl, and I get the same errors when enabled mod_perl.

I even tried recompiling mod_perl from abs, but I get the same errors.

I tried the perl and mod_perl from testing as well but they failed with the same error message

My /var/error/httpd/error_log shows this helpful error:

[Sun Jul 03 19:54:42 2011] [notice] seg fault or similar nasty error detected in the parent process

Does anyone have any ideas with this one?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#2 2011-07-04 00:33:01

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Can't load mod_perl with apache


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#3 2011-07-04 13:51:06

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Can't load mod_perl with apache

Someone a few hours ealier posted this thread -- https://bbs.archlinux.org/viewtopic.php?id=122024

Offline

#4 2011-07-04 13:53:41

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Can't load mod_perl with apache

steve___ wrote:

Someone a few hours ealier posted this thread -- https://bbs.archlinux.org/viewtopic.php?id=122024

Good to know that it's not just me.  Thanks!


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#5 2011-07-10 01:10:06

shariebeth
Member
From: South Florida
Registered: 2010-04-27
Posts: 77

Re: Can't load mod_perl with apache

Still have this problem today after an update.
I am posting here rather than in the other thread because this one was more useful.

I commented out
LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so
as punkrockguy318 mentioned and apache runs.

Is there a danger in doing so?  Am I breaking anything by running it without that module?
If so, is there a better workaround until this is fixed?

I saw the bug report but I didn't see anything helpful to do until this is fixed.

apache 2.2.19-1
mod_perl 2.0.5-7
perl 5.14.1-3

[archlette@localhost ~]$ httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

Last edited by shariebeth (2011-07-10 01:17:06)

Offline

#6 2011-07-10 01:14:58

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Can't load mod_perl with apache

shariebeth wrote:

Still have this problem today after an update.
I am posting here rather than in the other thread because this one was more useful.

I commented out
LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so
as punkrockguy318 mentioned and apache runs.

Is there a danger in doing so?  Am I breaking anything by running it without that module?
If so, is there a better workaround until this is fixed?

I saw the bug report but I didn't see anything helpful to do until this is fixed.

There's no danger in doing that, but if you have any web applications that depend on mod_perl, they won't work

but apache server will start if you comment out the line

the problem seems to be upstream, it occurs even with the latest version of the source in svn


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#7 2011-07-10 01:18:22

shariebeth
Member
From: South Florida
Registered: 2010-04-27
Posts: 77

Re: Can't load mod_perl with apache

Ok, great!  Thanks for such a fast reply!
I'll keep an eye on this thread and the bug report.

Offline

Board footer

Powered by FluxBB