[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

Ross Lagerwall report at bugs.python.org
Mon Aug 29 14:39:38 CEST 2011


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

Does it always segfault?

Try:
./python -c 'import os; print(os.fdlistdir(os.open("/tmp", os.O_RDONLY)))'

with various values for /tmp.

>From what I can see, the code for fdlistdir is basically the same as os.listdir().
If possible, try os.listdir() as well.

----------
nosy: +rosslagerwall

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12852>
_______________________________________


More information about the Python-bugs-list mailing list