Author rpointel
Recipients rosslagerwall, rpointel
Date 2011-08-29.12:59:28
SpamBayes Score 0.00535539
Marked as misclassified No
Message-id <1314622769.4.0.308294190594.issue12852@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

thanks for your response.

Yes it always segfault:

$ ./python -c 'import os; print(os.fdlistdir(os.open("/tmp", os.O_RDONLY)))'
zsh: segmentation fault (core dumped)  ./python -c 'import os; print(os.fdlistdir(os.open("/tmp", os.O_RDONLY)))'

$ ./python -c 'import os; print(os.fdlistdir(os.open("/tmp/test_python", os.O_RDONLY)))'
zsh: segmentation fault (core dumped)  ./python -c 

$ ./python -c 'import os; print(os.fdlistdir(os.open("/var/tmp", os.O_RDONLY)))'
zsh: segmentation fault (core dumped)  ./python -c 'import os; print(os.fdlistdir(os.open("/var/tmp", os.O_RDONLY)))

With listdir it correctly works:

$ ./python -c 'import os; print(os.listdir("/tmp"))'                          
['.X11-unix', '.ICE-unix', 'test_python', 'tmpl80ewt', 'tmpled292']
[42658 refs]

$ ./python -c 'import os; print(os.listdir("/tmp/test_python/"))'
['1file', '2file', '3file']
[42658 refs]

$ ./python -c 'import os; print(os.listdir("/var/tmp/"))'        
['vi.recover', 'kdecache-remi']
[42658 refs]

Remi.
History
Date User Action Args
2011-08-29 12:59:29rpointelsetrecipients: + rpointel, rosslagerwall
2011-08-29 12:59:29rpointelsetmessageid: <1314622769.4.0.308294190594.issue12852@psf.upfronthosting.co.za>
2011-08-29 12:59:28rpointellinkissue12852 messages
2011-08-29 12:59:28rpointelcreate