Hafedh TRIMECHE 1 Posted June 9, 2019 Setting OPENSSL_SET_MEMORY_FUNCS inside IdCompilerDefines.inc file generated Assertion Exception: =============================================================================== Computer Name : WIN-U8VNBK8EO77 Local IP : 192.168.56.1,192.168.31.150 Memory manager : tbbmalloc.dll Application Name : UTest.exe Compiler Version : Delphi Tokyo+ [VER330] JCL Version : 2.8.0 Build 5677 Indy Version : 10.6.2.0 Report Unique ID : {2350E01A-18BF-45E8-A20A-DC95B7C19733} Start Time : 2019-06-10 00:39:45.192 Exception Time : 2019-06-10 00:40:16.443 Application up time : 31 seconds 251 milliseconds =============================================================================== System : Windows Server 2016 Server, Version: 10.0, Build: 3839, "" Processor : AMD, AMD Athlon(tm) II P320 Dual-Core Processor, 2100 MHz MMX Display : 1680x1050 pixels, 32 bpp Total Physical Memory : 5.748 GB Free Physical Memory : 1.232 GB Working Set Memory : 160.309 MB =============================================================================== Exception class : EAssertionFailed Assertion failure (D:\Developer\Packages\Indy\Protocols\IdSSLOpenSSL.pas, line 2164) Exception address : 007703EB ------------------------------------------------------------------------------- Module : IdSSLOpenSSL Procedure : IdSSLOpenSSL.IdSslCryptoMallocInit Unit : IdSSLOpenSSL.pas Line : 2164 ------------------------------------------------------------------------------- [007703E6] IdSSLOpenSSL.IdSslCryptoMallocInit (Line 2164, "IdSSLOpenSSL.pas" + 2) + $15 [0040AC8D] System.@Assert (Line 24854, "System.pas" + 2) + $D [007703E6] IdSSLOpenSSL.IdSslCryptoMallocInit (Line 2164, "IdSSLOpenSSL.pas" + 2) + $15 [00770A91] IdSSLOpenSSL.LoadOpenSSLLibrary (Line 2368, "IdSSLOpenSSL.pas" + 14) + $0 [00973EB3] uNetwork.THTTPClient.Create (Line 632, "uNetwork.pas" + 1) + $0 Share this post Link to post
Stefan Glienke 2002 Posted June 11, 2019 What memory leak? That assert is telling you that CRYPTO_set_mem_functions returned 0 Share this post Link to post
Hafedh TRIMECHE 1 Posted June 11, 2019 Indeed CRYPTO_set_mem_functions is used to detect memory leaks but failed to be set at the first call to SSL initialization. Share this post Link to post