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.
Bug 2003607 - Dirsrv memory leak [rhel-8.4.0.z]
Summary: Dirsrv memory leak [rhel-8.4.0.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: slapi-nis
Version: 8.4
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Alexander Bokovoy
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On: 1967906
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-13 09:50 UTC by RHEL Program Management Team
Modified: 2021-11-02 11:41 UTC (History)
11 users (show)

Fixed In Version: slapi-nis-0.56.6-2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1967906
Environment:
Last Closed: 2021-11-02 11:40:49 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-6978 0 None None None 2021-09-29 15:48:13 UTC
Red Hat Issue Tracker RHELPLAN-96975 0 None Closed [BZ] /usr/bin/scl_source does not correctly redirects stderr 2022-06-08 18:40:53 UTC
Red Hat Product Errata RHBA-2021:4094 0 None None None 2021-11-02 11:40:50 UTC

Comment 1 RHEL Program Management 2021-09-13 10:09:40 UTC
Quality Engineering Management has reviewed and declined this request. You may appeal this decision by reopening this request.

Comment 10 Viktor Ashirov 2021-09-15 09:16:07 UTC
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.

Comment 11 anuja 2021-09-15 11:24:26 UTC
Reproduced using comment #10
Using version:
[root@master ~]# rpm -qa slapi-nis ipa-server
ipa-server-4.9.2-4.module+el8.4.0+11156+94d209c1.x86_64
slapi-nis-0.56.6-2.module+el8.4.0+10615+2234cc2c.x86_64
[root@master ~]# 

Console logs:
[root@master ~]#   grep backend_search_cb /run/dirsrv/ns-slapd*asan*
/run/dirsrv/ns-slapd-IPA-TEST.asan.27179:    #4 0x7f0cdb2fa2bf in backend_search_cb back-sch.c:1746
/run/dirsrv/ns-slapd-IPA-TEST.asan.27179:    #4 0x7f0cdb2fa2bf in backend_search_cb back-sch.c:1746
/run/dirsrv/ns-slapd-IPA-TEST.asan.27179:    #7 0x7f0cdb2fa2cc in backend_search_cb back-sch.c:1748
/run/dirsrv/ns-slapd-IPA-TEST.asan.27179:    #9 0x7f0cdb2fa2cc in backend_search_cb back-sch.c:1748
/run/dirsrv/ns-slapd-IPA-TEST.asan.27179:    #7 0x7f0cdb2fa2cc in backend_search_cb back-sch.c:1748
[root@master ~]# date
Wed Sep 15 07:01:17 EDT 2021


Verified using version:
[root@master ~]# rpm -qa ipa-server slapi-nis
ipa-server-4.9.2-4.module+el8.4.0+11156+94d209c1.x86_64
slapi-nis-0.56.6-2.1.module+el8.4.0+12579+0538eac8.x86_64
Console logs:

[root@master ~]# date
Wed Sep 15 07:00:45 EDT 2021
[root@master ~]#  grep backend_search_cb /run/dirsrv/ns-slapd*asan*
[root@master ~]# 

There is no backend_search_cb in logs.
Based on this marking bug as verified.

Comment 16 errata-xmlrpc 2021-11-02 11:40:49 UTC
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


Note You need to log in before you can comment on or make changes to this bug.