LDAP issue in Plugin

Jon Snyder snyder.jon at gmail.com
Wed Sep 23 22:45:34 UTC 2009


That's exactly what I thought.  I went over it again at your suggestion and
simplified my LDAP method down to:

LDAP *ld;
char *ldap_host = LDAP_HOST;

if ((ld = ldap_init(ldap_host, LDAP_PORT)) == NULL ) {
    NSLog( @"DEBUG: getPhoneNumberviaLDAP: ldap_init failed" );
    return NO;
}

ldap_unbind_s(ld);
return NO;

ldap_unbind_s cleans up the state and allocated pointers that ldap_init
creates.  I still have the same symptoms even with this trivially simple
method.

Is it possible that some framework Adium uses is built against a different
version of OpenLDAP?  I'm just not sure what could be causing this, and like
you, I'm not sure why LDAP is even involved in the Jabber SSL process.

Thanks again,

Jon

On Wed, Sep 23, 2009 at 1:41 PM, Colin Barrett
<colin at springsandstruts.com>wrote:

> Disclaimer: I know nothing about LDAP.
>
> It looks like somehow, SSL is touching LDAP. I'm not 100% sure why it would
> need to do that, but LDAP is then trying to grab a lock and it's blowing up.
>
> Seems to me it's likely that you're not cleaning up your LDAP state
> properly. Double check that?
>
> -Colin
>
>
> On Sep 23, 2009, at 10:31 AM, Jon Snyder wrote:
>
>  Additionally, I have discovered that I don't have this issue if the
>> account that connects is MSN or AIM, but I do if it's Jabber/GTalk.
>>
>> On Mon, Sep 21, 2009 at 4:29 PM, Jon Snyder <snyder.jon at gmail.com> wrote:
>> Crashlog attached.
>>
>> I'll be upgrading to Snow Leopard soon and will turn on static analysis
>> when I can run Xcode 3.2.
>>
>> Thanks,
>>
>> Jon
>>
>>
>> On Mon, Sep 21, 2009 at 3:56 PM, Peter Hosey <boredzo at adium.im> wrote:
>> On Sep 21, 2009, at 13:44:40, Jon Snyder wrote:
>> Despite thoroughly checking to make sure I'm cleaning up properly, after
>> I've used the LDAP API, the next time an account connects in Adium, Adium
>> crashes.
>>
>> Please attach a crash log.
>>
>> Also, be sure to turn on the “Run Static Analyzer” option for your plug-in
>> target, then clean and build. If it finds any bugs, fix them, as one or more
>> of them may be the cause of your crash.
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090923/c9c6b368/attachment-0002.html>


More information about the devel mailing list