title: Static linked openssl causes segfault in Qt application
body: <p>I have Qt 4.8 app which had been working fine so far. It dynamically links with system installed the Qt libs on Ubuntu and other Linux distro.</p>
  
  <p>Recently, I added a <code>libcurl</code> dependency to my project, since I needed <code>https</code>, I statically compiled <code>libcurl</code> with <code>openssl 1.1.0h</code> support (to avoid openssl version lock). Now after linking <code>libcurl.a, libcrypto.a and libssl.a</code> with my app the curl functions work fine.</p>
  
  <p>But the existing code which uses <code>QNetworkAccessManager</code> starting <code>seg faulting</code> suddenly. Following is the stacktrace:</p>
  
  <pre><code>(gdb) backtrace
  #0  __GI___libc_free (mem=0x55) at malloc.c:2951
  #1  0x00000000006916d4 in X509_VERIFY_PARAM_free ()
  #2  0x00007fffca7e1ee9 in SSL_free ()
     from /lib/x86_64-linux-gnu/libssl.so.1.0.0
  #3  0x00007ffff6e7fd54 in ?? ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #4  0x00007ffff6e81627 in ?? ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #5  0x00007ffff6e7889c in ?? ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #6  0x00007ffff6e7381d in QSslConfiguration::defaultConfiguration() ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #7  0x00007ffff6e09e53 in QNetworkRequest::sslConfiguration() const ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #8  0x00007ffff6df2143 in QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation, QNetworkRequest const&amp;, QIODevice*) ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  #9  0x00007ffff6deefc4 in QNetworkAccessManager::get(QNetworkRequest const&amp;) ()
     from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
  </code></pre>