[rt-users] RT4 - mod_perl problem with apache2

Carlos Ramos carragom at gmail.com
Mon Oct 31 00:25:10 EDT 2011


On Tue, May 31, 2011 at 9:00 AM, Kevin Falcone
<falcone at bestpractical.com> wrote:
> On Mon, May 30, 2011 at 12:09:11PM +0200, Robert Wysocki wrote:
>> Hi guys,
>>
>> I've googled it, some people also have this problem, but no solutions
>> were provided by anyone.
>> The problem is:
>> testrt:/opt/rt4/etc# apache2ctl restart
>> /usr/sbin/apache2ctl: line 107: 11712 Segmentation fault      $HTTPD
>> ${APACHE_ARGUMENTS} -t 2> /dev/null
>> Syntax OK
>> /usr/sbin/apache2ctl: line 107: 11715 Segmentation fault      $HTTPD
>> ${APACHE_ARGUMENTS} -t
>> Action 'restart' failed.
>> The Apache error log may have more information.
>> testrt:/opt/rt4/etc# /etc/init.d/apache2 reload
>> Syntax OK
>> /usr/sbin/apache2ctl: line 107: 11729 Segmentation fault      $HTTPD
>> ${APACHE_ARGUMENTS} -t
>> Action 'configtest' failed.
>> The Apache error log may have more information.
>>  failed!
>>
>> The way of restarting apache which doesn't cause error to be thrown is
>> just:
>> /etc/init.d/apache2 stop; /etc/init.d/apache2 start
>> but it's, well, inelegant.
>>
>> The issue is probably related to Plack.
>
> Unfortunately, it's difficult to try replicating without a
> perl/apache/mod_perl2/plack version list
>
> -kevin
>


Hello, I'm having a VERY similar problem here. Using rt-4.0.2 and
debian squeeze 6.0.3, which comes with apache 2.2.16-6+squeeze4,
mod_perl 2.0.4-7, perl 5.10.1-17squeeze2 and from what i can tell
Plack 0.9984 which i just installed from CPAN. This is my rt config in
apache:

        <Location /rt>
                Order allow,deny
                Allow from all

                SetHandler perl-script
                PerlResponseHandler Plack::Handler::Apache2
                PerlSetVar psgi_app /opt/rt4/sbin/rt-server
        </Location>

        <Perl>
                use Plack::Handler::Apache2;
                Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
        </Perl>

If I don't comment this
"Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");", I
can't do the following without getting a segmentation fault, even if
apache is not running:

root at blazar:~# export APACHE_RUN_USER=www-data
root at blazar:~# export APACHE_RUN_GROUP=www-data
root at blazar:~# export APACHE_PID_FILE=/var/run/apache2.pid
root at blazar:~# export APACHE_RUN_DIR=/var/run/apache2
root at blazar:~# export APACHE_LOCK_DIR=/var/lock/apache2
root at blazar:~# export APACHE_LOG_DIR=/var/log/apache2
root at blazar:~#
root at blazar:~#
root at blazar:~# apache2 -t
Syntax OK
Segmentation fault

That last sequence of commands is something that apache2ctl do almost
every time you run it, and at least in Debian apache2ctl is used in a
lot of places, from startup to shutdown to log rotation. RT4 works
correctly from what i can tell as long as i don't comment the preload
line, but then again apache2ctl breaks down and with it, other things
follow.

The only error i can see in my syslog every time i run 'apache -t' is
the following:

Oct 30 21:44:22 blazar kernel: [4016030.401140] apache2[17570]:
segfault at 7fa814baa640 ip 00007fa814baa640 sp 00007ffffd346fc8 error
14 in libnss_files-2.11.2.so[7fa817aaf000+b000]

As a side note, I do have a working RT4 installation in debian
squeeze, but this was installed some time ago and it was the rt-4.0.0
tarball and I guess some of the CPAN modules are older too.

Any help would be really appreciated. Thanks a lot.



More information about the rt-users mailing list