SSL Enab HTT Serv on Linu Intermitte Core Dum Immedia Aft OPMN Start_744393.1

rongshiyuan發表於2014-07-13

SSL Enabled HTTP Server on Linux Intermittently Core Dumps Immediately After OPMN Startup (Doc ID 744393.1)


In this Document
  Symptoms
  Changes
  Cause
  Solution
  References


Applies to:

Oracle Application Server 10g Enterprise Edition - Version: 10.1.2.0.2 to 10.1.2.2.0
Oracle HTTP Server - Version: 10.1.2.0.2 to 10.1.2.2
Generic Linux
Checked for relevance on 12-May-2009

Symptoms

Intermittently Oracle HTTP Server cannot be stopped and started using OPMN. For example:

$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
and/or
$ORACLE_HOME/opmn/bin/opmnctl restartproc ias-component=HTTP_Server

just hangs. There are no errors. The OPMN HTTP_Server~1 log file just contains a line

08/09/26 07:25:50 Start process
/oracle/app/oracleas/Apache/Apache/bin/apachectl startssl: execing httpd



Further investigation, however, will reveal Oracle HTTP Server is throwing a core dump / segmentation fault immediately after startup. A stack trace from the 'core.pid' file shows the following or something very similar.


Loaded symbols for /lib64/libnss_files.so.2
#0 0x000000008002f726 in dms_get_vhost_sensors ()
(gdb) where
#0 0x000000008002f726 in dms_get_vhost_sensors ()
#1 0x000000008002f7c8 in dms_get_vhost_type ()
#2 0x000000008002f9a0 in dms_set_vhost_type ()
#3 0x000000008002fbaa in dms_set_vhost_types ()
#4 0x0000000080021d9e in dms_init ()
#5 0x00000000800261dc in main ()
(gdb) quit


The Oracle HTTP Server may start up fine if using:

$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server
$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server

(assuming the problem only reproduces when using "restartproc" opmn syntax)

or if using the deprecated command

$ORACLE_HOME/Apache/Apache/bin/apachectl startssl

Changes

Oracle HTTP Server is SSL enabled. The problem does not reproduce if HTTP Server is started up in non-SSL mode. In some cases a contributing factor is the existence of a large number of Virtual Hosts in the $ORACLE_HOME/Apache/Apache/conf/ssl.conf

Cause

The problem is caused by a bug in the Oracle HTTP Server MOD_DMS module code - a bug which is
specific to Linux

Bug:5871782 : OHS CRASHES WHEN RESTARTING SEVERAL TIMES WITH MANY VIRTUALHOST DIRECTIVE

(Although the bug abstract talks about the Oracle HTTP Server crashing when several virtualhosts have been added to the ssl.conf the problem may occur in an environment where this is not the case.)

Solution

The bug is fixed in OracleAS 10g Rel 2 patchset 3 (10.1.2.3)

There is also an interim patch available which can be applied on top of 10.1.2.0.2 Patch:5871782

Once the patch or patchset is applied the issue should no longer reproduce.

References

BUG:5871782 - OHS CRASHES WHEN RESTARTING SEVERAL TIMES WITH MANY VIRTUALHOST DIRECTIVE
NOTE:735023.1 - OPMN Fails to Start Oracle HTTP Server, Start Up Using 'apachectl' Works Fine



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1217920/,如需轉載,請註明出處,否則將追究法律責任。

相關文章