The attached diff fixes 2 python bugs. One is setting CCSHARED to -KPIC -zignore. This makes sure Python modules and libpython itself are PIC.
The other one is patching os.getcwd to avoid allocating more and more memory in an infinite loop. test_posix.py in the test suite tries to create a deeper and deeper directory structure until the maximum path length is reached. However, when it becomes too long and getcwd() returns ERANGE, os.getcwd allocates more and more memory in a loop, assuming that ERANGE was returned because the buffer is not large enough. Laca -------------- next part -------------- A non-text attachment was scrubbed... Name: p.diff Type: text/x-patch Size: 2575 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20090831/f52e56ea/attachment.bin>
