You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileIO.__init__ aborts when opener returns bad fd #82212
1000000 is not a valid fd. FileIO attempts to raise an IOError from errno, but there is already an exception set when PyErr_SetFromErrno uses PyObject_Call to create the exception.
Activity
tekknolagi commentedon Sep 4, 2019
On a debug build, the following causes an abort:
1000000 is not a valid fd. FileIO attempts to raise an IOError from errno, but there is already an exception set when PyErr_SetFromErrno uses PyObject_Call to create the exception.
ZackerySpytz commentedon Sep 5, 2019
Thank you for the report.
iritkatriel commentedon Oct 18, 2021
Reproduced on 3.11.
iritkatriel commentedon Nov 25, 2022
#99775 is a backport of this pull request to the 3.11 branch.
#99776 is a backport of this pull request to the 3.10 branch.