[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8492) signal 11 in ldap_new_connection



Full_Name: hemant jain
Version: openldap-2.4.40-8
OS: RHEL 7.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (123.63.202.166)


Hi,

We are facing a strange core dump in ldap_new_connection function while trying
to bind a stopped Openldap server.

following is the stack trace:

#0  0x00007f9336898f53 in ldap_new_connection (ld=ld@entry=0x7f931f43cd60,
srvlist=srvlist@entry=0x7f931f48b298, use_ldsb=use_ldsb@entry=1,
connect=connect@entry=1, bind=bind@entry=0x0, m_req=m_req@entry=0,
m_res=m_res@entry=0)
    at request.c:481
#1  0x00007f933688530f in ldap_open_defconn (ld=ld@entry=0x7f931f43cd60) at
open.c:41
#2  0x00007f933689a248 in ldap_send_initial_request (ld=ld@entry=0x7f931f43cd60,
msgtype=msgtype@entry=96, dn=dn@entry=0x7f931f827718
"cn=Manager,dc=test,dc=com", ber=ber@entry=0x7f931f457150, msgid=msgid@entry=1)
at request.c:130
#3  0x00007f933688f178 in ldap_sasl_bind (ld=0x7f931f43cd60, dn=0x7f931f827718
"cn=Manager,dc=test,dc=com", mechanism=<optimized out>, cred=0x7f931f4296b0,
sctrls=0x0, cctrls=<optimized out>, msgidp=0x7f92243ed8dc) at sasl.c:148
#4  0x00007f9340f571da in ldap::Connection::Bind
(this=this@entry=0x7f931c043478, msg_id=@0x7f92243ed98c: -1) at
support/ldapconnection.cpp



I have installed corresponding debug rpm for Openldap library.
Following the source info. core dump is coming at line 481 of request.c
file.A%A
for ( srvp = srvlist; *srvp != NULL; srvp = &(*srvp)->lud_next ) // Here srvp is
NULL so *srvp dumping core.

if ( connect ) {
    LDAPURLDesc   **srvp, *srv = NULL;

    async = LDAP_BOOL_GET( &ld->ld_options, LDAP_BOOL_CONNECT_ASYNC );

    for ( srvp = srvlist; *srvp != NULL; srvp = &(*srvp)->lud_next ) {
        int       rc;

        rc = ldap_int_open_connection( ld, lc, *srvp, async );
        if ( rc != -1 ) {
            srv = *srvp;

            if ( ld->ld_urllist_proc && ( !async || rc != -2 ) ) {
                ld->ld_urllist_proc( ld, srvlist, srvp, ld->ld_urllist_params
);
            }

            break;
        }
    }                                                                           
   


Any idea how to fix it ?