Comment 23 for bug 1264554

Revision history for this message
Martin Pitt (pitti) wrote :

Even faster:

$ python3.4 -W default -bb -E -R -m test -j 1 -v -m testRecvmsgPeek -uall,-network,-urlfetch,-gui test.test_socket

Attaching strace for one of the failed tests. The interesting part:

[pid 10253] socket(PF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 4
[pid 10253] bind(4, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
[pid 10253] getsockname(4, {sa_family=AF_INET6, sin6_port=htons(48419), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid 10253] getsockname(4, {sa_family=AF_INET6, sin6_port=htons(48419), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid 10253] recvmsg(4, <unfinished ...>
[pid 10253] <... recvmsg resumed> 0x7ffef846d890, MSG_PEEK) = -1 EFAULT (Bad address)

EFAULT is documented as "The receive buffer pointer(s) point outside the process's address space", hmm.