This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Threading issue in cygwin python 2.5.1-2 ?


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: <http://www.cygwin.com/ml/cygwin-patches/2007-q3/msg00013.html>

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 <bound method Wait3Test.f of <test.test_wait3.Wait3Test testMethod=test_wait>>
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 <bound method Wait3Test.f of <test.test_wait3.Wait3Test testMethod=test_wait>>
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 <bound method Wait3Test.f of <test.test_wait3.Wait3Test testMethod=test_wait>>
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 <bound method Wait3Test.f of <test.test_wait3.Wait3Test testMethod=test_wait>>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]