python3 3.9.18-1 hanging

Marco Atzeri marco.atzeri@gmail.com
Wed Jan 31 17:17:48 GMT 2024


On 31/01/2024 17:36, Eliah Kagan via Cygwin wrote:
> Hi,
> 

> 
> However, I was able to make a *fairly* simple script that reliably 
> produces it, at least on my machine (and on GitHub Actions runners). It 
> seems to me that this script may give some insight. In case it's useful:
> 
> import hashlib
> import threading
> import time
> t1 = threading.Thread(target=lambda: print("hello"))
> t2 = threading.Thread(target=lambda: print("goodbye"))
> t1.start()
> time.sleep(1)
> print("in between")
> t2.start()
> t1.join()
> t2.join()
> 
> The interesting thing here is that the `hashlib` import is required. 
> Even though that import is not used, the script does not trigger the 
> problem if it is removed.
> 
..

> 
> -Eliah
> 

Thanks Eliah,

for the detailed investigation

I will look on it, likely during the weekend

Regards
Marco



More information about the Cygwin mailing list