Bug 1371706

Summary: Server Side Sorting crashes the server.
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: high Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 6.0CC: amsharma, mreynolds, nhosoi, nkinder, rmeggins, vashirov
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-83.el6 Doc Type: Bug Fix
Doc Text:
Directory Server no longer terminates unexpectedly when using server side sorting Previously, when using a matching rule and server side sorting, Directory Server incorrectly frees memory multiple times and terminates unexpectedly. This update fixes the bug, and as a result Directory Server no longer fails when using server side sorting.
Story Points: ---
Clone Of: 1371283 Environment:
Last Closed: 2017-03-21 10:22:55 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:

Comment 3 Amita Sharma 2016-11-23 07:11:53 UTC
[root@spider ~]# rpm -qa | grep 389
389-ds-base-libs-1.2.11.15-85.el6.x86_64
389-ds-base-1.2.11.15-85.el6.x86_64

Added index
[root@spider yum.repos.d]# ldapadd -x -h localhost -p 389 -D "cn=Directory Manager" -w Secret123  << EOF
> dn: cn=title,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
> objectClass: top
> objectClass: nsIndex
> cn: title
> nsSystemIndex: false
> nsIndexType: pres
> nsIndexType: eq
> nsIndexType: sub
> nsMatchingRule: 2.16.840.1.113730.3.3.2.28.1
> EOF
adding new entry "cn=title,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config"

[root@spider yum.repos.d]# ldapadd -x -h localhost -p 389 -D "cn=Directory Manager" -w Secret123  << EOF
> dn: uid=amita2,dc=example,dc=com
> cn: amita2
> sn: amita2
> givenname: amita2
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> uid: amita2
> mail: amita2
> userpassword: Secret123
> title: Mrs
> EOF
adding new entry "uid=amita2,dc=example,dc=com"

[root@spider yum.repos.d]# ldapsearch -xLLL -D "cn=Directory Manager" -w Secret123 -b dc=example,dc=com  -E sss=title:2.16.840.1.113730.3.3.2.28.1.6 '(title=*)' title 
dn: uid=amita2,dc=example,dc=com
title: Mrs

[root@spider yum.repos.d]# ps -aef | grep slapd
nobody    8712     1  0 01:31 ?        00:00:01 ./ns-slapd -D /etc/dirsrv/slapd-spider -i /var/run/dirsrv/slapd-spider.pid -w /var/run/dirsrv/slapd-spider.startpid

No Crash found, hence VERIFIED.

Comment 7 errata-xmlrpc 2017-03-21 10:22:55 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://rhn.redhat.com/errata/RHBA-2017-0667.html