Closed
Description
Crash report
What happened?
A debug build will abort when calling socket._fallback_socketpair()
after a call to socket.setdefaulttimeout
with too high a value:
python -c "import socket; socket.setdefaulttimeout(2**31) ; socket._fallback_socketpair()"
python: ./Modules/socketmodule.c:819: internal_select: Assertion `ms <= INT_MAX' failed.
Aborted (core dumped)
Found using fusil by @vstinner.
CPython versions tested on:
3.12, 3.13, 3.14, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.0+ (heads/3.13:7be8743, Nov 15 2024, 15:20:16) [GCC 13.2.0]
Linked PRs
- gh-126876: Fix socket internal_select() for large timeout #126968
- [3.13] gh-126876: Fix socket internal_select() for large timeout (GH-126968) #127002
- [3.12] gh-126876: Fix socket internal_select() for large timeout (GH-126968) #127003
- gh-126876: Fix test_socket.testLargeTimeout() for missing _testcapi #127517