When using the SDSIO VSI3 Python interface, the FVP can terminate the embedded Python interpreter while SDSIO worker threads are still alive. This can abort the process with:
Fatal Python error: Py_EndInterpreter: not the last thread
Python runtime state: initialized
Thread ... (most recent call first):
File "/usr/lib/python3.12/threading.py", line 359 in wait
File ".../Board/Corstone-320/vsi/python/sdsio.py", line 95 in read
File ".../Board/Corstone-320/vsi/python/sdsio.py", line 377 in _file_write_worker
File "/usr/lib/python3.12/threading.py", line 1010 in run
File "/usr/lib/python3.12/threading.py", line 1073 in _bootstrap_inner
File "/usr/lib/python3.12/threading.py", line 1030 in _bootstrap
Current thread ...:
<no Python frame>
Extension modules: yaml._yaml (total: 1)
Aborted (core dumped)
Is there an existing issue for this?
Problem statement
When using the SDSIO VSI3 Python interface, the FVP can terminate the embedded Python interpreter while SDSIO worker threads are still alive. This can abort the process with:
Steps To Reproduce
vsi/python/arm_vsi3.py.