Oracle OHS: Program terminated with signal 11, Segmentation fault

Past week I had to investigate an issue with an OHS instance, that was crashing as soon as it was started.

Here are my findings for documentation purposes.

– Enabled coredumps to help analyze the issue:

gdb /oraclewls/Oracle/Middleware/Oracle_WT1/ohs/bin/httpd.worker core.29844
Core was generated by `/oraclewls/Oracle/Middleware/Oracle_WT1/ohs/bin/httpd.worker -DSSL’.
Program terminated with signal 11, Segmentation fault.
#0 0x00002b77103ec5ce in sighandler_setxid () from /lib64/libpthread.so.0
(gdb) thread apply all bt

Thread 2 (Thread 29844):
#0 0x00002b7712e7f237 in kill () from /lib64/libc.so.6
#1 0x0000000000464008 in sig_coredump ()
#2
#3 0x00002b7712ec1b50 in strlen () from /lib64/libc.so.6
#4 0x00002b7717304a83 in ber_strdup_x () from /usr/lib64/liblber-2.3.so.0
#5 0x00002b77171ebb63 in ldap_charray_dup () from /usr/lib64/libldap-2.3.so.0
#6 0x00002b77171e2e5a in ldap_url_dup () from /usr/lib64/libldap-2.3.so.0
#7 0x00002b77171e2edd in ldap_url_duplist () from /usr/lib64/libldap-2.3.so.0
#8 0x00002b77171cde8e in ldap_create () from /usr/lib64/libldap-2.3.so.0
#9 0x00002b77171ce0ef in ldap_initialize () from /usr/lib64/libldap-2.3.so.0
#10 0x00002b77170a52f4 in ?? () from /lib64/libnss_ldap.so.2
#11 0x00002b77170a9b69 in _nss_ldap_initgroups_dyn () from /lib64/libnss_ldap.so.2
#12 0x00002b7712edde6f in internal_getgrouplist () from /lib64/libc.so.6
#13 0x00002b7712ede064 in initgroups () from /lib64/libc.so.6
#14 0x0000000000476e71 in set_group_privs ()
#15 0x0000000000476ef7 in unixd_setup_child ()
#16 0x00000000004739c9 in child_main ()
#17 0x0000000000473f38 in make_child ()
#18 0x0000000000474553 in perform_idle_server_maintenance ()
#19 0x000000000047481f in server_main_loop ()
#20 0x0000000000474c9d in ap_mpm_run ()
#21 0x000000000042d8a5 in main ()

Thread 1 (Thread 29845):
#0 0x00002b77103ec5ce in sighandler_setxid () from /lib64/libpthread.so.0
#1
#2 0x00002b7712f0fdc1 in clone () from /lib64/libc.so.6
#3 0x00002b77103ed100 in ?? () from /lib64/libpthread.so.0
#4 0x0000000040021940 in ?? ()
#5 0x0000000000000000 in ?? ()
(gdb)

– So I fixed the issue by starting nscd daemon:
service nscd start
chkconfig nscd on

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.