<p><a href="https://github.com/lglayal" class="user-mention">@lglayal</a> -- can you give here the backtrace from gdb when you get the crash with mongo-c-driver-1.3.5 with --enable-ssl=yes ?</p>
<p>I was digging a bit in mongodb-c-driver and looks like they don't set the locking functions if they are already set:</p>
<pre><code>static void
_mongoc_openssl_thread_startup (void)
{
int i;
gMongocOpenSslThreadLocks = (mongoc_mutex_t *)OPENSSL_malloc (CRYPTO_num_locks () * sizeof (mongoc_mutex_t));
for (i = 0; i < CRYPTO_num_locks (); i++) {
mongoc_mutex_init(&gMongocOpenSslThreadLocks[i]);
}
if (!CRYPTO_get_locking_callback ()) {
CRYPTO_set_locking_callback (_mongoc_openssl_thread_locking_callback);
CRYPTO_set_id_callback (_mongoc_openssl_thread_id_callback);
}
}
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/660#issuecomment-231307672">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZR6B22kEdTHrpExffydz_qrbnty2ks5qTg6XgaJpZM4IvThN">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXzZZ8VpdyUlneue31A_6P7DeWp7ks5qTg6XgaJpZM4IvThN.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/660#issuecomment-231307672"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>