Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
=================================================================
==10052==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0)
#1 0x7f5f286cd065 in slapi_ch_calloc (/usr/lib64/dirsrv/libslapd.so.0+0xdd065)
#2 0x7f5f18ec1596 in _back_crypt_acs_list_add ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1479
#3 0x7f5f18ec726b in _back_crypt_acs_list_add ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1470
#4 0x7f5f18ec726b in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1105
#5 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#6 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#7 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#8 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#9 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#10 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#11 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#12 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#13 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Direct leak of 10 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0)
#1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d)
#2 0x7f5f184518ed in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:754
#3 0x7f5f18452b26 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:292
#4 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9)
#5 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8)
#6 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3)
#7 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88)
#8 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443
#9 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298
#10 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094
#11 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#12 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#13 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#15 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#16 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#17 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#18 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#19 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Direct leak of 10 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0)
#1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d)
#2 0x7f5f18453fb5 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:391
#3 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9)
#4 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8)
#5 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3)
#6 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88)
#7 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443
#8 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298
#9 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094
#10 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#11 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#12 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#13 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#15 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#16 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#17 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#18 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0)
#1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d)
#2 0x7f5f184518b1 in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:745
#3 0x7f5f18451f90 in changelog5_read_config ldap/servers/plugins/replication/cl5_config.c:111
#4 0x7f5f18454758 in changelog5_init ldap/servers/plugins/replication/cl5_init.c:39
#5 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#7 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#8 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#9 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#10 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0)
#1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d)
#2 0x7f5f184518b1 in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:745
#3 0x7f5f18452b26 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:292
#4 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9)
#5 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8)
#6 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3)
#7 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88)
#8 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443
#9 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298
#10 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094
#11 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#12 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#13 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#15 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#16 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#17 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#18 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#19 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Indirect leak of 168 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0)
#1 0x7f5f25fb2470 in PR_NewLock (/lib64/libnspr4.so+0x25470)
#2 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#3 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#4 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#5 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#7 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#8 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#9 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#10 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
Indirect leak of 128 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28c57ba8 in __interceptor_malloc (/lib64/libasan.so.5+0xefba8)
#1 0x7f5f265eee61 in PORT_Alloc_Util (/lib64/libnssutil3.so+0x17e61)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0)
#1 0x7f5f286cd065 in slapi_ch_calloc (/usr/lib64/dirsrv/libslapd.so.0+0xdd065)
#2 0x7f5f18ec6fcf in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1092
#3 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51
#4 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446
#5 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50
#6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801
#7 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757
#8 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3)
#9 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3)
#10 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0)
#11 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2)
SUMMARY: AddressSanitizer: 380 byte(s) leaked in 8 allocation(s).
Version-Release number of selected component (if applicable):
389-ds-base-1.4.3.8-2.module+el8.3.0+6591+ebfc9766
How reproducible:
always
Steps to Reproduce:
1. Rebuild 389-ds-base with ASAN
2. Run
tests/suites/replication/encryption_cl5_test.py::test_algorithm_unhashed[AES]
Actual results:
Memory leaks errors are reported by ASAN
Expected results:
No memory leaks
Additional info:
Description of problem: ================================================================= ==10052==ERROR: LeakSanitizer: detected memory leaks Direct leak of 16 byte(s) in 1 object(s) allocated from: #0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0) #1 0x7f5f286cd065 in slapi_ch_calloc (/usr/lib64/dirsrv/libslapd.so.0+0xdd065) #2 0x7f5f18ec1596 in _back_crypt_acs_list_add ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1479 #3 0x7f5f18ec726b in _back_crypt_acs_list_add ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1470 #4 0x7f5f18ec726b in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1105 #5 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #6 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #7 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #8 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #9 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #10 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #11 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #12 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #13 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Direct leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0) #1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d) #2 0x7f5f184518ed in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:754 #3 0x7f5f18452b26 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:292 #4 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9) #5 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8) #6 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3) #7 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88) #8 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443 #9 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298 #10 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094 #11 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #12 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #13 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #15 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #16 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #17 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #18 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #19 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Direct leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0) #1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d) #2 0x7f5f18453fb5 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:391 #3 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9) #4 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8) #5 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3) #6 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88) #7 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443 #8 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298 #9 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094 #10 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #11 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #12 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #13 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #15 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #16 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #17 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #18 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0) #1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d) #2 0x7f5f184518b1 in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:745 #3 0x7f5f18451f90 in changelog5_read_config ldap/servers/plugins/replication/cl5_config.c:111 #4 0x7f5f18454758 in changelog5_init ldap/servers/plugins/replication/cl5_init.c:39 #5 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #7 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #8 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #9 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #10 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Direct leak of 4 byte(s) in 1 object(s) allocated from: #0 0x7f5f28ba3da0 in strdup (/lib64/libasan.so.5+0x3bda0) #1 0x7f5f286cd16d in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdd16d) #2 0x7f5f184518b1 in changelog5_extract_config ldap/servers/plugins/replication/cl5_config.c:745 #3 0x7f5f18452b26 in changelog5_config_modify ldap/servers/plugins/replication/cl5_config.c:292 #4 0x7f5f286ec8f9 (/usr/lib64/dirsrv/libslapd.so.0+0xfc8f9) #5 0x7f5f286f26d8 in dse_modify (/usr/lib64/dirsrv/libslapd.so.0+0x1026d8) #6 0x7f5f287709a3 (/usr/lib64/dirsrv/libslapd.so.0+0x1809a3) #7 0x7f5f28772f88 (/usr/lib64/dirsrv/libslapd.so.0+0x182f88) #8 0x7f5f18ec7c09 in _back_crypt_keymgmt_store_key ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1443 #9 0x7f5f18ec7c09 in _back_crypt_cipher_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1298 #10 0x7f5f18ec7c09 in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1094 #11 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #12 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #13 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #14 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #15 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #16 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #17 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #18 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #19 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Indirect leak of 168 byte(s) in 1 object(s) allocated from: #0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0) #1 0x7f5f25fb2470 in PR_NewLock (/lib64/libnspr4.so+0x25470) #2 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #3 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #4 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #5 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #7 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #8 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #9 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #10 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) Indirect leak of 128 byte(s) in 1 object(s) allocated from: #0 0x7f5f28c57ba8 in __interceptor_malloc (/lib64/libasan.so.5+0xefba8) #1 0x7f5f265eee61 in PORT_Alloc_Util (/lib64/libnssutil3.so+0x17e61) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7f5f28c57db0 in calloc (/lib64/libasan.so.5+0xefdb0) #1 0x7f5f286cd065 in slapi_ch_calloc (/usr/lib64/dirsrv/libslapd.so.0+0xdd065) #2 0x7f5f18ec6fcf in back_crypt_init ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c:1092 #3 0x7f5f18454c5a in clcrypt_init ldap/servers/plugins/replication/cl_crypt.c:51 #4 0x7f5f18442cd8 in cl5Open ldap/servers/plugins/replication/cl5_api.c:446 #5 0x7f5f1845478e in changelog5_init ldap/servers/plugins/replication/cl5_init.c:50 #6 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:801 #7 0x7f5f184917f7 in multimaster_start ldap/servers/plugins/replication/repl5_init.c:757 #8 0x7f5f287ad9c3 (/usr/lib64/dirsrv/libslapd.so.0+0x1bd9c3) #9 0x7f5f287b45a3 in plugin_startall (/usr/lib64/dirsrv/libslapd.so.0+0x1c45a3) #10 0x55e2d3d859f0 in main (/usr/sbin/ns-slapd+0x309f0) #11 0x7f5f2500e7b2 in __libc_start_main (/lib64/libc.so.6+0x237b2) SUMMARY: AddressSanitizer: 380 byte(s) leaked in 8 allocation(s). Version-Release number of selected component (if applicable): 389-ds-base-1.4.3.8-2.module+el8.3.0+6591+ebfc9766 How reproducible: always Steps to Reproduce: 1. Rebuild 389-ds-base with ASAN 2. Run tests/suites/replication/encryption_cl5_test.py::test_algorithm_unhashed[AES] Actual results: Memory leaks errors are reported by ASAN Expected results: No memory leaks Additional info: