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.
Steps to reproduce:
[1] Install libasan and debuginfo:
# dnf install libasan -y
# debuginfo-install 389-ds-base 389-ds-base-libs slapi-nis -y
[2] Stop dirsrv:
# systemctl stop dirsrv@IPA-TEST
[3] Edit systemd drop-in config file for dirsrv service:
# vi /usr/lib/systemd/system/dirsrv@.service.d/custom.conf
Add these lines at the very end of the file:
TimeoutStartSec=3600
TimeoutStopSec=3600
Environment=
ExecStartPre=
Environment=LD_PRELOAD=/usr/lib64/libasan.so.5
Environment=ASAN_OPTIONS=log_path=/run/dirsrv/ns-slapd-%i.asan:print_stacktrace=1:detect_leaks=1:exit_code=0:fast_unwind_on_malloc=0
[4] After saving the file, reload systemd:
# systemd reload-daemon
[5] Set SELinux to permissive mode and start dirsrv:
# setenforce 0
# systemctl start dirsrv@IPA-TEST
[6] Once it's up, run several searches against cn=config:
# ldapsearch -LLL -b cn=config '(objectClass=*)'
[7] Stop dirsrv:
# systemctl stop dirsrv@IPA-TEST
[8] Check AddressSanitizer output for backend_search_cb:
# grep backend_search_cb /run/dirsrv/ns-slapd*asan*
/var/run/dirsrv/ns-slapd-IPA-TEST.asan.24662:57: #4 0x7f4e2d4fb29f in backend_search_cb back-sch.c:1746
/var/run/dirsrv/ns-slapd-IPA-TEST.asan.24662:2048: #7 0x7f4e2d4fb2ac in backend_search_cb back-sch.c:1748
/var/run/dirsrv/ns-slapd-IPA-TEST.asan.24662:2069: #9 0x7f4e2d4fb2ac in backend_search_cb back-sch.c:1748
/var/run/dirsrv/ns-slapd-IPA-TEST.asan.24662:2085: #4 0x7f4e2d4fb29f in backend_search_cb back-sch.c:1746
On the version with the fix you should not see any output.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (idm:DL1 bug fix update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:4094