[docs] [issue30574] Document why embedding the interpreter can sometimes crash.
Decorater
report at bugs.python.org
Mon Jun 5 09:47:58 EDT 2017
New submission from Decorater:
According to this example at https://docs.python.org/3/extending/embedding.html#very-high-level-embedding you can use something similar on embedding the interpreter.
However for some reason it can crash on Windows and probably some other platforms no matter what python code you enter in the string. I am currently getting that issue on Windows even with the python DLL's being in the same folder of the embedded executable it seems (when I open the crash dump in VS2010 express) that it tried to access an memory address that it has no permissions to.
However I have been thinking as to why that might be. The system should have plenty of memory left for it to allocate and run just fine unless it wants to use an already active python process (why would that be when other applications that embed the interpreter seem to work just fine).
I think documenting there on when and iff the compiled code crashes with suggestions on how to fix them would be best to do on the page.
it could be that the example actually compiles but does not work anymore too. But why would it be on the page if it would compile but crash on any string put into it? Something makes me think the crash is on the Py_DecodeLocale line with the size_t * param being NULL.
----------
assignee: docs at python
components: Documentation, Windows
messages: 295187
nosy: Decorater, docs at python, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Document why embedding the interpreter can sometimes crash.
versions: Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30574>
_______________________________________
More information about the docs
mailing list