[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

STINNER Victor report at bugs.python.org
Thu Jul 2 11:34:48 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

I can reproduce the crash using the following script.py:
---
import gc; gc.set_threshold(5)
import sys

old_modules = dict(sys.modules)
sys.modules.clear()
sys.modules.update(old_modules)

import _ast
import gc
gc.collect()
---

And the command:
---
./python -i < script.py
---

PyInit__ast() is called twice. That's surprising: builtin extension modules should only be initialized once.

----------

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


More information about the Python-bugs-list mailing list