[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-24 Thread kryheb
kryheb added the comment: Thanks vstinner for your help and for taking care of this case! -- ___ Python tracker <https://bugs.python.org/issue1> ___ ___

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread kryheb
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

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-17 Thread kryheb
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

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-17 Thread kryheb
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