Please find attached a test program and Makefile plus a test script to drive it. Basically the program exercises concurrent SASL binds.
With the current packages in xenial, the test program fails in a variety of ways: $ ./sasltest rc = -6 (Unknown authentication method) sasltest: sasltest.c:70: bind_thread: Assertion `rc == LDAP_SUCCESS' failed. Aborted $ ./sasltest Segmentation fault $ ./sasltest Bus error or even simply hanging/spinning. (If you execute ./sasltest in a shell, be sure to export LDAPSASL_SECPROPS=none first to avoid the confidentiality requirement.) With the proposed patch, the test program should reliably complete all its iterations (takes a few seconds) and exit successfully. I hope this reproduces the problem for you. My proposed debdiff and PPA are out of date and should be rebased using the actual upstream patches. (Similar changes already landed in Debian stretch.) I will try to take care of that this week, but if you have everything you need and the tuits, feel free to proceed without me. ** Attachment added: "Makefile" https://bugs.launchpad.net/bugs/1688575/+attachment/5139678/+files/Makefile ** Attachment added: "sasltest.c" https://bugs.launchpad.net/bugs/1688575/+attachment/5139679/+files/sasltest.c ** Attachment added: "testscript" https://bugs.launchpad.net/bugs/1688575/+attachment/5139680/+files/testscript -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1688575 Title: Segmentation fault on a slave slapd (sync replication with kerberos authentication) To manage notifications about this bug go to: https://bugs.launchpad.net/openldap/+bug/1688575/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
