-----Original Message-----
From: Robert Jenks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 11:03 AM
To: modperl (E-mail)
Subject: Segmentation Fault: RedHat 6.[01] / Apache 1.3.12 / mod_perl 1.22 / perl 5.005_03 / IE 5I'm having a very strange problem. I'm running a very large application under apache/mod_perl (100+ modules; httpd children grow to 40+MB). The application uses Apache::DBI (DBD::Oracle) & CGI.pm, so I have it running as a handler and everything works fine.... except... :)
If the first request to httpd comes from IE5 to the web root, the child httpd process will segfault. However from any other client I've tried ( Netscape Comm. and "telnet 0 80 GET /" it works fine and doesn't segfault. Even stranger, if I point IE5 at "/perl-status?inc", and then at "/" it doesn't segfault (from that point forward it doesn't segfault; even if it hits a new child httpd).
I haven't been able to isolate the problem because I haven't been able to get apache to give me a core file. I've tried the "ulimit -c unlimited" without success. Any hints, RwhatFM, etc????
My build script is attached. (which includes building mod_ssl, but this even happened before I added mod_ssl)
Thanks in advance...
--
Robert Jenks---------httpd.conf------------
ServerType standalone
ServerRoot "/Suite/apache"
PidFile /Suite/apache/logs/httpd.pid
ScoreBoardFile /Suite/apache/logs/httpd.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 3
StartServers 3
MaxClients 3
MaxRequestsPerChild 0
ExtendedStatus on
Port 80
User nobody
Group nobody
ServerAdmin [EMAIL PROTECTED]
ServerName server.mydomain.com
DocumentRoot /Suite/AppSites/practice
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/Suite/AppSites/practice">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /Suite/apache/conf/mime.types
</IfModule>DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /Suite/apache/conf/magic
</IfModule>HostnameLookups Off
ErrorLog /Suite/apache/logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agentCustomLog /Suite/apache/logs/access_log common
CustomLog /Suite/apache/logs/referer_log referer
CustomLog /Suite/apache/logs/agent_log agentServerSignature Off
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>PerlInitHandler Apache::StatINC
PerlSetEnv ORACLE_HOME /u01/app/oracle/product/8.1.5
PerlRequire conf/startup.pl
PerlFreshRestart On
<Location />
SetHandler perl-script
PerlHandler Apache::Suite::Practice
Options +ExecCGI
</Location>
<Location /images>
SetHandler default-handler
</Location>
<Location /lib>
SetHandler default-handler
</Location>
<Location /resources>
SetHandler default-handler
</Location>
<Location /server-status>
SetHandler server-status
</Location>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
</Location>
---------httpd.conf------------<<install_httpd.sh>>
Title: Segmentation Fault: RedHat 6.[01] / Apache 1.3.12 / mod_perl 1.22 / perl 5.005_03 / IE 5
I'm not really the expert in this, but you might want
to try removing PerlFreshRestart and Apache::StatINC from your config and see if
that helps...
HTH
--Geoff
- Segmentation Fault: RedHat 6.[01] / Apache 1.3.12 / mod_pe... Robert Jenks
- Re: Segmentation Fault: RedHat 6.[01] / Apache 1.3.12... Doug MacEachern
- Geoffrey Young