Threading issue in cygwin python 2.5.1-2 ?

Jim Kleckner
Thu Sep 6 17:55:00 GMT 2007

Jim Kleckner wrote:
> Larry Hall (Cygwin) wrote:
>> Steve Holden wrote:
>>> Igor Peshansky wrote:
>>>> On Wed, 5 Sep 2007, Steve Holden wrote:
>>>>>>> Running the example on the above Python system I just see the 
>>>>>>> command
>>>>>>> prompt return with no program output whatsoever:
>>>>>>> sholden@bigboy ~/Projects/Python
>>>>>>> $ /usr/bin/python
>>>>>> So it fails, but doesn't bring up the exception dialog.
>>>>> That's right: nothing at all. But note I compiled this particular 
>>>>> version
>>>>> myself, so I guess it's possible I didn't enable threads.
>>>> What's the exit code?  The behavior sounds suspiciously like a 
>>>> missing DLL
>>>> case...
>>> sholden@bigboy ~/Projects/Python
>>> $ /usr/bin/python
>>> sholden@bigboy ~/Projects/Python
>>> $ echo $?
>>> 0
>>> So, what does this tell us?
>> Everything is just perfect! ;-)
>> The value would be non-zero if it couldn't find a needed DLL.
> I also get 0 exit code even though there is a dialog box with the
> application error codes mentioned before.
> [jim@kleckner2 ~]$ python
> [jim@kleckner2 ~]$ echo $?
> 0
> [jim@kleckner2 ~]$

Ok, so I downloaded the python source and built a debug version
./configure --with-pydebug --prefix=$Prefix --mandir='${prefix}/share/man'

Now I run the example and similar to Steve it just exits with no dialog box.
With some extra print statements, it seems to disappear at the line:
         self.master.after(100, self.periodicCall)

Running this under gdb gives:

(gdb) run
Starting program: /usr/bin/python.exe
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/bin/libpython2.5.dll

Program exited with code 030000000005.

Running it with idle does give the exception dialog.

I can't seem to grab hold of anything to get a traceback.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>
-------------- next part --------------
Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list