DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 553IwI0A4098174 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 553IwI0A4098174 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=oZ0GJA5/ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F25283858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1748977098; bh=eykGs6D5/uEtuqKLlck6SoFviJ5TLJH3cvSeNIITeeM=; h=Date:To:cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=oZ0GJA5/+crpDK0ag7aRK01UhBNBAiNlz3a0aEJCt6YbMbFHQBXGEa8Ja99vJ5QZi xMp6vmdLMpXWb6qnyo1PqzeU0CgsJbzvxSPdnIfAOn03pRs4GtB8Tq8s4TlY1OJd9v kibfK8FAqXAcGKfwEGH6e3ZJdwbrfle+z1BonWKs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDADB3858D34 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDADB3858D34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748977028; cv=none; b=vmPthtm4Dh981fP0w13NdPzqhHsgYn0zrufdEGxLzEUMEStBcbMrQEI/T5HtOB+2Q6udY74WjSHBCJzSL39Wy0RdI0r/rXgiIpqIDzsyNu3YSdPtW1AXM7xO7h+XSr+2xEyyrKwlwDIH/Veqeh0BhcZdi0oALQpmcjbG3+0I3Cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748977028; c=relaxed/simple; bh=/I5Mi+7Pr0ZfZ3HrwAqdpRwlSsSEMGMgWORYv92IPM8=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=g7WNPSWSFD1LIIvV34U83cuvMSlXqyg08yF6EPt6laU3UGzpIOUBsIZMw5rn56Xyng05idHCIn5i8H0B7f08l5vSGIRPrCPKWBhZLnz3ax0jzuX+MJKBdEWJWrwXehH9UmeTBkfceTPEHeEXJo0phVXhd5KOyE0uUY6ekgErJlw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDADB3858D34 Date: Tue, 3 Jun 2025 11:57:08 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: cygwin AT cygwin DOT com cc: Jon Turney Subject: Re: openssl and libcurl issue with cargo In-Reply-To: <0741f1a5-5585-f07c-fc0a-1a0def8020bd@jdrake.com> Message-ID: <08cd7bf0-a791-9821-408a-3edc6838731b@jdrake.com> References: <3a509f81-1b37-8625-7b3a-57b2027ccd66 AT jdrake DOT com> <083b5ba7-46c8-8780-d362-bea33f227cb9 AT jdrake DOT com> <874ix9gky6 DOT fsf AT Gerda DOT invalid> <0741f1a5-5585-f07c-fc0a-1a0def8020bd AT jdrake DOT com> MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Drake via Cygwin Reply-To: Jeremy Drake Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Tue, 3 Jun 2025, Jeremy Drake via Cygwin wrote: > On Sun, 1 Jun 2025, Jon Turney wrote: > > > 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). > > > > I opened a PR against curl, which was merged in > https://github.com/curl/curl/commit/7860f575fe9e527ced66b31ec076914bbadd64a4 Oops, wrong link, that should be https://github.com/curl/curl/commit/7a30481760f1f7bfb7928d0b22d49a5ae263386f -- 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