Apache segfaults with 4.2

I have just upgraded rt from 4.0.18 to 4.2.1 on FreeBSD 9.2. Everything
looks ok except for the fact that apache dumps core twice every time I
restart it. It does not happen when I comment out rt-related stuff from
httpd.conf

Any help would be appretiated.

Marko Cupać

I have just upgraded rt from 4.0.18 to 4.2.1 on FreeBSD 9.2. Everything
looks ok except for the fact that apache dumps core twice every time I
restart it. It does not happen when I comment out rt-related stuff from
httpd.conf

Any help would be appretiated.

You’ve not provided anywhere near enough information to even try
guessing. You didn’t say how you’re running RT under Apache. You
didn’t say anything about what other options you have turned on (ssl,
etc).

-kevin

You didn’t say how you’re running RT under Apache.
I run rt42-4.2.1_2 on apache22-2.2.26 with ap22-mod_perl2-2.0.8,3.
I run it on virtual ssl-enabled host under /tiketing subdirectory.
Document root serves wordpress, there are also additional
subdirectories (phpmyadmin and racktables). There is no segfault
on restart when I comment out rt-related sections. There were no
segfaults before upgrade to 4.2.

Here’s relevant apache config:

ServerName server.example.com Redirect permanent / https://server.example.com/

ServerName server.example.com
DocumentRoot /usr/local/www/wordpress

SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM
SSLCertificateFile “/etc/ssl/certs/server.crt”
SSLCertificateKeyFile “/etc/ssl/certs/server.key”

<Directory “/usr/local/www/wordpress”>
Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all

Alias /dbadmin /usr/local/www/phpMyAdmin

<Directory “/usr/local/www/phpMyAdmin”>
Options none
AllowOverride Limit
Order Allow,Deny
Allow from all

Alias /tiketing /usr/local/share/rt42/html

<Directory “/usr/local/share/rt42/html”>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

<Location “/tiketing”>
AddDefaultCharset UTF-8
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /usr/local/sbin/rt-server

use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/usr/local/sbin/rt-server");

Alias /racktables /usr/local/www/racktables/wwwroot

<Directory “/usr/local/www/racktables/wwwroot”>
Options Indexes FollowSymlinks MultiViews
AllowOverride Limit
Order Allow,Deny
Allow from all

Marko Cupać

Don’t reply to me directly, please obey the Reply-To that I set.

on restart when I comment out rt-related sections. There were no
segfaults before upgrade to 4.2.

Try commenting out the SSL settings and see if Apache will start up
with RT but without SSL.

Alternatively, this is almost certainly some sort of shared library
conflict and you can work around it by running RT with fastcgi instead
of mod_perl.

Please test the SSL thing before switching to fastcgi though.

-kevin

Hi Kevin,
sorry for my late reply, I finally found the time to troubleshoot this.

Try commenting out the SSL settings and see if Apache will start up
with RT but without SSL.
Unfortunately I do not have the luxury of doing so. This server holds a
bunch of Active Directory integrated web services, I wouldn’t want to
have passwords transported over plain http.

Alternatively, this is almost certainly some sort of shared library
conflict and you can work around it by running RT with fastcgi instead
of mod_perl.
I switched to fastcgi, and I do not have any more segfaults in apache.

If someone is interested in investigation of possible shared library
conflict I would be glad to follow instruction.

Regards,
Marko Cupać