Stefan Behnel, 18.06.2012 19:04: > Amaury Forgeot d'Arc, 18.06.2012 16:51: >> 2012/6/18 Stefan Behnel >>> Amaury Forgeot d'Arc, 18.06.2012 16:02: >>>> 2012/6/18 Stefan Behnel >>>>> I'm getting reproducible segfaults in the PyThreadState_GetDict() >>>>> function with lxml. >>>> >>>> Is it similar to https://bugs.pypy.org/issue1175 ? >>>> "PyThread_{get, set, delete}_key_value should work without the GIL held" >>> >>> No. As I said, it has already acquired the GIL when it calls that function. >> >> OK, the answer is quite simple: >> PyGILState_Ensure() is not really implemented and just returns zero. > > Ah, hmmm. That's annoying. Threading is quite crucial for many use cases of > lxml. Is there a chance that this will become available soonish, or should > I just compile out threading support when building in PyPy? The code for > that is there anyway (although I haven't tried it in years...).
I disabled threading and it fixes a lot of crashes. Thanks for the hint. > Maybe PyPy should undefine the WITH_THREAD macro if it doesn't support > threading in C extensions anyway? ... or rather, behave as if WITH_THREAD was undefined and make the GIL handling macros dummies. Stefan _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
