jmahlik commented on issue #36980:
URL: https://github.com/apache/arrow/issues/36980#issuecomment-1892800241

   Looking at this a bit more, I wonder if 
[`PyAcquireGIL`](https://github.com/apache/arrow/blob/809244e4cb3dadc8742a891342feda4ef1b27e1a/python/pyarrow/src/arrow/python/common.h#L108)
 should be calling 
[`Py_IsInitialized`](https://docs.python.org/3/c-api/init.html#c.Py_IsInitialized)
 before `PyGILState_Ensure`/`PyGILState_Release`. Since this is potentially 
called in other destructors it may impact more than the numpybuffer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to