[csw-users] CSW OpenLDAP Seg Faults

Roy McMorran mcmorran at mdibl.org
Fri Jan 6 16:47:45 CET 2006


The CSW OpenLDAP package is consistently crashing on startup with a 
segmentation fault.

root at testbed# /etc/init.d/cswopenldap start
Starting openldap-slapd:                                    Segmentation 
Fault - core dumped
[FAILED]

This is on Solaris 9 with the latest patch cluster.

Here's an abbreviated output from truss and a gdb backtrace.  I can 
provide the complete truss output and/or other info as needed.

Any idea what's going on here?
Thanks.

root at testbed# truss -aef /opt/csw/libexec/slapd -4 -f 
/opt/csw/etc/openldap/slapd.conf -g daemon -h "ldap:/// ldaps:///" -l 
LOCAL4 -u ldap
<snip>
5378:    stat("/var/ldap", 0xFFBFCC50)            = 0
5378:    stat("/var/ldap/", 0xFFBFCBE0)            = 0
5378:    stat("/var/ldap/key3.db", 0xFFBFCBE0)        = 0
5378:    open("/var/ldap/key3.db", O_RDONLY)        = 11
5378:    fcntl(11, F_SETFD, 0x00000001)            = 0
5378:    read(11, "\00615 a\0\0\002\0\010E1".., 260)    = 260
5378:    brk(0x0012C8E0)                    = 0
5378:    brk(0x0012E8E0)                    = 0
5378:    fstat(11, 0xFFBFCAB8)                = 0
5378:    stat("/var/ldap/key3.db", 0xFFBFCA30)        = 0
5378:    lseek(11, 8192, SEEK_SET)            = 8192
5378:    read(11, "\0041FF91FF81FED1FDD1FCF".., 8192)    = 8192
5378:    stat("/var/ldap", 0xFFBFCC50)            = 0
5378:    stat("/var/ldap/secmod.db", 0xFFBFCB20)        = 0
5378:    open("/var/ldap/secmod.db", O_RDONLY)        = 12
5378:    fcntl(12, F_SETFD, 0x00000001)            = 0
5378:    read(12, "\00615 a\0\0\002\0\010E1".., 260)    = 260
5378:    brk(0x0012E8E0)                    = 0
5378:    brk(0x001308E0)                    = 0
5378:    brk(0x001308E0)                    = 0
5378:    brk(0x001328E0)                    = 0
5378:    fstat(12, 0xFFBFCAC0)                = 0
5378:    stat("/var/ldap/secmod.db", 0xFFBFCA38)        = 0
5378:    lseek(12, 8192, SEEK_SET)            = 8192
5378:    read(12, "\0021FDF1F881F ~1F88\0\0".., 8192)    = 8192
5378:    brk(0x001328E0)                    = 0
5378:    brk(0x001348E0)                    = 0
5378:    fstat(12, 0xFFBFCAC0)                = 0
5378:    stat("/var/ldap/secmod.db", 0xFFBFCA38)        = 0
5378:    lseek(12, 16384, SEEK_SET)            = 16384
5378:    read(12, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)    = 8192
5378:    close(12)                    = 0
5378:    stat("/var/ldap/roots.dll", 0xFFBFC560)        Err#2 ENOENT
5378:    stat("/var/ldap/libroots.so", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libroots.sl", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/Root Certs", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/roots.dll", 0xFFBFC560)        Err#2 ENOENT
5378:    stat("/var/ldap/libroots.so", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libroots.sl", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/Root Certs", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/nssckbi.dll", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libnssckbi.so", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libnssckbi.sl", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/NSS Builtin Root Certs", 0xFFBFC560) Err#2 ENOENT
5378:    stat("/var/ldap/mozckbi.dll", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libmozckbi.so", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libmozckbi.sl", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/Mozilla Builtin Root Certs", 0xFFBFC560) Err#2 
ENOENT
5378:    stat("/var/ldap/netckbi.dll", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libnetckbi.so", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/libnetckbi.sl", 0xFFBFC560)    Err#2 ENOENT
5378:    stat("/var/ldap/Netscape Builtin Root Certs", 0xFFBFC560) Err#2 
ENOENT
5378:    brk(0x001348E0)                    = 0
5378:    brk(0x0013A8E0)                    = 0
5378:        Incurred fault #6, FLTBOUNDS  %pc = 0x00040004
5378:          siginfo: SIGSEGV SEGV_MAPERR addr=0x00000288
5378:        Received signal #11, SIGSEGV [default]
5378:          siginfo: SIGSEGV SEGV_MAPERR addr=0x00000288


root at testbed# gdb /opt/csw/libexec/slapd
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...(no debugging 
symbols found)...
(gdb) run -4 -f /opt/csw/etc/openldap/slapd.conf -g daemon -h "ldap:/// 
ldaps:///" -l LOCAL4 -u ldap
Starting program: /opt/csw/libexec/slapd -4 -f 
/opt/csw/etc/openldap/slapd.conf -g daemon -h "ldap:/// ldaps:///" -l 
LOCAL4 -u ldap
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x00040004 in slap_req2res ()
(gdb) bt
#0  0x00040004 in slap_req2res ()
#1  0xfe8b3348 in ldapssl_install_routines () from /usr/lib/libldap.so.5
#2  0xfe8b2d5c in ldapssl_init () from /usr/lib/libldap.so.5
#3  0xfe9b26cc in openConnection () from /usr/lib/libsldap.so.1
#4  0xfe9b1bd0 in makeConnection () from /usr/lib/libsldap.so.1
#5  0xfe9b3824 in __s_api_getConnection () from /usr/lib/libsldap.so.1
#6  0xfe9a9858 in get_current_session () from /usr/lib/libsldap.so.1
#7  0xfe9aa660 in search_state_machine () from /usr/lib/libsldap.so.1
#8  0xfe9ab214 in __ns_ldap_list () from /usr/lib/libsldap.so.1
#9  0xfe9ead10 in _nss_ldap_nocb_lookup () from /usr/lib/nss_ldap.so.1
#10 0xfe9e4868 in getbymember () from /usr/lib/nss_ldap.so.1
#11 0xfeace844 in nss_search () from /usr/lib/libc.so.1
#12 0xfeb18c60 in _getgroupsbymember () from /usr/lib/libc.so.1
#13 0xfeac3224 in initgroups () from /usr/lib/libc.so.1
#14 0x0005df84 in slap_init_user ()
#15 0x0001df4c in main ()

-- 

Roy McMorran
Systems Administrator
MDI Biological Laboratory
mcmorran at mdibl.org




More information about the users mailing list