Dan Snider <mr.assume.a...@gmail.com> added the comment:

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.

----------
nosy: +bup

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to