[issue3554] ctypes.wstring_at and string_at call Python API without the GIL
Thomas Heller
report at bugs.python.org
Thu Aug 14 21:06:46 CEST 2008
Thomas Heller <theller at ctypes.org> added the comment:
Good catch! Indeed, when PyString_FromString or PyUnicode_FromWideChar
fail, Python crashes with
Fatal Python error: PyThreadState_Get: no current thread
in a debug build, and an access violation in a release build (tested on
Windows).
Also, your patch suggestion is absolutely correct and fixes the problem.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3554>
_______________________________________
More information about the Python-bugs-list
mailing list