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.

Author nnorwitz
Recipients
Date 2003-07-10.04:25:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=33168

I changed the DELAY in the test to be zero.  The test fails,
but it's interesting that it also hangs in
lock_PyThread_acquire_lock (line 63):

Lib/threading.py (195): wait
Lib/threading.py (468): join
Lib/threading.py (564): __exitfunc
Lib/atexit.py (11): _run_exitfuncs

In looking at threadmodule.c I notice that most of the time 
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS is not used
around PyThread_acquire_lock, but it is in
lock_PyThread_acquire_lock.  I'm not sure all of these are safe.

Here's some more detail on the Sun:

test_socketserver
ADDR = ('localhost', 17231)
CLASS = SocketServer.ForkingTCPServer
server created
thread: creating server
server running
thread: serving three times
test client 0
Fatal Python error: Invalid thread state for this thread
History
Date User Action Args
2007-08-23 14:13:31adminlinkissue743692 messages
2007-08-23 14:13:31admincreate