[issue9185] os.getcwd causes infinite loop on solaris
report at bugs.python.org
Tue Jul 13 13:15:58 CEST 2010
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
Here's a patch. If PATH_MAX is defined, a static buffer is used. I left
the arbitrary path length version since apparently some systems (HURD)
don't have any limits for PATH_MAX.
In case anyone is mystified how to reproduce the original problem on
# This worked fine:
./python Lib/test/regrtest.py -uall test_posix
# This showed the bug:
The bug could also be reproduced by creating a path name longer than
1024 chars, changing into that directory and attempting to start python.
Antoine, could I ask you to comment on the patch?
keywords: +needs review, patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file17980/issue9185.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list