[New-bugs-announce] [issue45262] crash if asyncio is used before and after re-initialization if using python embedded in an application
Benjamin Schiller
report at bugs.python.org
Wed Sep 22 04:32:26 EDT 2021
New submission from Benjamin Schiller <benjamin.schiller at vector.com>:
We have embedded Python in our application and we deinitialize/initialize the interpreter at some point of time. If a simple script with a thread that sleeps with asyncio.sleep is loaded before and after the re-initialization, then we get the following assertion in the second run of the python module:
"Assertion failed: Py_IS_TYPE(rl, &PyRunningLoopHolder_Type), file D:\a\1\s\Modules_asynciomodule.c, line 261"
Example to reproduce this crash: https://github.com/benjamin-sch/asyncio_crash_in_second_run
----------
components: asyncio
messages: 402412
nosy: asvetlov, benjamin-sch, yselivanov
priority: normal
severity: normal
status: open
title: crash if asyncio is used before and after re-initialization if using python embedded in an application
type: crash
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45262>
_______________________________________
More information about the New-bugs-announce
mailing list