Skip to content

crash on 3.0/3.1 branch #6459

Closed
Closed
@stanislavlevin

Description

@stanislavlevin

Issue Description
ns-slapd crashes on start up.

Package Version and Platform:

  • Platform: ALTLinux
  • Package and version: 389-ds-base-3.0.5/389-ds-base-3.1.1/389-ds-base's main (8fcc1dd)

Steps to Reproduce
EDITED:
crash only happens with mdb backend, the bdb one doesn't cause it.

Steps to reproduce the behavior (basically it's dogtag pki instructions: https://github.com/dogtagpki/pki/wiki/Installing-DS-Server):

  1. dscreate create-template ds.inf
  2. sed -i -e "s/;instance_name = .*/instance_name = localhost/g" -e "s/;root_password = .*/root_password = Secret.123/g" -e "s/;suffix = .*/suffix = dc=example,dc=com/g" -e "s/;create_suffix_entry = .*/create_suffix_entry = True/g" -e "s/;self_sign_cert = .*/self_sign_cert = False/g" ds.inf
  3. dscreate from-file ds.inf
  4. installation fails with:
Starting installation ...
Validate installation settings ...
Create file system structures ...
Create database backend: dc=example,dc=com ...
Error: -1 - Can't contact LDAP server - [] - add_ext_s((dn: cn=userroot,cn=ldbm database,cn=plugins,cn=config
cn: userroot
nsslapd-suffix: dc=example,dc=com
objectclass: top
objectclass: extensibleObject
objectclass: nsBackendInstance

,),{'serverctrls': None, 'clientctrls': None, 'escapehatch': 'i am sure'}) on instance localhost

journal:

Dec 20 13:34:26 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:26.400973199 +0300] - INFO - main - Setting the maximum file descriptor limit to: 524288
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.251777214 +0300] - INFO - PBKDF2_SHA256 - Based on CPU performance, chose 2048 rounds
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.260007785 +0300] - INFO - dbmdb_ctx_t_upgrade_dse_info - create config entry from old config
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.265117085 +0300] - INFO - dbmdb_make_env - MDB environment created with maxsize=2147483648.
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.265790378 +0300] - INFO - dbmdb_make_env - MDB environment created with max readers=126.
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.266120846 +0300] - INFO - dbmdb_make_env - MDB environment created with max database instances=512.
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.353287464 +0300] - INFO - connection_table_new - Number of connection sub-tables 1, each containing 63937 slots.
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.393542756 +0300] - INFO - slapd_daemon - slapd started.  Listening on All Interfaces port 389 for LDAP requests
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.469353448 +0300] - INFO - slapd_daemon - Listening on /run/slapd-localhost.socket for LDAPI requests
Dec 20 13:34:27 dc.ipa.test systemd[1]: Started dirsrv@localhost.service - 389 Directory Server localhost..
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.903566982 +0300] - INFO - postop_modify_config_dse - The change of nsslapd-securePort will not take effect until the server is restarted
Dec 20 13:34:27 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:27.905470443 +0300] - NOTICE - dbmdb_ctx_t_db_max_size_set - New nsslapd-mdb-max-size will not take affect until the server is restarted
Dec 20 13:34:28 dc.ipa.test ns-slapd[33772]: [20/Dec/2024:13:34:28.164698416 +0300] - INFO - ldbm_instance_config_cachememsize_set - force a minimal value 512000
Dec 20 13:34:28 dc.ipa.test ns-slapd[33772]: Assertion failure: mon->entryCount > 0, at ptsynch.c:648
Dec 20 13:34:29 dc.ipa.test systemd[1]: dirsrv@localhost.service: Main process exited, code=dumped, status=6/ABRT
Dec 20 13:34:29 dc.ipa.test systemd[1]: dirsrv@localhost.service: Failed with result 'core-dump'.

Expected results
An installation should pass without fails.

Additional context
stacktrace:
slapd.stacktrace.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThe issue will be triaged during scrum

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions