This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients Thrameos, WildCard65, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-12-20.12:31:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608467471.77.0.174640270752.issue42529@roundup.psfhosted.org>
In-reply-to
Content
I doubt there's anything more we can do about Windows swallowing an access violation and turning it into a generic error. There's a very low chance you'd have found any notes about it in the docs, so this bug will probably stand as the best available reference for future.

We also can't really add more checks for every method that assumes the GIL is held, because that will hurt runtime performance for everyone. And I doubt even debug checks would help here - DLL load is pretty well protected, and there's really nothing but a debugger that can diagnose issues anyway. 

I've pushed back in the past on adding a "how to debug apps on Windows" section to our docs, because it is such a huge topic that we can't possibly cover well enough to be useful in all the cases that come up.

"Don't use functions that require the GIL without holding the GIL" is already documented generally enough. So I'm glad we got this figured out, but I'm not sure there's anything we can fix long-term to prevent it (other than entirely replacing the C API ;) ).
History
Date User Action Args
2020-12-20 12:31:11steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, eryksun, WildCard65, Thrameos
2020-12-20 12:31:11steve.dowersetmessageid: <1608467471.77.0.174640270752.issue42529@roundup.psfhosted.org>
2020-12-20 12:31:11steve.dowerlinkissue42529 messages
2020-12-20 12:31:11steve.dowercreate