Bug 1445177

Summary: ns-slapd crash during shutdown
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Reznik <jreznik>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: urgent    
Version: 7.4CC: mreynolds, msauton, nkinder, pbokoc, rmeggins, spichugi, spoore, wibrown
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.5.10-21.el7_3 Doc Type: Bug Fix
Doc Text:
The retro changelog attribute plug-in (nsslapd-attribute) previously did not allocate enough memory for the attribute list. This caused a crash on shutdown when the plug-in attempted to free memory in use by these attributes. This problem has been fixed by ensuring enough memory is allocated to retro changelog attributes, and the crash at shutdown no longer occurs.
Story Points: ---
Clone Of: 1433996 Environment:
Last Closed: 2017-05-25 15:52:59 UTC Type: ---
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: 1433996    
Bug Blocks:    

Description Jaroslav Reznik 2017-04-25 08:08:11 UTC
This bug has been copied from bug #1433996 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 5 Simon Pichugin 2017-05-10 11:38:49 UTC
Build tested:
389-ds-base-1.3.5.10-21.el7_3.x86_64

Using verification steps from bug #1433996.

The steps:
1. [root@mgmt7 ~]# kinit admin
Password for admin.ENG.BOS.REDHAT.COM:

2. [root@mgmt7 ~]# ipactl stop
Stopping ipa-otpd Service
Stopping pki-tomcatd Service
Stopping ntpd Service
Stopping ipa-custodia Service
Stopping httpd Service
Stopping ipa_memcached Service
Stopping kadmin Service
Stopping krb5kdc Service
Stopping Directory Service
ipa: INFO: The ipactl command was successful

3. [root@mgmt7 ~]# systemctl start dirsrv@RHQ-LAB-ENG-BOS-REDHAT-COM

4. [root@mgmt7 ~]# ps -ef|grep slap
dirsrv   32166     1 13 07:30 ?        00:00:00 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-RHQ-LAB-ENG-BOS-REDHAT-COM -i /var/run/dirsrv/slapd-RHQ-LAB-ENG-BOS-REDHAT-COM.pid
root     32211 27854  0 07:31 pts/0    00:00:00 grep --color=auto slap

5. [root@mgmt7 ~]# systemctl stop dirsrv@RHQ-LAB-ENG-BOS-REDHAT-COM

6. [root@mgmt7 ~]# ls /var/log/dirsrv/slapd-RHQ-LAB-ENG-BOS-REDHAT-COM/
access  access.rotationinfo  audit  audit.rotationinfo  errors  errors.rotationinfo

7. [root@mgmt7 ~]# ls /var/spool/abrt
ls: cannot access /var/spool/abrt: No such file or directory

8. [root@mgmt7 ~]# grep -i segfault /var/log/messages

No crash has happened. Marking as verified.

Comment 7 errata-xmlrpc 2017-05-25 15:52:59 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, 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-2017:1313