openssl and libcurl issue with cargo

Jon Turney jon.turney@dronecode.org.uk
Sun Jun 1 12:41:52 GMT 2025


On 25/05/2025 17:53, Jeremy Drake via Cygwin wrote:
> On Sun, 25 May 2025, ASSI via Cygwin wrote:
> 
>> Jeremy Drake via Cygwin writes:
>>> Apparently the fix that MSYS2 made for openssl in
>>> https://github.com/msys2/MSYS2-packages/pull/3448  is also not present in
>>> Cygwin, so cargo continues to crash after I patched libcurl.
>>
>> I have the opposite view on crashing vs. leaking memory from openSSL,
>> but the just uploaded test release has the patch.
> 
> Lazka pointed out in
> https://github.com/msys2/MSYS2-packages/pull/3448#issuecomment-2907899110
> that openssl is using pthread tls destructors to do cleanup when
> available, so it may not actually be a leak on Cygwin.
Wow, that links back to [1]: Now I feel old.

[1] https://cygwin.com/pipermail/cygwin/2011-March/194414.html

Since I still have the "Building DLLs on Cygwin" part of the manual open 
in my editor, I guess maybe I should add "Don't try to use Cygwin's 
POSIX API inside the DllMain function" to that...

(and more generally, use POSIX mechanisms for initialization/cleanup on 
process/thread creation/destruction).



More information about the Cygwin mailing list