DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54PFCIGs2397653
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 54PFCIGs2397653
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=tlHjc3Iz
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 136ED3858D26
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1748185937;
	bh=z18SH6kgBkzg+r+hGlfuIzzc0gmxI5wFgCttKGEH700=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=tlHjc3IzmaeKYRu5avKFq0U+/DJqUBqQqs2A1jU2vVDs3gX6WcteNhbaZPTUhYYxZ
	 7kCpmkcks9P65CFa4CqMk+a6ss1kiluFA8cm3c4g4m8kpQBu61yafpoyhtTHBL0Z+p
	 0ZPo6KyM3zLZc/sx1DX9mXOKsbcevLGAXAtj00r4=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 712FA3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 712FA3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748185912; cv=none;
 b=gOz5NvRkf1mQUvIz2wHrnQHEvQBWJ8tnlS9Yt6VCcankhTgZNYcbKZsZWetRytE/XssueDcFY5FHpS49MK2kbFCwF830dDQxZNKUPmQ/Q4V03iBQbUYpNpyp8LsW0CFaImGu4VLM7bT4QEz+eqhZOQbMTGSHGbRCQhZLJjwUsNI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1748185912; c=relaxed/simple;
 bh=kCwa71UMLKiVclzF9I2PC2S+zoyPPfjNcW0YV7Yue9k=;
 h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
 b=d/ZyJACarHA9OsjebrBbGmhoZR/sDX1LIy7K02MLjwHZur5NWRHN1KUgpiKBgh7fMS6gtPuAN67qTl4+s92GYcB2+NyKPXmhxmygxaQAP001Fj2cLC/wwuCjz5rAwoaMi2c/FSk9SaZ7BhK/IH+yJOlZ9tjEaEYhPApMsCsl+Ts=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 712FA3858D20
Message-ID: <a83064f3-800e-419c-afca-4791bf8328c0@SystematicSW.ab.ca>
Date: Sun, 25 May 2025 09:11:49 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: openssl and libcurl issue with cargo
Content-Language: en-CA
To: cygwin@cygwin.com
References: <3a509f81-1b37-8625-7b3a-57b2027ccd66@jdrake.com>
 <083b5ba7-46c8-8780-d362-bea33f227cb9@jdrake.com>
 <874ix9gky6.fsf@Gerda.invalid>
Organization: Systematic Software
In-Reply-To: <874ix9gky6.fsf@Gerda.invalid>
X-Rspamd-Queue-Id: 9E5F420025
X-Rspamd-Server: rspamout08
X-Stat-Signature: hhqbuhc9j43buse55t91jg3wxg1hpu47
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+nOE2T4D/QUwzv+nJ7WqCwrUYHl68ucr0=
X-HE-Tag: 1748185910-797410
X-HE-Meta: U2FsdGVkX1/j6sCVTe7qG2qUYpigBavn4yOsWW226Og9RRoLkTrHYKduoztPUj4LlcXUr6SNm8ZBN6eN34uqGbt/yKvVnFFA4gzejIeC4c1Yg4CXMGoho9yrNbv4hf9Z6DOBkKDoXMNq5/ko8CFl1vVOvnkWI5PfU7PT5Q6xIyYT4aLyTAavS1MrGDt9Mu0h4mM24bw+nH9wVmDEjqgV4o5Tbx/ZgL71TVTxUkzuL6w3sR+kooVqufSdBajBvXKZY6FoavouGb31F7wWAM43qvtgcsK0ztG7wyCoNagzrJnxpCuOczUUTCfI6MvopvUEI9RT4g4cFlYAtpOi+0pjU/IRHpIl8ZY8kjtagEpd6xlUn0WYsRItQfrY2uz3q+F/V+O1tumd5fB7jraw8/Zyjtr49+zSBCxSG2RyiA60/hsJGjHZV9fnTp06KME0GNpgjPgzcLqcCUWdESxHJv/8jiHUmqJdT0vd
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 54PFCIGs2397653

On 2025-05-25 02:21, 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.

We are now using totally different versions of OpenSSL with curl &c:

$ curl -V
curl 8.13.0 (x86_64-pc-cygwin) libcurl/8.13.0 OpenSSL/3.0.16 zlib/1.3.1 
brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 libssh2/1.11.0 
nghttp2/1.61.0 libgsasl/2.2.2 OpenLDAP/2.6.9
Release-Date: 2025-04-02
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns 
ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 
Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

So the issue still exists in Cygwin OpenSSL LTS 3.0.16-1 and ASSI/Stromeko has 
patched it in Cygwin OpenSSL 3.0.16-2 and mingw64-x86_64/i686-openssl 3.0.16-2 
test package releases:

	https://cygwin.com/pipermail/cygwin-announce/2025-May/012341.html

So please try installing the relevant Cygwin/Mingw64 OpenSSL test packages, with 
the latest curl packages, retest and report, if you don't mind.

Perhaps ASSI/Stromeko could push his test release 2 patch to his openssl repo 
playground branch:

	https://cygwin.com/git/?p=git/cygwin-packages/openssl.git

as we get 404 on:

https://cygwin.com/git/?p=git/cygwin-packages/openssl.git;h=refs/heads/playground

so we can confirm that what he actually changed was:

	"remove the ERR_remove_state() call in the DLL_THREAD_DETACH case"

or equivalent, as suggested in:

	https://cygwin.com/pipermail/cygwin/2011-March/194454.html

rather than other suggested hacks elsewhere or with libcurl?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

