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 730434

Summary: use slapi_rwlock instead of NSPR PR_RWLock directly
Product: Red Hat Enterprise Linux 6 Reporter: Dmitri Pal <dpal>
Component: slapi-nisAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: ckannan, jgalipea, nalin, rmeggins
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: slapi-nis-0.37-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 730394 Environment:
Last Closed: 2012-06-20 13:36:34 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: 730387, 730394, 743979    
Bug Blocks: 730403, 756082    

Description Dmitri Pal 2011-08-12 22:26:59 UTC
+++ This bug was initially created as a clone of Bug #730394 +++

NSPR RW locks are not re-entrant.  This causes problems in certain cases.  389 is going to refactor it's code to provide and use slapi_rwlock instead of using the PRRW locks directly.  All plugins should use slapi_rwlock instead of calling NSPR directly.

Comment 1 Dmitri Pal 2011-08-12 22:35:41 UTC
This bug is going to track the switch to the real API while https://bugzilla.redhat.com/show_bug.cgi?id=730403 is for the interim solution.

Comment 7 Jenny Severance 2012-05-04 12:09:28 UTC
verified ::

# nm -D schemacompat-plugin.so | grep slapi
         U slapi_attr_types_equivalent
         U slapi_be_exist
         U slapi_ch_array_free
         U slapi_ch_free
         U slapi_destroy_rwlock
         U slapi_dn_plus_rdn
         U slapi_entry2str
         U slapi_entry_add_rdn_values
         U slapi_entry_add_string
         U slapi_entry_alloc
         U slapi_entry_attr_get_charray
         U slapi_entry_dup
         U slapi_entry_free
         U slapi_entry_get_dn
         U slapi_entry_get_ndn
         U slapi_entry_get_sdn
         U slapi_entry_merge_values_sv
         U slapi_entry_rdn_values_present
         U slapi_entry_schema_check
         U slapi_entry_set_sdn
         U slapi_filter_dup
         U slapi_filter_free
         U slapi_filter_test
         U slapi_log_error
         U slapi_mod_init_byval
         U slapi_mod_new
         U slapi_mods_add_smod
         U slapi_mods_free
         U slapi_mods_get_ldapmods_byref
         U slapi_mods_new
         U slapi_new_rwlock
         U slapi_pblock_destroy
         U slapi_pblock_get
         U slapi_pblock_new
         U slapi_pblock_set
         U slapi_rdn_free
         U slapi_rdn_get_rdn
         U slapi_rdn_new_dn
         U slapi_rdn_new_sdn
         U slapi_register_plugin
         U slapi_rwlock_rdlock
         U slapi_rwlock_unlock
         U slapi_rwlock_wrlock
         U slapi_sdn_add_rdn
         U slapi_sdn_compare
         U slapi_sdn_dup
         U slapi_sdn_free
         U slapi_sdn_get_dn
         U slapi_sdn_get_ndn
         U slapi_sdn_get_parent
         U slapi_sdn_issuffix
         U slapi_sdn_new
         U slapi_sdn_new_dn_byref
         U slapi_sdn_new_dn_byval
         U slapi_sdn_new_dn_passin
         U slapi_sdn_new_ndn_byref
         U slapi_sdn_scope_test
         U slapi_sdn_set_dn_byref
         U slapi_sdn_set_dn_byval
         U slapi_search_internal_callback_pb
         U slapi_search_internal_set_pb
         U slapi_send_ldap_result
         U slapi_send_ldap_search_entry
         U slapi_str2entry
         U slapi_str2filter
         U slapi_value_free
         U slapi_value_get_berval
         U slapi_value_get_length
         U slapi_value_get_string
         U slapi_value_get_uint
         U slapi_value_new
         U slapi_value_set
         U slapi_value_set_berval
         U slapi_valueset_count
         U slapi_valueset_first_value
         U slapi_valueset_next_value
         U slapi_vattr_filter_test
         U slapi_vattr_value_compare
         U slapi_vattr_values_free
         U slapi_vattr_values_get


version ::
slapi-nis-0.40-1.el6.i686

Comment 8 errata-xmlrpc 2012-06-20 13:36:34 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.

http://rhn.redhat.com/errata/RHBA-2012-0821.html