[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2022-01-23 Thread Xinmeng Xia
Xinmeng Xia added the comment: A simpler example to reproduce it: test.py import threading import ctypes from test import test_code def test_free_different_thread(): f = test_code.CoExtra().get_func() class ThreadTest(threading.Thread):

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2021-11-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2021-11-21 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code can lead to a crash and report Illegal instruction (core dumped)(few times) or Trace/breakpoint trap (core dumped) (very few times) or Segmentation fault (core dumped) (most times) on Python 3.11. test_free_different_thread.py