[issue33895] LoadLibraryExW called with GIL held can cause deadlock

Steve Dower report at bugs.python.org
Tue Jun 19 10:42:20 EDT 2018


Steve Dower <steve.dower at python.org> added the comment:

What about existing code that assumes the GIL is already held?

Also, your patch addresses many more situations than raised here, most of which are unnecessary (GetProcAddress and GetModuleHandle don't block in the way that LoadLibrary and FreeLibrary may).

Perhaps the application needs a way to terminate its threads cleanly, other than simply letting them exit and assuming it will be fine?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33895>
_______________________________________


More information about the Python-bugs-list mailing list