<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Hiroshi,</p>
    <p>unfortunately the memory allocation failure reporting of OpenSSL
      is still unsystematic;<br>
      see also <a moz-do-not-send="true"
        href="https://github.com/openssl/openssl/issues/6251">https://github.com/openssl/openssl/issues/6251</a><tt>.<br>
        <br>
        SSL_CTX_new()</tt> is pretty complex and can fail for many
      reasons.<br>
      In the case you quote below, its call of <tt>EVP_get_digestbyname("ssl3-md5")</tt>
      fails for some reason.<br>
      Since you get this behavior not all the time, its is clear that
      this cannot be due to a statically determined<br>
      reason (such as the MD5 implementation not being available), so
      this must be due to lack of memory.<br>
      It might be also due to some (other) issue with multi-threading,
      but very likely not.<br>
    </p>
    <p>    David<br>
    </p>
    <div class="moz-cite-prefix">
      <p><br>
      </p>
      <p><br>
      </p>
      On 31.08.21 03:19, 青木寛 / AOKI,HIROSHI wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:TYAPR01MB21267CFB8529EB952C94B778FCCC9@TYAPR01MB2126.jpnprd01.prod.outlook.com">
      <pre class="moz-quote-pre" wrap="">I would like some advice as to why I am getting NULLs returned as a result of calling SSL_CTX_new.

The library I'm using is OpenSSL 1.1.1k.
The argument to SSL_CTX_new is TLS_server_method().
The message retrieved by ERR_get_error and ERR_error_string was the following.
  "error:140A90F2:SSL routines:SSL_CTX_new:unable to load ssl3 md5 routines".
The phenomenon does not always occur, but sometimes it does.

In the environment where the problem occurred, many services were running and memory was scarce, so I suspect that lack of memory was the cause.
Are there any other possible causes?
--------
Hiroshi Aoki

</pre>
    </blockquote>
  </body>
</html>