delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/25/21:28:09

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 <jek-cygwin2 AT kleckner DOT net>
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> <fbo5p9$34n$1 AT sea DOT gmane DOT org> <46DF9CAD DOT 6000503 AT kleckner DOT net> <fbo7el$72j$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0709060944150 DOT 20529 AT access1 DOT cims DOT nyu DOT edu> <fbp2po$5mb$1 AT sea DOT gmane DOT org> <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>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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:
> <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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019