Message363654
asyncio_gc.py: script to reproduce bpo-20526 (copied from there), but ported to Python 3.9 (replace asyncio.async with asyncio.ensure_future).
Sadly, Python with PR 18848 does crash when running asyncio_gc.py if I press CTRL+c twice:
* A thread does crash in _PyObject_GC_TRACK_impl() called indirectly by select_epoll_poll_impl(), in a Python thread
* while main thread is exiting Python: Py_FinalizeEx() is calling _PyImport_Cleanup() which blocks on take_gil()
It seems like the main thread does *not* hold the hold, the thread which crashed does.
It should not happen: _PyRuntimeState_SetFinalizing(runtime, tstate) has been called and so no other thread should be able to take the GIL anymore, but exit immediately. |
|
Date |
User |
Action |
Args |
2020-03-08 11:29:19 | vstinner | set | recipients:
+ vstinner, pitrou, Arfrever, neologix, python-dev, serhiy.storchaka, vajrasky |
2020-03-08 11:29:18 | vstinner | set | messageid: <1583666958.97.0.253833822545.issue19466@roundup.psfhosted.org> |
2020-03-08 11:29:18 | vstinner | link | issue19466 messages |
2020-03-08 11:29:18 | vstinner | create | |
|