A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-December/123249.html below:

[Python-Dev] Possible GIL/threading issue involving subprocess and PyMem_MALLOC...

[Python-Dev] Possible GIL/threading issue involving subprocess and PyMem_MALLOC... [Python-Dev] Possible GIL/threading issue involving subprocess and PyMem_MALLOC...Antoine Pitrou solipsis at pitrou.net
Fri Dec 21 10:43:11 CET 2012
Le Fri, 21 Dec 2012 09:31:44 +0000,
Kristján Valur Jónsson <kristjan at ccpgames.com> a écrit :
> I ran into this the other day.  I had put in hooks in the
> PyMem_MALLOC to track memory per tasklet, and it crashed in those
> cases because it was being called without the GIL.  My local patch
> was simply to _not_ release the GIL. Clearly, calling PyMem_MALLOC
> without the GIL is an API violation.

Indeed, this deserves fixing.
(it would be better to still release the GIL around the low-level I/O
call, of course)

Thanks Trent for finding this!

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4