X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 16 Mar 2011 11:00:22 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Calling sem_wait() in DllMain( DLL_THREAD_DETACH) crashes
Message-ID: <20110316100022.GA26391@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4D7FB133.7030301@dronecode.org.uk> <20110315190733.GA23825@ednor.casa.cgf.cx> <4D7FC59F.6030901@cwilson.fastmail.fm> <20110315202816.GA8747@ednor.casa.cgf.cx> <4D7FD12F.1000200@dronecode.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4D7FD12F.1000200@dronecode.org.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar 15 20:50, Jon TURNEY wrote:
> I did read through the UG looking for a statement like that, but the only
> thing I found was the caveat about mixing POSIX and Win32 calls to set cwd.
> Perhaps I overlooked something, or maybe it would be good if that was more
> clearly documented.
> 
> >> However, it does seem that python (or one of its extensions) is doing
> >> something it shouldn't.
> 
> Given the above clarification about cygwin, this is a bug in libcrypto from
> OpenSSL (which tries to be portable to more than just POSIX, and has a
> DllMain() which is built for both cygwin and Win32), and a patch like that at
> [1] (or perhaps one which avoids DllMain on cygwin entirely) should be applied.

Thanks for the information.  I will look into getting rid of DllMain.
Just like in libiconv, there's no good reason to use this function in
a shared lib for Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

