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: thread join() with timeout hangs on Windows 2003 x64
Type: behavior Stage: test needed
Components: Interpreter Core, Windows Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, bentoi
Priority: normal Keywords:

Created on 2007-02-07 18:14 by bentoi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg31211 - (view) Author: bentoi (bentoi) Date: 2007-02-07 18:14
If join() is called on a thread which is alive with a timeout, it hangs for the duration of the timeout even if the thread terminated before. This appears to only happen on Windows 2003 x64.

Here's a test case:
---
#!/usr/bin/env python                                                           
                                                                                
from threading import Thread                                                    
import time                                                                     
                                                                                
class ReaderThread(Thread):                                                     
    def __init__(self):                                                         
        Thread.__init__(self)                                                   
                                                                                
    def run(self):                                                              
                                                                                
        print "sleeping"                                                        
        time.sleep(5)                                                           
        print "finished sleeping"                                               
                                                                                
                                                                                
thread = ReaderThread()                                                         
thread.start()                                                                  
print "joining..."                                                              
thread.join(60)                                                                 
print "joined"                                                                  
 ----
msg85303 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-04-03 12:59
I reproduce the problem with python 2.5, and it seems corrected with
python 2.6.1.
2.5 now only accept security fixes: closing as "out of date".
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44559
2009-04-03 12:59:08amaury.forgeotdarcsetstatus: open -> closed

nosy: + amaury.forgeotdarc
messages: + msg85303

resolution: out of date
2009-03-30 21:24:35ajaksu2setstage: test needed
type: behavior
components: + Windows
versions: + Python 2.6, - Python 2.5
2007-02-07 18:14:24bentoicreate