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

LeakSanitizer: detected memory leaks in dbmdb_public_db_op

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-10.0.beta
    • 389-ds-base
    • None
    • No
    • None
    • rhel-sst-idm-ds
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      During the tests AddressSanitizer reports a memory leak:

      Direct leak of 1984476 byte(s) in 1352 object(s) allocated from:
          #0 0x7f68c34fc8c7 in malloc (/lib64/libasan.so.8+0xfc8c7) (BuildId: b17f4dcba244e0c6ade7fcec84ffce254acc15b7)
          #1 0x7f68c2d9ee97 in slapi_ch_malloc (/usr/lib64/dirsrv/libslapd.so.0+0x19ee97) (BuildId: 29836caa1d665929655ba2782df9df55f64a272f)
          #2 0x7f68bbf30dd1 in dbmdb_dbt2dbival ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c:1636
          #3 0x7f68bbf30dd1 in dbmdb_dbt2dbival ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c:1594
          #4 0x7f68bbf3db9f in dbmdb_public_db_op ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c:2553
          #5 0x7f68bbe905c2 in _entryrdn_resolve_redirect ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:1429
          #6 0x7f68bbe92857 in _entryrdn_get_elem ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:1567
          #7 0x7f68bbe96dfb in _entryrdn_index_read ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:3145
          #8 0x7f68bbe992c6 in entryrdn_index_read_ext (/usr/lib64/dirsrv/plugins/libback-ldbm.so+0x992c6) (BuildId: 0ca3ffdadf5666251f1bc8a2954fb67a2856c0b1)
          #9 0x7f68bbe48e79 in dn2entry_ext ldap/servers/slapd/back-ldbm/dn2entry.c:60
          #10 0x7f68bbe49748 in get_copy_of_entry ldap/servers/slapd/back-ldbm/dn2entry.c:229
          #11 0x7f68bbe76066 in ldbm_back_add ldap/servers/slapd/back-ldbm/ldbm_add.c:323
          #12 0x7f68c2daa70e in op_shared_add ldap/servers/slapd/add.c:759
          #13 0x7f68c2dad0cd in do_add (/usr/lib64/dirsrv/libslapd.so.0+0x1ad0cd) (BuildId: 29836caa1d665929655ba2782df9df55f64a272f)
          #14 0x560762d1e57c in connection_dispatch_operation ldap/servers/slapd/connection.c:639
          #15 0x560762d1e57c in connection_threadmain ldap/servers/slapd/connection.c:1921
          #16 0x7f68c23ea3d0 in _pt_root pthreads/../../../../nspr/pr/src/pthreads/ptthread.c:201
          #17 0x7f68c345e359 in asan_thread_start ../../../../libsanitizer/asan/asan_interceptors.cpp:234
          #18 0x7f68c2abd9e8 in start_thread /usr/src/debug/glibc-2.39-22.el10.x86_64/nptl/pthread_create.c:447
          #19 0x7f68c2b2d4bb in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Please provide the package NVR for which the bug is seen:

      389-ds-base-3.0.4-4.asan.el10.x86_64

      How reproducible is this bug?:

      always

      Steps to reproduce

      1.  Install ASan build from https://copr.devel.redhat.com/coprs/ldap-team/rhel10-389-ds-base-asan/
      2.  Run dirsrvtests/tests/suites/indexes/entryrdn_test.py::test_long_rdn

      Expected results

      No memory leak

      Actual results

      LeakSanitizer reports a memory leak

              idm-ds-dev-bugs IdM DS Dev
              vashirov@redhat.com Viktor Ashirov
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: