Xinmeng Xia <xi...@smail.nju.edu.cn> added the comment:

Thank you, but I don't think this is a duplicate of issue42717. This crash is 
probably caused by the parameter "target" of Thread. "Target" accept the 
"callable object". Defaults to None. In this program, it's assigned to a "Int 
object". I think a pre-checking of parameter for such error should be added. 



Minimal test case should be:
===============================
import threading
for i in range(10):
    t = threading.Thread(target=1, daemon=True).start()  
================================= 



In fact, I try this one. No loop, It sometime crashes the parser.(not always, 
twice in ten times)
==================================
import threading
t = threading.Thread(target=1, daemon=True).start()
==================================

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42763>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to