https://bugs.openldap.org/show_bug.cgi?id=9858
--- Comment #7 from Howard Chu hyc@openldap.org --- Also try this patch https://git.openldap.org/openldap/openldap/-/merge_requests/533
That isn't expected to fix everything but should cleanup the backtrace a bit.