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 1597384 - Async operations can hang when the server is running nunc-stans
Summary: Async operations can hang when the server is running nunc-stans
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.4
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: thierry bordaz
QA Contact: RHDS QE
URL:
Whiteboard:
: 1600764 (view as bug list)
Depends On:
Blocks: 1597530
TreeView+ depends on / blocked
 
Reported: 2018-07-02 20:02 UTC by mreynolds
Modified: 2021-12-10 16:32 UTC (History)
10 users (show)

Fixed In Version: 389-ds-base-1.3.8.4-1.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1597530 (view as bug list)
Environment:
Last Closed: 2018-10-30 10:14:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 2824 0 None None None 2020-09-13 22:11:01 UTC
Red Hat Knowledge Base (Solution) 3553761 0 None None None 2018-08-07 09:57:22 UTC
Red Hat Product Errata RHSA-2018:3127 0 None None None 2018-10-30 10:15:20 UTC

Description mreynolds 2018-07-02 20:02:14 UTC
This bug is created as a clone of upstream ticket:
https://pagure.io/389-ds-base/issue/49765

#### Issue Description
This bug is a side effect of https://pagure.io/389-ds-base/issue/48184

With async operations on the same connection, the connection can be set several times in read_ready. This is done with connection_threadmain scheduling ns_handle_pr_read_ready (connection_make_readable_nolock).

When there is no more activity on the connection (no new req, timeout, closure..) and the server is listening to it (ns_handle_pr_read_ready), then if an async operation tries to schedule ns_handle_pr_read_ready it will hang (before completing the operation).

The consequence is one or more hanging operations on the connection with a stack like

    Thread 63 (Thread 0x7f794a711700 (LWP 28798)):
    #0  0x00007f7995e75c93 in select () from /lib64/libc.so.6
    #1  0x00007f7998e8046b in DS_Sleep (ticks=100) at 389-ds-base/ldap/servers/slapd/util.c:1086
    #2  0x0000000000438a6a in ns_connection_post_io_or_closing (conn=0x7f79550fc800) at 389-ds-base/ldap/servers/slapd/daemon.c:1835
    #3  0x0000000000427adc in connection_make_readable_nolock (conn=0x7f79550fc800) at 389-ds-base/ldap/servers/slapd/connection.c:1361                                                                                              
    #4  0x0000000000429e91 in connection_threadmain () at 389-ds-base/ldap/servers/slapd/connection.c:1724
    #5  0x00007f7996a0907b in _pt_root () from /lib64/libnspr4.so
    #6  0x00007f79965ab36d in start_thread () from /lib64/libpthread.so.0
    #7  0x00007f7995e7fb4f in clone () from /lib64/libc.so.6      

A way to mitigate the problem is to set a idletimeout

#### Package Version and Platform
1.3.7, 1.3.8 and master


#### Steps to reproduce

test case is not systematic.
On rapid machine, it hangs one out of ten

#### Actual results
Some operations are not completing (hanging)

#### Expected results
Should not hang

Comment 6 German Parente 2018-08-01 16:08:11 UTC
*** Bug 1600764 has been marked as a duplicate of this bug. ***

Comment 7 Viktor Ashirov 2018-08-30 13:22:56 UTC
Build tested: 389-ds-base-1.3.8.4-12.el7.x86_64

Cmocka unit tests pass:

PASS: test_nuncstans
PASS: test_nuncstans_stress_small
PASS: test_nuncstans_stress_large

No hang was observed during the acceptance testing with nunc-stans. NS is also disabled by default on new installs (bz1614501), so marking as VERIFIED, SanityOnly.

Comment 14 errata-xmlrpc 2018-10-30 10:14: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.

https://access.redhat.com/errata/RHSA-2018:3127


Note You need to log in before you can comment on or make changes to this bug.