This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin-sch
Recipients asvetlov, benjamin-sch, yselivanov
Date 2021-09-22.08:32:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632299546.72.0.498896278525.issue45262@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-09-22 08:32:26benjamin-schsetrecipients: + benjamin-sch, asvetlov, yselivanov
2021-09-22 08:32:26benjamin-schsetmessageid: <1632299546.72.0.498896278525.issue45262@roundup.psfhosted.org>
2021-09-22 08:32:26benjamin-schlinkissue45262 messages
2021-09-22 08:32:26benjamin-schcreate