Comment 24 for bug 1688575

Revision history for this message
Ryan Tandy (rtandy) wrote : Re: [Bug 1688575] Re: Segmentation fault on a slave slapd (sync replication with kerberos authentication)

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.