Author shprotx
Recipients Johan Dahlin, db3l, emilyemorehouse, eric.snow, koobs, nascheme, ncoghlan, pmpp, serhiy.storchaka, shprotx, steve.dower, vstinner, yselivanov
Date 2019-05-18.10:48:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558176514.81.0.0503982949401.issue33608@roundup.psfhosted.org>
In-reply-to
Content
Also it might be viable to add some assertion to verify the take_gil is not called with uninitialized interpreter.
I used the changes in the attachment (take_gil.assert.patch), but it produced errors during test_tracemalloc with f13c5c8b9401a9dc19e95d8b420ee100ac022208 . It happens because, during startup with invalid arguments, the interpreter is finalized with pymain_main->pymain_free->_PyRuntime_Finalize before the error is printed. However, the problem seems to be fixed for me in the last revisions of master branch, so I upload the diff against it.
History
Date User Action Args
2019-05-18 10:48:34shprotxsetrecipients: + shprotx, nascheme, db3l, ncoghlan, vstinner, pmpp, eric.snow, serhiy.storchaka, yselivanov, koobs, steve.dower, emilyemorehouse, Johan Dahlin
2019-05-18 10:48:34shprotxsetmessageid: <1558176514.81.0.0503982949401.issue33608@roundup.psfhosted.org>
2019-05-18 10:48:34shprotxlinkissue33608 messages
2019-05-18 10:48:34shprotxcreate