Open aisk opened 1 week ago
--disable-ipv6 must be specified when --with-thread-sanitizer is specified on my machine (Arch with Clang17)
Would you mind to elaborate?
I didn't dig too much, but ./configure --with-thread-sanitizer
on my machine will cause a:
configure: error: You must get working getaddrinfo() function or pass the "--disable-ipv6" option to configure.
Maybe it's caused by https://github.com/google/sanitizers/issues/1592
Do you want to work on a PR to skip some tests if IPv6 is disabled?
Do you want to work on a PR to skip some tests if IPv6 is disabled?
Working on it.
Bug report
Bug description:
There is a error sample:
This is caused by
SMTPServer
is usingsocket.getaddrinfo
to get the socket family, which also include IPv6 result even if IPv6 support is disabled, and it's value will be used tosocket.bind
:https://github.com/python/cpython/blob/6343486eb60ac5a9e15402a592298259c5afdee1/Lib/test/support/smtpd.py#L636-L638
--disable-ipv6
must be specified when--with-thread-sanitizer
is specified on my machine (Arch with Clang17), so I think it's better to fix it although--disable-ipv6
is not widely used.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs