[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

Xiang Zhang report at bugs.python.org
Sat Aug 13 09:52:01 EDT 2016


Xiang Zhang added the comment:

Try Simon's snippet I think I am right.

With the current code, the result is:

1..1
Segmentation fault (core dumped)

With Py_INCREF:

1..1
ok 1 - was able to loop 100 times

I upload the working patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file44093/issue27736.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27736>
_______________________________________


More information about the Python-bugs-list mailing list