#49648 At shutdown, stopping nunc-stans workers requires that nunc-stans is enable
Closed: wontfix 6 years ago Opened 6 years ago by tbordaz.

Issue Description

If nunc-stans is disabled, there is no nunc-stans worker. During shutting down, the server does not detect that nunc-stans is disabled and tries to stop those workers. To stop them it assumes it exists a pool of worker but in such case the pool is NULL.
It triggers a crash

#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

Package Version and Platform

since 7.4

Steps to reproduce

  1. create an instance
  2. stop, edit dse.ldif, nsslapd-enable-nunc-stans: off
  3. start and stop the instance => crash at shutdown

Actual results

Crash at shutdown

Expected results

Should not crash


Metadata Update from @tbordaz:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue set to the milestone: 1.3.7.0

6 years ago

Closing that bug that is a duplicate of https://pagure.io/389-ds-base/issue/49569.

The original bug was introduced by https://pagure.io/389-ds-base/issue/48184, that was later reverted with https://pagure.io/389-ds-base/issue/49569.

So this bug only exists in intermediate versions where https://pagure.io/389-ds-base/issue/48184 was not reverted.

Metadata Update from @tbordaz:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

6 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2707

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: duplicate)

4 years ago

Log in to comment on this ticket.

Metadata