[New-bugs-announce] [issue40413] Py_RunMain() crashes on subsequence call

Gregory Szorc report at bugs.python.org
Mon Apr 27 21:54:31 EDT 2020


New submission from Gregory Szorc <gregory.szorc at gmail.com>:

I'm attempting to perform the following actions multiple times in a single process with CPython 3.8.2:

1) Initialize an interpreter using the PEP-587 APIs.
2) Call Py_RunMain() (which finalizes the interpreter).

However, I've encountered at least 2 crashes due to use-after-free or unchecked NULL access (due to apparent state getting funky).

Are multiple interpreters / Py_RunMain() calls in a single process supported? Should I file bugs for all of the crashes I encounter?

----------
components: C API
messages: 367479
nosy: indygreg, vstinner
priority: normal
severity: normal
status: open
title: Py_RunMain() crashes on subsequence call
type: crash
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40413>
_______________________________________


More information about the New-bugs-announce mailing list