New submission from kryheb :
Hi all,
I observed misbehavior trying to embed the Python interpreter into a C app.
It seems that after re-initialization, PyImport_Inittab is malformed and points
to the memory freed _PyImport_Fini2.
Steps to reproduce:
1. Append embedded module
2. Initialize
Change by kryheb :
--
keywords: +patch
pull_requests: +25353
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26767
___
Python tracker
<https://bugs.python.org/issu
kryheb added the comment:
Hi vstinner,
I apologize for the inaccurate code sample.
Please find a simplified example without threads `inittab-bug_no-threads.c` in
attachments. Please notice that __main__.py has changed, there is no infinite
loop anymore.
Steps to reproduce:
1. Append
kryheb added the comment:
Thanks vstinner for your help and for taking care of this case!
--
___
Python tracker
<https://bugs.python.org/issue1>
___
___