My Oracle Support Banner

Oracle 11g/12c RDBMS Connection To LDAP Over SSL Using Openssl-created Ewallet Fails " glibc detected *** ./ldapbind: free(): invalid pointer" (Doc ID 2346111.1)

Last updated on AUGUST 28, 2019

Applies to:

Oracle Internet Directory - Version 11.1.1 and later
Information in this document applies to any platform.

Symptoms

ewallet.p12 file created on 11g Oracle Express DB env (OWM not available on Oracle EX 11g)
Wallet contains Trusted Certificate to Backend LDAP

Example: openssl pkcs12 -export -in oidTrustedcertificate -out ewallet.p12 -nokeys

(supply a password - example welcome -- this does not conform to Oracle Wallet Manager's password requirements of 8 alpha-numeric characters)

Wallet works in Oracle Express DB env.

Copy Wallet file (ewallet.p12) to a NON-EX database or 12c database.

Testing ldapbind results with the following

 ./ldapbind -h <OID_HOST> -p <OID_PORT> -D cn=orcladmin -w <PASSWORD1> -U 2 -W file:/refresh/home/app/oracle/product/12.1.0/dbhome_1/wallet2 -P <PASSWORD2>
*** glibc detected *** ./ldapbind: free(): invalid pointer: 0x00007fff33a827c0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x34fba76166]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(nzumfree+0x71)[0x7f370539ce01]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(+0x76db4)[0x7f37051fcdb4]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(+0x6df62)[0x7f37051f3f62]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(+0x6d933)[0x7f37051f3933]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(+0x6d5ba)[0x7f37051f35ba]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(nzhewencwlttoWallet+0x49)[0x7f37051f3499]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(nzhewRetrieveencwltBlob+0x138)[0x7f37051f4648]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(nztwOpenWallet+0x22f)[0x7f37051ef35f]
/refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so(nzos_OpenWallet+0x39)[0x7f37051fefd9]
./ldapbind(gslcssl_LdapInitSSL+0x326)[0x4390e6]
./ldapbind(ora_ldap_init_SSL+0xe0)[0x420440]
./ldapbind(ldap_init_SSL+0x60)[0x41b190]
./ldapbind[0x417e62]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x34fba1ed1d]
./ldapbind[0x4110e9]
======= Memory map: ========
00400000-004a8000 r-xp 00000000 08:02 1712243 /refresh/home/app/oracle/product/12.1.0/dbhome_1/bin/ldapbind
006a7000-006aa000 rw-p 000a7000 08:02 1712243 /refresh/home/app/oracle/product/12.1.0/dbhome_1/bin/ldapbind
01711000-017d8000 rw-p 00000000 00:00 0 [heap]
34fb200000-34fb220000 r-xp 00000000 08:05 395684 /lib64/ld-2.12.so
34fb41f000-34fb420000 r--p 0001f000 08:05 395684 /lib64/ld-2.12.so
34fb420000-34fb421000 rw-p 00020000 08:05 395684 /lib64/ld-2.12.so
34fb421000-34fb422000 rw-p 00000000 00:00 0
34fb600000-34fb683000 r-xp 00000000 08:05 405670 /lib64/libm-2.12.so
34fb683000-34fb882000 ---p 00083000 08:05 405670 /lib64/libm-2.12.so
34fb882000-34fb883000 r--p 00082000 08:05 405670 /lib64/libm-2.12.so
34fb883000-34fb884000 rw-p 00083000 08:05 405670 /lib64/libm-2.12.so
34fba00000-34fbb8b000 r-xp 00000000 08:05 395685 /lib64/libc-2.12.so
34fbb8b000-34fbd8a000 ---p 0018b000 08:05 395685 /lib64/libc-2.12.so
34fbd8a000-34fbd8e000 r--p 0018a000 08:05 395685 /lib64/libc-2.12.so
34fbd8e000-34fbd8f000 rw-p 0018e000 08:05 395685 /lib64/libc-2.12.so
34fbd8f000-34fbd94000 rw-p 00000000 00:00 0
34fbe00000-34fbe17000 r-xp 00000000 08:05 395686 /lib64/libpthread-2.12.so
34fbe17000-34fc017000 ---p 00017000 08:05 395686 /lib64/libpthread-2.12.so
34fc017000-34fc018000 r--p 00017000 08:05 395686 /lib64/libpthread-2.12.so
34fc018000-34fc019000 rw-p 00018000 08:05 395686 /lib64/libpthread-2.12.so
34fc019000-34fc01d000 rw-p 00000000 00:00 0
34fc200000-34fc202000 r-xp 00000000 08:05 395688 /lib64/libdl-2.12.so
34fc202000-34fc402000 ---p 00002000 08:05 395688 /lib64/libdl-2.12.so
34fc402000-34fc403000 r--p 00002000 08:05 395688 /lib64/libdl-2.12.so
34fc403000-34fc404000 rw-p 00003000 08:05 395688 /lib64/libdl-2.12.so
34fca00000-34fca07000 r-xp 00000000 08:05 395687 /lib64/librt-2.12.so
34fca07000-34fcc06000 ---p 00007000 08:05 395687 /lib64/librt-2.12.so
34fcc06000-34fcc07000 r--p 00006000 08:05 395687 /lib64/librt-2.12.so
34fcc07000-34fcc08000 rw-p 00007000 08:05 395687 /lib64/librt-2.12.so
34fd600000-34fd616000 r-xp 00000000 08:05 395693 /lib64/libresolv-2.12.so
34fd616000-34fd816000 ---p 00016000 08:05 395693 /lib64/libresolv-2.12.so
34fd816000-34fd817000 r--p 00016000 08:05 395693 /lib64/libresolv-2.12.so
34fd817000-34fd818000 rw-p 00017000 08:05 395693 /lib64/libresolv-2.12.so
34fd818000-34fd81a000 rw-p 00000000 00:00 0
3501600000-3501616000 r-xp 00000000 08:05 405681 /lib64/libgcc_s-4.4.7-20120601.so.1
3501616000-3501815000 ---p 00016000 08:05 405681 /lib64/libgcc_s-4.4.7-20120601.so.1
3501815000-3501816000 rw-p 00015000 08:05 405681 /lib64/libgcc_s-4.4.7-20120601.so.1
350c200000-350c216000 r-xp 00000000 08:05 393286 /lib64/libnsl-2.12.so
350c216000-350c415000 ---p 00016000 08:05 393286 /lib64/libnsl-2.12.so
350c415000-350c416000 r--p 00015000 08:05 393286 /lib64/libnsl-2.12.so
350c416000-350c417000 rw-p 00016000 08:05 393286 /lib64/libnsl-2.12.so
350c417000-350c419000 rw-p 00000000 00:00 0
7f37048a2000-7f37048a7000 r-xp 00000000 08:05 393260 /lib64/libnss_dns-2.12.so
7f37048a7000-7f3704aa6000 ---p 00005000 08:05 393260 /lib64/libnss_dns-2.12.so
7f3704aa6000-7f3704aa7000 r--p 00004000 08:05 393260 /lib64/libnss_dns-2.12.so
7f3704aa7000-7f3704aa8000 rw-p 00005000 08:05 393260 /lib64/libnss_dns-2.12.so
7f3704aa8000-7f3704ab4000 r-xp 00000000 08:05 393262 /lib64/libnss_files-2.12.so
7f3704ab4000-7f3704cb4000 ---p 0000c000 08:05 393262 /lib64/libnss_files-2.12.so
7f3704cb4000-7f3704cb5000 r--p 0000c000 08:05 393262 /lib64/libnss_files-2.12.so
7f3704cb5000-7f3704cb6000 rw-p 0000d000 08:05 393262 /lib64/libnss_files-2.12.so
7f3704cb6000-7f3704d27000 rw-p 00000000 00:00 0
7f3704d27000-7f3704d28000 r-xp 00000000 08:05 400230 /lib64/libaio.so.1.0.1
7f3704d28000-7f3704f27000 ---p 00001000 08:05 400230 /lib64/libaio.so.1.0.1
7f3704f27000-7f3704f28000 rw-p 00000000 08:05 400230 /lib64/libaio.so.1.0.1
7f3704f28000-7f3704f6c000 r-xp 00000000 08:02 1712132 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libons.so
7f3704f6c000-7f370516b000 ---p 00044000 08:02 1712132 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libons.so
7f370516b000-7f370516d000 rw-p 00043000 08:02 1712132 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libons.so
7f370516d000-7f370516f000 rw-p 00000000 00:00 0
7f3705185000-7f3705186000 rw-p 00000000 00:00 0
7f3705186000-7f3705646000 r-xp 00000000 08:02 1712249 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so
7f3705646000-7f3705846000 ---p 004c0000 08:02 1712249 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so
7f3705846000-7f37058a9000 rw-p 004c0000 08:02 1712249 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libnnz12.so
7f37058a9000-7f37058ab000 rw-p 00000000 00:00 0
7f37058ab000-7f3705a21000 r-xp 00000000 08:02 1707084 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libipc1.so
7f3705a21000-7f3705c21000 ---p 00176000 08:02 1707084 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libipc1.so
7f3705c21000-7f3705c24000 rw-p 00176000 08:02 1707084 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libipc1.so
7f3705c24000-7f3705c29000 rw-p 00000000 00:00 0
7f3705c29000-7f3705c9b000 r-xp 00000000 08:02 1707082 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libmql1.so
7f3705c9b000-7f3705e9a000 ---p 00072000 08:02 1707082 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libmql1.so
7f3705e9a000-7f3705e9d000 rw-p 00071000 08:02 1707082 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libmql1.so
7f3705e9d000-7f3705e9f000 rw-p 00000000 00:00 0
7f3705e9f000-7f37061f3000 r-xp 00000000 08:02 1704774 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntshcore.so.12.1
7f37061f3000-7f37063f3000 ---p 00354000 08:02 1704774 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntshcore.so.12.1
7f37063f3000-7f370640d000 rw-p 00354000 08:02 1704774 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntshcore.so.12.1
7f370640d000-7f3706413000 rw-p 00000000 00:00 0
7f3706413000-7f3708fd4000 r-xp 00000000 08:02 1707035 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1
7f3708fd4000-7f37091d4000 ---p 02bc1000 08:02 1707035 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1
7f37091d4000-7f37093b6000 rw-p 02bc1000 08:02 1707035 /refresh/home/app/oracle/product/12.1.0/dbhome_1/lib/libclntsh.so.12.1
7f37093b6000-7f37093d7000 rw-p 00000000 00:00 0
7fff33a64000-7fff33a84000 rwxp 00000000 00:00 0 [stack]
7fff33a84000-7fff33a85000 rw-p 00000000 00:00 0
7fff33b37000-7fff33b39000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)


Attempting to create the same wallet using OWM (Oracle Wallet Manager) results in an error
"Passwords must have a minimum length of eight characters and contain alphabetic characters combined with numbers or special characters"

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.