[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

Kovid Goyal report at bugs.python.org
Sun Nov 29 01:49:52 EST 2015


Kovid Goyal added the comment:

I have it building with just two simple patches:

https://github.com/kovidgoyal/cpython/commit/fd1ceca4f21135f12ceb72f37d4ac5ea1576594d

https://github.com/kovidgoyal/cpython/commit/edb740218c04b38aa0f385188103100a972d608c

However, in developing the patches, I discovered what looks like a bug in the CRT close() function. If you double close a valid file descriptor it crashes, rather than calling the invalid parameter handler.

python -c "import os; os.close(2); os.close(2)"

crashes. This is true for python 2.7.10 built against VS 2008 as well. This contrasts with the behavior of double close() on other operating systems, where it sets errno to EBADF and does not crash.

I have not tested it with python 3.5, but I assume the bug is present there as well.

----------
components:  -Build, Windows

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


More information about the Python-bugs-list mailing list