Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openldap - ch_calloc: Assertion `0' failed. #239

Open
edevosc2c opened this issue Oct 24, 2023 · 0 comments
Open

openldap - ch_calloc: Assertion `0' failed. #239

edevosc2c opened this issue Oct 24, 2023 · 0 comments
Labels

Comments

@edevosc2c
Copy link
Member

edevosc2c commented Oct 24, 2023

Reported on slack by @danduk82.

Error when the container openldap starts:

docker-ldap-1  | run-parts: executing /docker-entrypoint.d/00-init
docker-ldap-1  | run-parts: executing /docker-entrypoint.d/01-populate
docker-ldap-1  | slapd: ../../../../servers/slapd/ch_malloc.c:107: ch_calloc: Assertion `0' failed.
docker-ldap-1  | /docker-entrypoint.d/01-populate: line 77:    92 Aborted                 (core dumped) slapd -u ${RUN_AS_UID} -g ${RUN_AS_GID} -h "ldapi:/// ldap://127.0.0.1/"
docker-ldap-1  | Starting slapd daemon in background...Started: OK

Details about the OS:

  • redhat
  • selinux disabled

Solution found at https://stackoverflow.com/questions/76332218/openldap-ch-calloc-core-dump-in-docker-containers:
Changing the ulimit -n to 1024 for the openldap container:

services:
  ldap:
   ulimits:
    nofile:
      soft: 1024
      hard: 1024

I'm not entirely sure why that happen. Maybe a newer openldap version already fixes this issue: georchestra/georchestra@1dd8281

ping @pmauduit

@edevosc2c edevosc2c added the bug label Oct 24, 2023
@edevosc2c edevosc2c transferred this issue from georchestra/georchestra Oct 24, 2023
@edevosc2c edevosc2c changed the title Docker: openldap - ch_calloc: Assertion `0' failed. openldap - ch_calloc: Assertion `0' failed. Oct 24, 2023
@edevosc2c edevosc2c reopened this Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant