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.

Bug 1196464

Summary: Adding ldif with out-of-scope target causes dirsrv to segfault
Product: Red Hat Enterprise Linux 6 Reporter: Brian J. Atkisson <batkisso>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED DUPLICATE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0CC: batkisso, nhosoi, nkinder, rmeggins
Target Milestone: pre-dev-freeze   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-05 18:21:45 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:
Attachments:
Description Flags
crashy ldif
none
stacktrace
none
stacktrace with debuginfo none

Description Brian J. Atkisson 2015-02-26 02:10:05 UTC
Created attachment 995431 [details]
crashy ldif

Description of problem:
When attempting to add the attached ldif file to a DS server, it results in the dirsrv crashing.  I receive the following error:

[25/Feb/2015:20:54:45 -0500] NSACLPlugin - ACL Invalid Target Error(-8): Target is beyond the scope of the ACL(SCOPE:ou=Groups,dc=kerb,dc=redhat,dc=com) (targetattr = \22\2a\22) (target = \22ldap:///cn=pplmgrs,ou=Groups,dc=redhat,dc=com\22) (version 3.0;acl \22EIS People Managers Group Edit Permissions\22;allow (all)(userdn = \22ldap:///uid=eis-acct-maint,ou=serviceaccounts,dc=kerb,dc=redhat,dc=com\22);)


Version-Release number of selected component (if applicable):

RHEL 6.6

389-ds-base-1.2.11.15-48.el6_6.x86_64
389-admin-1.1.34-1.el6.x86_64
389-ds-console-doc-1.2.7-1.el6.noarch
389-adminutil-1.1.17-1.el6.x86_64
redhat-ds-console-9.1.0-1.el6.noarch
redhat-ds-base-9.1.0-1.el6dsrv.x86_64
389-ds-console-1.2.7-1.el6.noarch
389-admin-console-doc-1.1.8-1.el6.noarch
389-console-1.1.7-1.el6.noarch
redhat-ds-admin-9.1.0-1.el6.x86_64
redhat-ds-console-doc-9.1.0-1.el6.noarch
389-ds-base-libs-1.2.11.15-48.el6_6.x86_64
389-admin-console-1.1.8-1.el6.noarch
redhat-ds-9.1.0-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. ldapadd -ZZ -x -h server -D "cn=Directory Manager" -c -w password -f test.ldif 


Actual results:
Results in a segfault.

Expected results:
dirsrv simply responds with an error

Additional info:
Access to the server can be granted, if necessary

Comment 1 Rich Megginson 2015-02-26 02:11:51 UTC
can you attach a stack trace to the bz?

http://www.port389.org/docs/389ds/FAQ/faq.html#debugging-crashes

Comment 2 Brian J. Atkisson 2015-02-26 03:41:18 UTC
I installed the debuginfo package, but I'm not sure it's the right one.  Looking at the no symbols messages in the stacktrace, I'm guessing it's not.  Can you direct me to the correct one to install?  See attached for the stacktrace.

389-ds-base-1.2.11.15-48.el6_6.x86_64
389-ds-console-doc-1.2.7-1.el6.noarch
redhat-ds-console-9.1.0-1.el6.noarch
redhat-ds-base-9.1.0-1.el6dsrv.x86_64
389-ds-console-1.2.7-1.el6.noarch
redhat-ds-base-debuginfo-9.1.0-1.el6dsrv.x86_64
redhat-ds-admin-9.1.0-1.el6.x86_64
redhat-ds-console-doc-9.1.0-1.el6.noarch
389-ds-base-libs-1.2.11.15-48.el6_6.x86_64
redhat-ds-9.1.0-1.el6.x86_64

Comment 3 Brian J. Atkisson 2015-02-26 03:41:58 UTC
Created attachment 995446 [details]
stacktrace

Comment 4 Brian J. Atkisson 2015-02-26 03:45:39 UTC
Ah I get it, the 389 debuginfo package is in the RHEL debuginfo channel, not RHDS debuginfo.

Comment 5 Brian J. Atkisson 2015-02-26 03:49:53 UTC
Comment on attachment 995446 [details]
stacktrace

incorrect debuginfo

Comment 6 Brian J. Atkisson 2015-02-26 03:50:48 UTC
Created attachment 995449 [details]
stacktrace with debuginfo

Let me know if this isn't what you need

Comment 7 Noriko Hosoi 2015-02-26 17:35:13 UTC
(In reply to Brian J. Atkisson from comment #6)
> Created attachment 995449 [details]
> stacktrace with debuginfo
> 
> Let me know if this isn't what you need

This looks like a crash caused by a double free...

Could it be possible to run the search against the server running with valgrind?
http://www.port389.org/docs/389ds/FAQ/faq.html#memory-growth

Thank you, Brian!!

Comment 9 Noriko Hosoi 2016-03-24 18:40:38 UTC
This bug looks like a dup of this bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1314241
Bug 1314241 - Double free while adding entries

There was an issue if backend add fails in a plugin (including the acl) and if the adding entry is in the entry cache, it was not properly removed from the cache.

The fix is available in 389-ds-base-1.2.11.15-72.el6_7.
It has been just shipped as rhel-6.7.6.
https://errata.devel.redhat.com/advisory/22525

Could you please try the release?  Thanks!

Comment 12 Brian J. Atkisson 2016-04-05 17:50:18 UTC
Apologies for the delay, I just tested again with:

389-ds-base-libs-1.2.11.15-72.el6_7.x86_64
389-ds-base-1.2.11.15-72.el6_7.x86_64

DS did *not* crash this time, tested it several times.  I would say this is resolved.  Thanks all!

Comment 13 Noriko Hosoi 2016-04-05 18:21:45 UTC
(In reply to Brian J. Atkisson from comment #12)
> Apologies for the delay, I just tested again with:
> 
> 389-ds-base-libs-1.2.11.15-72.el6_7.x86_64
> 389-ds-base-1.2.11.15-72.el6_7.x86_64
> 
> DS did *not* crash this time, tested it several times.  I would say this is
> resolved.  Thanks all!

Great news!  Thank you sooooo much for testing the bits, Brian!!

*** This bug has been marked as a duplicate of bug 1314241 ***