[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-19 Thread Sylvestre Ledru via Phabricator via lldb-commits
sylvestre.ledru added a comment. Seems that it broke apt.llvm.org on ubuntu bionic with Python 3.6: I reported this issue: https://github.com/llvm/llvm-project/issues/53291 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114722/new/ https://reviews.l

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-17 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa6598575f4bc: [LLDB] Fix Python GIL-not-held issues (authored by rwgk, committed by labath). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114722/new/ https

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM Comment at: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:277-285 + if (_Py_IsFinalizing()) { +// Leak m_py_obj rather than

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-12 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 399302. labath added a comment. This just fixes the style issues. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114722/new/ https://reviews.llvm.org/D114722 Files: lldb/source/Plugins/ScriptInterpreter/Python

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-12 Thread Pavel Labath via Phabricator via lldb-commits
labath commandeered this revision. labath edited reviewers, added: rupprecht; removed: labath. labath added a reviewer: mib. labath added inline comments. Comment at: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:277-285 + if (_Py_IsFinalizing()) { +

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2022-01-10 Thread Jordan Rupprecht via Phabricator via lldb-commits
rupprecht updated this revision to Diff 398652. rupprecht added a comment. Rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114722/new/ https://reviews.llvm.org/D114722 Files: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cp

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2021-12-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a reviewer: JDevlieghere. labath added inline comments. Comment at: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h:101 + } else { +auto gstate = PyGILState_Ensure(); +Py_XDECREF(GetValue()); This usage of auto i

[Lldb-commits] [PATCH] D114722: [LLDB] Fix Python GIL-not-held issues

2021-11-29 Thread Jordan Rupprecht via Phabricator via lldb-commits
rupprecht created this revision. rupprecht added a reviewer: labath. rupprecht requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. The GIL must be held when calling any Python C API functions. In multithreaded applications that use callbacks t