It does not seem to be a bug in Kamailio, but some conflict in the libmysqlclient and libssl. In another case I investigated, the crash happened when running an embedded script in another language that used its own mysql connector library, independent of db_mysql module.
I am closing it, if someone comes with further details, we can look further.