Environment: RedHat Linux 7.2, Apache 1.3.27 with SSL enabled, CFMX 6.1

Symptom: Apache child pids die with Segmentation Fault (11) as seen in Apache's error_log, as shown here in this log snippet:

Sun Sep 14 17:47:56 2003] [notice] jrApache[init] JRun 4.0 (Build 63961) Apache module - Jul 18 2003 11:57:08
[Sun Sep 14 17:47:56 2003] [notice] Apache configured -- resuming normal operations
[Sun Sep 14 17:47:56 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 14 17:47:56 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Sep 14 17:48:14 2003] [notice] child pid 4149 exit signal Segmentation fault (11)
[Sun Sep 14 17:49:14 2003] [notice] caught SIGTERM, shutting down
[Sun Sep 14 17:49:14 2003] [notice] jrApache[init] JRun 4.0 (Build 63961) Apache module - Sep 14 2003 17:00:30
[Sun Sep 14 17:49:15 2003] [notice] jrApache[init] JRun 4.0 (Build 63961) Apache module - Sep 14 2003 17:00:30
[Sun Sep 14 17:49:15 2003] [notice] Apache configured -- resuming normal operations
[Sun Sep 14 17:49:15 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 14 17:49:15 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Sep 14 17:49:32 2003] [notice] child pid 4200 exit signal Segmentation fault (11)
[Sun Sep 14 17:49:32 2003] [notice] child pid 4199 exit signal Segmentation fault (11)
[Sun Sep 14 17:52:05 2003] [notice] caught SIGTERM, shutting down
[Sun Sep 14 17:52:05 2003] [notice] jrApache[init] JRun 4.0 (Build 63961) Apache module - Sep 14 2003 17:00:30
[Sun Sep 14 17:52:05 2003] [notice] jrApache[init] JRun 4.0 (Build 63961) Apache module - Sep 14 2003 17:00:30


Diagnosis: SSL-enabled Apache does not generate SSL enviroment variables by default, but the ColdFusion jrun connector module is looking for them. The connector module runs inside the Apache child process, and when the connector exits non-gracefully this Seg faults the Apache child process.


Workaround: Uncomment the following and add cfm to the RegEx containing the file extensions in httpd.conf:


view plain print about
1SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
2<Files ~ ".(cgi|shtml|cfm|phtml|php3)$">
3 SSLOptions +StdEnvVars
4</Files>


Status: This is open as a bug in JRun4.


Discussion: I've not been able to reproduce the behavior on all the Apache SSL test environments, but if reproduced then the workaround above can be used.