[Lldb-commits] [PATCH] D51569: Hold GIL while allocating memory for PythonString.

Tatyana Krasnukha via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 1 01:09:15 PDT 2018


tatyana-krasnukha created this revision.
tatyana-krasnukha added reviewers: clayborg, granata.enrico.
Herald added a subscriber: lldb-commits.

Swig wraps C++ code into `SWIG_PYTHON_THREAD_BEGIN_ALLOW; ...  SWIG_PYTHON_THREAD_END_ALLOW;` 
Thus, lldb crashs with "Fatal Python error: Python memory allocator called without holding the GIL" when calls `lldb_SB***___str__` function.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D51569

Files:
  scripts/Python/python-extensions.swig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51569.163620.patch
Type: text/x-patch
Size: 30996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180901/530006d5/attachment-0001.bin>


More information about the lldb-commits mailing list