[Python-bugs-list] [ python-Bugs-426735 ] Threaded Python program hangs

noreply@sourceforge.net noreply@sourceforge.net
Wed, 23 May 2001 12:56:29 -0700


Bugs item #426735, was updated on 2001-05-23 12:56
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=426735&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Epler (jepler)
Assigned to: Nobody/Anonymous (nobody)
Summary: Threaded Python program hangs

Initial Comment:
import thread, os, time
thread.start_new_thread(os._exit, (1,))
time.sleep(1)
print "done"

The program never prints "done".

Python 2.1 (tummy RPM 2.1-4)
RedHat 6.2

strace of the main thread shows:
select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([]
... Python completes the time.sleep() call, and then
hangs waiting something.

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

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