Message387249
"Segmentation fault with (...) threads (...) getaddrinfo"
Aha, another victim on a getaddrinfo() implementation which is not thread safe.
See this code in Modules/socketmodule.c:
/* Lock to allow python interpreter to continue, but only allow one
thread to be in gethostbyname or getaddrinfo */
#if defined(USE_GETHOSTBYNAME_LOCK)
static PyThread_type_lock netdb_lock;
#endif
Can you please check if your Python was built with HAVE_GETHOSTBYNAME_R?
$ python3
Python 3.9.1 (default, Jan 20 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
>>> import sysconfig; repr(sysconfig.get_config_var('HAVE_GETHOSTBYNAME_R'))
'1'
Modules/socketmodule.c is full of #ifdef involving macOS... |
|
Date |
User |
Action |
Args |
2021-02-18 17:27:42 | vstinner | set | recipients:
+ vstinner, Manjusaka, Anne Archibald, gilles-duboscq |
2021-02-18 17:27:42 | vstinner | set | messageid: <1613669262.04.0.536626160028.issue39853@roundup.psfhosted.org> |
2021-02-18 17:27:42 | vstinner | link | issue39853 messages |
2021-02-18 17:27:41 | vstinner | create | |
|