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 1561224 - With nunc-stans off ns-slapd segfaults at shutdown
Summary: With nunc-stans off ns-slapd segfaults at shutdown
Keywords:
Status: CLOSED DUPLICATE of bug 1563107
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: mreynolds
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-27 22:31 UTC by Viktor Ashirov
Modified: 2018-04-23 15:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-23 15:47:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Tentative patch (845 bytes, application/mbox)
2018-03-28 08:24 UTC, thierry bordaz
no flags Details

Description Viktor Ashirov 2018-03-27 22:31:40 UTC
Description of problem:
With nsslapd-enable-nunc-stans: off in cn=config, ns-slapd segfaults at shutdown.

Version-Release number of selected component (if applicable):
389-ds-base-1.3.7.5-18.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Create new instance
2. Set nsslapd-enable-nunc-stans: off in cn=config
3. Stop the server

Actual results:

Mar 27 18:17:13 server.example.com ns-slapd[25056]: [27/Mar/2018:18:17:13.070992660 -0400] - INFO - op_thread_cleanup - slapd shutting down - signaling operation threads - op st
Mar 27 18:17:13 server.example.com kernel: ns-slapd[25056]: segfault at 10 ip 00007f1ae7419200 sp 00007ffe59ac9cb8 error 4 in libnunc-stans.so.0.1.0[7f1ae7417000+6000]
Mar 27 18:17:13 server.example.com systemd[1]: dirsrv: main process exited, code=killed, status=11/SEGV

(gdb) bt
#0  0x00007fd3345ff200 in ns_thrpool_is_shutdown (tp=tp@entry=0x0) at src/nunc-stans/ns/ns_thrpool.c:173
#1  0x00007fd33460049e in ns_thrpool_shutdown (tp=tp@entry=0x0) at src/nunc-stans/ns/ns_thrpool.c:1572
#2  0x0000563acab34d0b in slapd_daemon (ports=ports@entry=0x7ffdfeebb420, tp=tp@entry=0x0) at ldap/servers/slapd/daemon.c:1200
#3  0x0000563acab2680f in main (argc=<optimized out>, argv=0x7ffdfeebb898) at ldap/servers/slapd/main.c:1200


Expected results:
Server should not crash.

Additional info:

Comment 2 thierry bordaz 2018-03-28 08:24:08 UTC
Created attachment 1414064 [details]
Tentative patch

Comment 5 thierry bordaz 2018-04-23 13:29:19 UTC
Upstream ticket is https://pagure.io/389-ds-base/issue/49648


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