We've installed the latest debug symbols for libssl and libcrypto compiled from here: https://www.openssl.org/source/openssl-1.1.1b.tar.gz
We've also updated Kamailio to 5.2.1.
Unfortunately the problem remains the same, see above for the updated core dump.
Please let me know if there's anything more we can do.