It appears to be a deadlock -- somewhere, a component does two times lock on a mutex set for libcrypto.
I added some debug messages in master branch, can you test with it? First set debug=3 in config file, then start and make the log message from syslog available somewhere (you can mask sensitive values: ip, passwords, etc...) -- here or some website/pastebin.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/501#issuecomment-183064112