Bug 1832190
Summary: | [abrt] [faf] 389-ds-base: unknown function(): /usr/sbin/ns-slapd killed by 11 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Lukas Slebodnik <lslebodn> | ||||
Component: | slapi-nis | Assignee: | thierry bordaz <tbordaz> | ||||
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.9 | CC: | abokovoy, mreynolds, myusuf, pvlasin, spichugi, ssidhaye, tbordaz, vashirov | ||||
Target Milestone: | rc | Keywords: | Regression, TestBlocker | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/5d179c0c142c68b9153ac69a93d99d3a3bb3df20/ | ||||||
Whiteboard: | |||||||
Fixed In Version: | slapi-nis-0.56.5-2 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1832331 (view as bug list) | Environment: | |||||
Last Closed: | 2020-09-29 20:33:44 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1832331 | ||||||
Attachments: |
|
Description
Lukas Slebodnik
2020-05-06 10:08:09 UTC
This is related to recent fix https://bugzilla.redhat.com/show_bug.cgi?id=1820124. Likely because NIS is enabled and SC not :( Actually both NIS and SC are enabled. I think the problem is that SC is initialized later compare to NIS or Schema reload plugin. At this point ignored_containers_sdn was not initialized yet and trigger the crash. Created attachment 1685665 [details]
proposed fix
Even though NIS and SC plugins share source code, they get linked and then loaded separately, so static variables defined in src/back-shr.c aren't shared. It means NIS plugin has to initialize map locks as well. And if ignored_containers_sdn is NULL, there is no need to go over it since none of the entries could be ignored, just return NULL.
I tested this patch and it solves the issue to me. Reproducer: 1. install FreeIPA 2. enable NIS plugin: ipa-nis-manage enable 3. systemctl start rpcbind 4. ipactl restart You'll get a failure at this point because NIS plugin would crash. Build and install a fixed package, do ipactl restart and everything continues to work just fine. Added upstream: https://pagure.io/slapi-nis/c/f3d34b046ef4f28d31b6d6e3511a8956bc60ec7c?branch=master Added to Fedora 31-33 as slapi-nis-0.56.5-2 Added to RHEL 7.9 as slapi-nis-0.56.5-2 reproducer: [root@master ~]# rpm -qa | grep slapi slapi-nis-0.56.5-1.el7.x86_64 [root@master ~]# rpm -qa | grep ipa-server ipa-server-dns-4.6.8-1.el7.noarch ipa-server-trust-ad-4.6.8-1.el7.x86_64 ipa-server-common-4.6.8-1.el7.noarch ipa-server-4.6.8-1.el7.x86_64 [root@master ~]# ipa-nis-manage enable Directory Manager password: Enabling plugin This setting will not take effect until you restart Directory Server. The rpcbind service may need to be started. [root@master ~]# systemctl start rpcbind [root@master ~]# ipactl restart Restarting Directory Service Failed to restart Directory Service: Command '/bin/systemctl restart dirsrv' returned non-zero exit status 1 Shutting down Aborting ipactl Fix: ~~~~ [root@master ~]# yum install -y http://download.eng.bos.redhat.com/brewroot/vol/rhel-7/packages/slapi-nis/0.56.5/2.el7/x86_64/slapi-nis-0.56.5-2.el7.x86_64.rpm Loaded plugins: search-disabled-repos slapi-nis-0.56.5-2.el7.x86_64.rpm [..] [root@master ~]# rpm -qa | grep slapi slapi-nis-0.56.5-2.el7.x86_64 [root@master ~]# ipactl restart IPA version error: data needs to be upgraded (expected version '4.6.8-3.el7', current version '4.6.8-1.el7') Automatically running upgrade, for details see /var/log/ipaupgrade.log Be patient, this may take a few minutes. Starting Directory Service Starting krb5kdc Service Starting kadmin Service Starting named Service Starting httpd Service Starting ipa-custodia Service Starting pki-tomcatd Service Starting ipa-otpd Service Starting ipa-dnskeysyncd Service ipa: INFO: The ipactl command was successful 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 (slapi-nis bug fix and enhancement 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-2020:4010 |