Issue 7599 - libldap and libclntsh crush
Summary: libldap and libclntsh crush
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-22 04:39 UTC by nhkim@crosscert.com
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nhkim@crosscert.com 2013-05-22 04:39:06 UTC
Full_Name: Kim Nam hee
Version: libldap.so.2
OS: linux
URL: 
Submission from: (NULL) (203.248.34.92)


Dear Engineering Team.
I'm developer in Koea..

I'm developed The module run on linux(x86-64)
The module uses libldap and libclntsh libraries..

I use ldap_mem_free function in my module..
but it looks like that libldap and libclntsh has that symbol either.

I expected to use ldap_mem_free in libldap. but The module use ldap_mem_free in
libclntsh...

after using that, that module is killed

/lib64/libc.so.6[0x3696a760e6]
/lib64/libc.so.6[0x3696a78c13]
/oracle/product/11g/lib/libclntsh.so.11.1(gslumfFree+0x3b)[0x7f8b6a790539]
/oracle/product/11g/lib/libclntsh.so.11.1(gslcmse_MemFree+0x34)[0x7f8b69ab2aac]
/oracle/product/11g/lib/libclntsh.so.11.1(ora_ldap_memfree+0x46)[0x7f8b69aa0134]
/oracle/product/11g/lib/libclntsh.so.11.1(ldap_memfree+0x30)[0x7f8b69aa3d04]



even I load libldap library first, it is killed in other part

../../../libraries/libldap/sasl.c:103: ldap_sasl_bind: Assertion
`((ber)->ber_opts.lbo_valid==0x2)' failed.



If I don't use libclntsh but, use only libldap, The module works fine. There
isn't error..

But, I have to use libclntsh and libldap.
How can I do solve this problem??

please help me..
Comment 1 Howard Chu 2013-05-23 14:54:01 UTC
published 7599
marked public
Comment 2 Hallvard Furuseth 2013-06-06 18:07:31 UTC
nhkim@crosscert.com writes:
> I use ldap_mem_free function in my module..
> but it looks like that libldap and libclntsh has that symbol either.
> 
> I expected to use ldap_mem_free in libldap. but The module use
> ldap_mem_free in libclntsh...

User error. OpenLDAP libldap has ldap_memfree(), not ldap_mem_free().

-- 
Hallvard

Comment 3 Hallvard Furuseth 2013-06-06 18:10:10 UTC
I wrote:
> User error. OpenLDAP libldap has ldap_memfree(), not ldap_mem_free().

Nevermind.  I should have looked at your stacktrace or whatever
it is, which also shows ldap_memfree rather than ldap_mem_free.

-- 
Hallvard

Comment 4 Howard Chu 2013-08-02 11:59:48 UTC
This is an Oracle bug, please contact Oracle for a fix. Their library should 
not be exporting symbols from the ldap_* namespace; this space has been owned 
by libldap since the 1990s. Closing this ITS.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 5 Howard Chu 2013-08-02 12:00:36 UTC
changed notes
changed state Open to Closed
Comment 6 OpenLDAP project 2014-08-01 21:04:00 UTC
not ours