[Python-Dev] bug in pythondotnet implementation. Maybe related to a bug in cpython implementation...help!!!!

Stan Pinte stan at phidani.be
Wed Mar 23 12:13:56 CET 2005


I would welcome any help regarding:

-how can I get/give more info on what's happening?
-how to solve that stuff?

thanks a lot in advance.

here is the problem:

I have a python (actually pythondotnet) process freezing on windows,
like that:

Thread Start Address:
>Symbol Name:			Line Number:		PC:
>mscoree!_CorExeMain() + 0x0	---			7917D08C
>Thread Stack:
>ntdll ! KiFastSystemCallRet() + 0x
>KERNEL32 ! WaitForSingleObject() + 0x12
>python24 ! PySys_WriteStderr() + 0x14d
>python24 ! PyTuple_Type() + 0x0

How can I know who's calling PyTuple_Type()???

see below for full description of my problem.

 am running Simpy (python simulation framework) within pythondotnet,
and, even though this process is single-thread, it hangs misteriously,
in an unpredictable way...

Python console cease to respond to Ctrl-C events...

Here is the current Thread status:

Thread Start Address:
Symbol Name:			Line Number:		PC:
mscoree!_CorExeMain() + 0x0	---			7917D08C

Thread Stack:

ntdll ! KiFastSystemCallRet() + 0x
KERNEL32 ! WaitForSingleObject() + 0x12
python24 ! PySys_WriteStderr() + 0x14d
python24 ! PyTuple_Type() + 0x0

as the entry point in the hanging thread (higher on stack) is
PyTuple_Type() and as PyTuple is defined in C# (src/runtime/PyTuple.cs),
I suspect this might be the cause of my problem.

[PythonNet-1.0-beta4]> grep -nr "PyTuple_Type" .
Binary file ./DLLs/_socket.pyd matches
Binary file ./python24.dll matches

However, I would like to be able to go higher in the stack, to see what
caused this deadlock.

Any proposed strategy to guess what happened, or to track down the problem?

thanks a lot,


More information about the Python-Dev mailing list