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 bup
Recipients bup, gregory.p.smith, iritkatriel, neologix, pitrou, serhiy.storchaka, sstewartgallus, vstinner
Date 2021-09-17.18:53:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631904786.36.0.533094118491.issue21627@roundup.psfhosted.org>
In-reply-to
Content
On Android, if os.close_range closes the file descriptor of the scandir iterator, the interpreter immediately crashes eg:

>>> import os
>>> os.scandir()
<posix.ScandirIterator object at 0x7082d6ef10>
>>> os.closerange(3,9999)
fdsan: attempted to close file descriptor 3, expected to be unowned, actually owned by DIR* 0x7263390290
Aborted
$

Sorry if this isn't an appropriate place to add this, but the title matched the concept I think and I don't know enough to judge whether this is something that needs to be fixed.
History
Date User Action Args
2021-09-17 18:53:06bupsetrecipients: + bup, gregory.p.smith, pitrou, vstinner, neologix, serhiy.storchaka, sstewartgallus, iritkatriel
2021-09-17 18:53:06bupsetmessageid: <1631904786.36.0.533094118491.issue21627@roundup.psfhosted.org>
2021-09-17 18:53:06buplinkissue21627 messages
2021-09-17 18:53:06bupcreate