X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <479A9A8F.9090106@kleckner.net> Date: Fri, 25 Jan 2008 18:27:27 -0800 From: Jim Kleckner Reply-To: cygwin AT cygwin DOT com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Threading issue in cygwin python 2.5.1-2 ? References: <46D8A577 DOT 1060908 AT kleckner DOT net> <46DF52B8 DOT 7000509 AT kleckner DOT net> <46DF9CAD DOT 6000503 AT kleckner DOT net> <46E01E3C DOT 7000506 AT cygwin DOT com> <46E02134 DOT 3030400 AT kleckner DOT net> <46E03EFD DOT 3040806 AT kleckner DOT net> <46E04E85 DOT 59E9E910 AT dessent DOT net> In-Reply-To: <46E04E85.59E9E910@dessent.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Brian Dessent wrote: > Jim Kleckner wrote: >> Running it with idle does give the exception dialog. >> >> I can't seem to grab hold of anything to get a traceback. >> Suggestions? >> > > Thanks for providing a testcase. Should be fixed in CVS: > I have a python application that works fine on Linux and Mac but fails with Cygwin. I tried using snapshot: cygwin-inst-20080122.tar.bz2 but it still fails. (In addition, stdout appears to not get flushed in that snapshot). Is it the case that the patch to the header file requires the recompilation of applications and libraries that use threading to make them work? See these messages for context: http://cygwin.com/ml/cygwin/2007-09/msg00120.html http://cygwin.com/ml/cygwin/2006-12/msg00451.html http://cygwin.com/ml/cygwin/2006-05/msg00125.html Thanks - Jim Note that there was a suspicious python test failure for test_wait4 with os.getpid() failing, but this may be unrelated. =============== /usr/lib/python2.5/test/testall.py partial output: test_wait4 Unhandled exception in thread started by > test_wait (test.test_wait4.Wait4Test) ... Traceback (most recent call last): File "./fork_wait.py", line 30, in f self.alive[id] = os.getpid() AttributeError: 'NoneType' object has no attribute 'getpid' Unhandled exception in thread started by > Traceback (most recent call last): File "./fork_wait.py", line 30, in f self.alive[id] = os.getpid() AttributeError: 'NoneType' object has no attribute 'getpid' Unhandled exception in thread started by > Traceback (most recent call last): File "./fork_wait.py", line 30, in f self.alive[id] = os.getpid() AttributeError: 'NoneType' object has no attribute 'getpid' Unhandled exception in thread started by > Traceback (most recent call last): File "./fork_wait.py", line 30, in f self.alive[id] = os.getpid() AttributeError: 'NoneType' object has no attribute 'getpid' FAIL ====================================================================== FAIL: test_wait (test.test_wait4.Wait4Test) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/python.6884/usr/lib/python2.5/test/fork_wait.py", line 75, in test_wait self.wait_impl(cpid) File "/tmp/python.6884/usr/lib/python2.5/test/test_wait4.py", line 29, in wait_impl self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8)) AssertionError: cause = 6, exit = 0 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/