www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/06/03/14:53:10

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 553Ir9kv4095925
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 553Ir9kv4095925
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=vdhQJ0Vj
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE319385829B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1748976789;
bh=dsB99tMny52DA24U6Mct0nSIRqKLVMxn/Z/PMlAv/Go=;
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=vdhQJ0VjET1im9eQgCZRwEGfjdgEWXEGHxRdAkfuT0+1j5fgH4IEf+drm1QE3GHJT
YN6GTLe9UyV+5wQdH37aN7uP4Gh0qb72O6uhJgnf03TltjdPFiGvjjRxXa0Q6PpVrG
ynxaGAInn6xnoZukAcnnm7OA+DE9VX+Za8erSD18=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 944CE3858D34
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 944CE3858D34
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748976702; cv=none;
b=mn3ReHC5TEbwXhZsvZS4vDPTB4o3vWW99ykbfsOhLCCEPtRJ4QheLcLW3I8UdHS/flLE/nq7xbXXhwpTNvwP/m2dgg4jJa9pJtGjJrgBh9dNQYvr947Kh7iKzLVIT0gsaBPEN/U/1BXrdbUyMlNa/ea4CPxZdkhSpn6BgJJxdGg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1748976702; c=relaxed/simple;
bh=D82blCDUSGJbmMZCadWXAAMkoXuHFORd7Qr2P+UlFXQ=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=IvNjb5xPSbtZhmU+5KQUQ3bL0NVKWteYQ8gIep1y6/+Cadf+PGnZvAeSHENoAwykRCfHtqNL17iwy0TOl+kFbA/wJec5Cq2fXxGbNDkMbKnH/KDemoodiZcuO3hSuBwZTAz6j4VTkxOoONCHwwUjJ4nQ/CXeQwTEEuViD2Wx6FY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 944CE3858D34
Date: Tue, 3 Jun 2025 11:51:41 -0700 (PDT)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
cc: cygwin AT cygwin DOT com
Subject: Re: openssl and libcurl issue with cargo
In-Reply-To: <f38d1b70-0b63-43c8-a4fc-d67406e48e70@dronecode.org.uk>
Message-ID: <0741f1a5-5585-f07c-fc0a-1a0def8020bd@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>
<ed3e772b-13da-54a1-e1c4-c927540ddf13 AT jdrake DOT com>
<f38d1b70-0b63-43c8-a4fc-d67406e48e70 AT dronecode DOT org DOT uk>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019