[issue39853] Segmentation fault with urllib.request.urlopen and threads
Gilles Duboscq
report at bugs.python.org
Thu Feb 18 12:13:02 EST 2021
Gilles Duboscq <gilles.m.duboscq at oracle.com> added the comment:
I'm not sure it's the same but we have seen stack traces looking like the one there: https://github.com/astropy/astropy/issues/9699
Current thread 0x00007fffa857e3c0 (most recent call first):
File "/sw/lib/python3.7/socket.py", line 748 in getaddrinfo
File "/sw/lib/python3.7/socket.py", line 707 in create_connection
File "/sw/lib/python3.7/http/client.py", line 938 in connect
File "/sw/lib/python3.7/http/client.py", line 966 in send
File "/sw/lib/python3.7/http/client.py", line 1026 in _send_output
File "/sw/lib/python3.7/http/client.py", line 1247 in endheaders
File "/sw/lib/python3.7/http/client.py", line 1298 in _send_request
File "/sw/lib/python3.7/http/client.py", line 1252 in request
For us it happens when using multiprocessing: the main process forks 2 processes and both use urlopen at roughly the same time. We are seeing this on Python 3.7.2 on macOS 10.14.3.
----------
nosy: +gilles-duboscq
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39853>
_______________________________________
More information about the Python-bugs-list
mailing list