Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-133795

Memory leak observed in ns-slapd with 389-ds-base-2.6.1-12

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.2
    • rhel-9.6.z
    • 389-ds-base
    • None
    • None
    • Moderate
    • rhel-idm-ds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Memory leak observed in ns-slapd with 389-ds-base-2.6.1-12

       

      =================================================================
      ==59571==ERROR: LeakSanitizer: detected memory leaksDirect leak of 251472 byte(s) in 15717 object(s) allocated from:
          #0 0x7f7ed6eb4db8 in __interceptor_realloc (/usr/lib64/libasan.so.6+0xb4db8)
          #1 0x7f7ed7917d9c in ber_memrealloc_x (/lib64/liblber.so.2+0x7d9c)
          #2 0x7f7ed7939294 in ldap_pvt_get_controls (/lib64/libldap.so.2+0x17294)
          #3 0x7f7ed79417be in ldap_parse_result (/lib64/libldap.so.2+0x1f7be)
          #4 0x7f7ecf9169d7 in conn_read_result_ex (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x419d7)
          #5 0x7f7ecf91fa3f in repl5_inc_result_threadmain (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x4aa3f)
          #6 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191Direct leak of 15328 byte(s) in 479 object(s) allocated from:
          #0 0x7f7ed6eb4a07 in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb4a07)
          #1 0x7f7ed6adc048 in write_auditfail_log_entry ldap/servers/slapd/auditlog.c:261
          #2 0x7f7ed6ae5ea6 in csnset_add_csn (/usr/lib64/dirsrv/libslapd.so.0+0xe5ea6)
          #3 0x7f7ed6ae5fc6 in csnset_dup (/usr/lib64/dirsrv/libslapd.so.0+0xe5fc6)
          #4 0x7f7ed6b820e5 in valuearray_add_valuearray_fast ldap/servers/slapd/valueset.c:82
          #5 0x7f7ed6b8fe40 in extractKeysAndSubject ldap/servers/slapd/ssl.c:2731
          #6 0x7f7ed6b8fe40 in slapd_extract_key.constprop.0.isra.0 ldap/servers/slapd/ssl.c:2914
          #7 0x7f7ed6afb2c6 in str2entry_fast ldap/servers/slapd/entry.c:296
          #8 0x7f7ed6afb405 in str2entry_fast ldap/servers/slapd/entry.c:388
          #9 0x7f7ecfbcba8e in modify_apply_check_expand (/usr/lib64/dirsrv/plugins/libback-ldbm.so+0x7ca8e)
          #10 0x7f7ecfbcf524 in ldbm_back_modify (/usr/lib64/dirsrv/plugins/libback-ldbm.so+0x80524)
          #11 0x7f7ed6b33cc0 in op_shared_modify ldap/servers/slapd/modify.c:1129
          #12 0x7f7ed6b34a4c in op_shared_modify ldap/servers/slapd/modify.c:984
          #13 0x5576dcfd13bc in connection_threadmain (/usr/sbin/ns-slapd+0x303bc)
          #14 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191Indirect leak of 502848 byte(s) in 15714 object(s) allocated from:
          #0 0x7f7ed6eb4bd7 in calloc (/usr/lib64/libasan.so.6+0xb4bd7)
          #1 0x7f7ed7917bc4 in ber_memcalloc_x (/lib64/liblber.so.2+0x7bc4)
          #2 0x7f7ed7939276 in ldap_pvt_get_controls (/lib64/libldap.so.2+0x17276)
          #3 0x7f7ed79417be in ldap_parse_result (/lib64/libldap.so.2+0x1f7be)
          #4 0x7f7ecf9169d7 in conn_read_result_ex (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x419d7)
          #5 0x7f7ecf91fa3f in repl5_inc_result_threadmain (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x4aa3f)
          #6 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191Indirect leak of 377112 byte(s) in 15713 object(s) allocated from:
          #0 0x7f7ed6eb4a07 in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb4a07)
          #1 0x7f7ed7917014 in ber_memalloc_x (/lib64/liblber.so.2+0x7014)
          #2 0x7f7ed79170f7 in ber_get_stringbv (/lib64/liblber.so.2+0x70f7)
          #3 0x7f7ed7917541 in ber_get_stringa (/lib64/liblber.so.2+0x7541)
          #4 0x7f7ed7919cd9 in ber_scanf (/lib64/liblber.so.2+0x9cd9)
          #5 0x7f7ed79392cc in ldap_pvt_get_controls (/lib64/libldap.so.2+0x172cc)
          #6 0x7f7ed79417be in ldap_parse_result (/lib64/libldap.so.2+0x1f7be)
          #7 0x7f7ecf9169d7 in conn_read_result_ex (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x419d7)
          #8 0x7f7ecf91fa3f in repl5_inc_result_threadmain (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x4aa3f)
          #9 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191Indirect leak of 47133 byte(s) in 15711 object(s) allocated from:
          #0 0x7f7ed6eb4a07 in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb4a07)
          #1 0x7f7ed7917014 in ber_memalloc_x (/lib64/liblber.so.2+0x7014)
          #2 0x7f7ed79170f7 in ber_get_stringbv (/lib64/liblber.so.2+0x70f7)
          #3 0x7f7ed7919d63 in ber_scanf (/lib64/liblber.so.2+0x9d63)
          #4 0x7f7ed7939334 in ldap_pvt_get_controls (/lib64/libldap.so.2+0x17334)
          #5 0x7f7ed79417be in ldap_parse_result (/lib64/libldap.so.2+0x1f7be)
          #6 0x7f7ecf9169d7 in conn_read_result_ex (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x419d7)
          #7 0x7f7ecf91fa3f in repl5_inc_result_threadmain (/usr/lib64/dirsrv/plugins/libreplication-plugin.so+0x4aa3f)
          #8 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191Indirect leak of 12000 byte(s) in 375 object(s) allocated from:
          #0 0x7f7ed6eb4a07 in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb4a07)
          #1 0x7f7ed6adc048 in write_auditfail_log_entry ldap/servers/slapd/auditlog.c:261
          #2 0x7f7ed6ae5ea6 in csnset_add_csn (/usr/lib64/dirsrv/libslapd.so.0+0xe5ea6)
          #3 0x7f7ed6ae5fc6 in csnset_dup (/usr/lib64/dirsrv/libslapd.so.0+0xe5fc6)
          #4 0x7f7ed6b820e5 in valuearray_add_valuearray_fast ldap/servers/slapd/valueset.c:82
          #5 0x7f7ed6b8fe40 in extractKeysAndSubject ldap/servers/slapd/ssl.c:2731
          #6 0x7f7ed6b8fe40 in slapd_extract_key.constprop.0.isra.0 ldap/servers/slapd/ssl.c:2914
          #7 0x7f7ed6afb2c6 in str2entry_fast ldap/servers/slapd/entry.c:296
          #8 0x7f7ed6afb405 in str2entry_fast ldap/servers/slapd/entry.c:388
          #9 0x7f7ecfbcba8e in modify_apply_check_expand (/usr/lib64/dirsrv/plugins/libback-ldbm.so+0x7ca8e)
          #10 0x7f7ecfbcf524 in ldbm_back_modify (/usr/lib64/dirsrv/plugins/libback-ldbm.so+0x80524)
          #11 0x7f7ed6b33cc0 in op_shared_modify ldap/servers/slapd/modify.c:1129
          #12 0x7f7ed6b34a4c in op_shared_modify ldap/servers/slapd/modify.c:984
          #13 0x5576dcfd13bc in connection_threadmain (/usr/sbin/ns-slapd+0x303bc)
          #14 0x7f7ed7881bd3 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:191SUMMARY: AddressSanitizer: 1205893 byte(s) leaked in 63709 allocation(s). 

              idm-ds-dev-bugs IdM DS Dev
              rhn-support-apeddire AbhinayReddy Peddireddy
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: