[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Core dump in ldap_unbind_ext_s
- To: openldap-technical@openldap.org
- Subject: Core dump in ldap_unbind_ext_s
- From: "sachinv1821@gmail.com" <sachinv1821@gmail.com>
- Date: Mon, 3 Oct 2011 13:09:59 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=fYORNcOQSYDs8R32xIAI6fh6752vjM/tEei5FE510TU=; b=i4SY3hqIwFxS4q+hwK7R2fhJDRfoPARBcOGB+oTXlCEl3zfiUMvUNRDMdVFshKryuY wM3C9xMUjoxlPbdKjOQy0Vj8uZcVXGIkyMPo/0qmQ7tDme7V3CP9Z6pjY3O4miRRA6cc tZPM2fifspu5Se71pejFnKygQTx3phXBAB2Zk=
I have a wrapper manager code on top of openldap stack(ver.2.4.11), there manager code is responsible for creating the ldap connecting to the LDAP servers by using the standard ldap API().
u32_t rc=ldap_sasl_bind(ld, loginDN, LDAP_SASL_SIMPLE, &cred, NULL, NULL, &msgid); //asynchronous bind
if (rc != LDAP_SUCCESS )
{
ldapErrorLog(":connect: LDAP Bind send Failed:%s \n ", ldap_err2string(rc));
ldap_unbind_ext_s(ld, NULL,NULL);
m_connInitialized = false;
return(LDAPRC_FAIL);
}
return LDAPRC_SUCCESS;
by using this wrapper code I am creating many ldap links ,most of time this is working fine some times when the ldap_sasl_bind() returns -1 (can't contact server) or unknown error the code is crashing in ldap_unbind_ext_s. can anyone help out.
the log and gdb trace are pasted below
(gdb) bt
#0 ldap_free_request (ld=0x16fd370, lr=0x1010001020001) at request.c:866
#1 0x00000000005372e8 in ldap_ld_free (ld=0x16fd370, close=1, sctrls=<value optimized out>, cctrls=<value optimized out>) at unbind.c:88
#2 0x000000000044b020 in LdapConnection::connect (this=0x157bcd0, loginDN=0x157b3ec "cn=TASuser", pwd=<value optimized out>)
logs..
<18:06:56.414 **ERR** LDAP 22603:22470 3:0><LdapConnection.cpp(171)>:connect: LDAP Bind send Failed:Can't contact LDAP server
<18:06:56.414 *WRN* MX 22603:22470 3:0>receive SEGV signal
<18:06:56.414 *WRN* MX 22603:22470 3:0>Message dump is disabl
Regards,
Sachin Vastrad