X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A67ED57.3070300@users.sourceforge.net> Date: Wed, 22 Jul 2009 23:55:51 -0500 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: python 2.6 References: <49688D6D DOT 9060108 AT gmail DOT com> <496BEB8D DOT 60802 AT gmail DOT com> <20090113171258 DOT GA1104 AT tishler DOT net> <49792F5F DOT 5020409 AT users DOT sourceforge DOT net> <20090126152024 DOT GC8368 AT tishler DOT net> In-Reply-To: <20090126152024.GC8368@tishler.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 26/01/2009 09:20, Jason Tishler wrote: > I don't know, but building Python 2.6 with openssl support causes the > treading related operations to core dump. Maybe this particular code > path tickles a problem in Cygwin? For some reason, Python 2.5.2 and 3.0 > do not exhibit the same behavior. It seems the correlation is that in 2.6, _ssl itself uses threads; in 2.5 it did not, but in 3.1 it does and those same tests pass, as they do if _ssl.dll is not present in 2.6. I don't know the cause but I did find an easy workaround: Forcefully disabling threads in _ssl.c by adding #undef WITH_THREAD immediately after #include "Python.h" creates a _ssl.dll that allows the tests to pass. While this may seem a bit crude, it's really the same situation that existed in 2.5, where the core is threaded and _ssl isn't thread-aware. As for updating Cygwin's python to 2.6, I see that 2.5 is the default version in stable and up, with 2.6/3.1 available only in experimental. I suggest we do similarly; leave the distro default at 2.5.4 (rebuilt for 1.7) and add non-default (IOW nothing non-versioned in /usr/bin) python2.6 and python3.1 packages for users to try. Yaakov -- 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