[ python-Bugs-1169108 ] PySys_WriteStderr() -> WaitForSingleObject() hangs system

SourceForge.net noreply at sourceforge.net
Wed Mar 23 16:28:56 CET 2005


Bugs item #1169108, was opened at 2005-03-23 13:55
Message generated for change (Comment added) made by stanpinte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1169108&group_id=5470

Category: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: stan pinte (stanpinte)
Assigned to: Nobody/Anonymous (nobody)
Summary: PySys_WriteStderr() -> WaitForSingleObject() hangs system

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: stan pinte (stanpinte)
Date: 2005-03-23 15:28

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1169108&group_id=5470


More information about the Python-bugs-list mailing list