X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4D7FD2D7.7030603@dronecode.org.uk>
Date: Tue, 15 Mar 2011 20:57:59 +0000
From: Jon TURNEY <jon.turney@dronecode.org.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Calling sem_wait() in DllMain( DLL_THREAD_DETACH) crashes
References: <4D7FB133.7030301@dronecode.org.uk> <20110315190733.GA23825@ednor.casa.cgf.cx> <4D7FC59F.6030901@cwilson.fastmail.fm> <20110315202816.GA8747@ednor.casa.cgf.cx> <4D7FCF36.5090802@cwilson.fastmail.fm>
In-Reply-To: <4D7FCF36.5090802@cwilson.fastmail.fm>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 15/03/2011 20:42, Charles Wilson wrote:
> Given that Jon mentioned other, similar reports, involving other
> libraries/extensions for python...I wonder if there's something in the
> core of python (e.g. "how to build an extension DLL: this glue code will
> be included in the xDLL automatically by pyDist::Builder [or whatever],
> defining a custom DllMain()...") that's doing something windows-ish,
> when it ought to be doing it unix-ish on cygwin.
> 
> E.g. I wonder if this is bigger than just Twisted, or just
> openssl+python/Lib/thread [1,2]  etc.

No, twisted is pure python.  But it uses the ssl python module, which uses
libcrypto library, which does this bad, bad thing.

Sorry for not making it clear in my original mail that the underlying cause is
the same in all cases.

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

