This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PySys_WriteStderr() -> WaitForSingleObject() hangs system
Type: behavior Stage:
Components: Windows Versions: 3rd party
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ajaksu2, stanpinte, terry.reedy
Priority: low Keywords:

Created on 2005-03-23 13:55 by stanpinte, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg60703 - (view) Author: stan pinte (stanpinte) Date: 2005-03-23 13:55
hello,

I am running Simpy (python simulation framework) within
pythondotnet (a slightly modified python version, based
on python2.4),
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

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,

Stan.
msg60704 - (view) Author: stan pinte (stanpinte) Date: 2005-03-23 15:28
Logged In: YES 
user_id=154693

 Hello!

I solved my problem by removing all references to
Queue.queue instances in my python code. --> my usage of
Queues was so heavy that it was triggering a nice bug in
python synchronization code.

I was pointed to threading issues by enabling full trace in
my python code, and some traces were showing code from
threading.py

thanks a lot anyway for the help.

Stan.
msg60705 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2005-03-30 18:45
Logged In: YES 
user_id=593130

Unless you claim/believe that there is a bug in unmodified 
CPython 2.4.1 (just released) please close this item.
msg82181 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-02-15 23:32
Unless someone can reproduce this in a recent CPython build, I'll close
this one soon.
msg82210 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2009-02-16 02:45
I should have closed this years ago due to lack of response.
Anyone with code that hangs CPython 2.6+ can reopen and post said code.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41747
2009-02-16 02:45:10terry.reedysetstatus: open -> closed
resolution: not a bug
messages: + msg82210
2009-02-15 23:32:47ajaksu2setpriority: normal -> low
type: behavior
messages: + msg82181
nosy: + ajaksu2
versions: + 3rd party, - Python 2.4
2005-03-23 13:55:02stanpintecreate