crash in ldap_search_ext_s

Sameer <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <[email protected]>
Hello everyone!

Recently we observed a crash (segmentation fault) while calling
ldap_search_ext_s(), all the parameters were proper and the same piece
of code is working fine till now. And we don't know why it happened,
is it a bug in mozilla C-SDK? (I searched on mozilla's bug database,
but found none). Now this problem is not appearing, and our suspect is
that - it could be because of some intermittent connection to LDAP
server, but not able to reproduce it. If I terminate LDAP server
connection before this call, then the API return proper error code
(81).

Has anybody seen this kind of crash? Or any idea when this can happen?

GDB stack:
#0  0x00002aaaab1ef2b5 in nsldapi_iostatus_is_write_ready () from /
home/it364/Vistaar/Thirdparty/ldap/mozilla/dist/lib/libldap60.so
(gdb) whe
#0  0x00002aaaab1ef2b5 in nsldapi_iostatus_is_write_ready () from /
home/it364/Vistaar/Thirdparty/ldap/mozilla/dist/lib/libldap60.so
#1  0x00002aaaab1f6ac0 in nsldapi_result_nolock () from /home/it364/
Vistaar/Thirdparty/ldap/mozilla/dist/lib/libldap60.so
#2  0x00002aaaab1f6fab in ldap_result () from /home/it364/Vistaar/
Thirdparty/ldap/mozilla/dist/lib/libldap60.so
#3  0x00002aaaab1f9368 in nsldapi_search_s () from /home/it364/Vistaar/
Thirdparty/ldap/mozilla/dist/lib/libldap60.so
#4  0x00002aaaab1f9433 in ldap_search_ext_s () from /home/it364/
Vistaar/Thirdparty/ldap/mozilla/dist/lib/libldap60.so
#5  0x00002aaaac7bd774 in UMSDS::ldapAPI::GetListOfGroup
(this=0x2aaaaab48580, filter=0x2aaaaab489c8 "(|(objectclass=group)
(objectclass=groupOfUniqueNames))")
    at ldapAPI.cpp:821

Awaiting your comments.

Thanks,
sameer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.