Repository navigation
[PPC64LE buildbots] test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41 #128116
Copy link
Copy link
Closed
Closed
Copy link
Description
Activity
- changed the title
[-]test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41[/-][+][PPC64LE buildbots] test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41[/+]on Dec 20, 2024 I failed to reproduce the issue. I connected to the PPC64LE Fedora Stable buildbot, I built Python and ran:
./python -m test test_socket -m testStream -vI tried as the
vstinneruser, and as thebuildbotuser: the test succeed in both cases.Some logs on the buildbot:
vstinner@localhost:~/python/3.13$ ls -l /dev/vsock crw-rw-rw-. 1 root root 10, 60 Dec 18 21:14 /dev/vsock vstinner@localhost:~/python/3.13$ cat x.py import socket import fcntl import struct def get_cid(): if fcntl is None: print("a") return None if not hasattr(socket, 'IOCTL_VM_SOCKETS_GET_LOCAL_CID'): print("b") return None try: with open("/dev/vsock", "rb") as f: r = fcntl.ioctl(f, socket.IOCTL_VM_SOCKETS_GET_LOCAL_CID, " ") except OSError as exc: print("c", exc) return None else: return struct.unpack("I", r)[0] print("CID", get_cid()) vstinner@localhost:~/python/3.13$ ./python x.py CID 4294967295
Last success, Fedora 40 with glibc 2.39: https://buildbot.python.org/#/builders/90/builds/5363/
os.uname: posix.uname_result(sysname='Linux', nodename='localhost.localdomain', release='5.8.17-200.fc32.ppc64le', version='#1 SMP Thu Oct 29 18:00:08 UTC 2020', machine='ppc64le') platform.freedesktop_os_release[NAME]: Fedora Linux platform.freedesktop_os_release[VERSION]: 40 (Server Edition) platform.libc_ver: glibc 2.39 platform.platform: Linux-5.8.17-200.fc32.ppc64le-ppc64le-with-glibc2.39First error, Fedora 41 with glibc 2.40: https://buildbot.python.org/#/builders/90/builds/5364/
os.uname: posix.uname_result(sysname='Linux', nodename='localhost.localdomain', release='5.8.17-200.fc32.ppc64le', version='#1 SMP Thu Oct 29 18:00:08 UTC 2020', machine='ppc64le') platform.freedesktop_os_release[NAME]: Fedora Linux platform.freedesktop_os_release[VERSION]: 41 (Server Edition) platform.libc_ver: glibc 2.40 platform.platform: Linux-5.8.17-200.fc32.ppc64le-ppc64le-with-glibc2.40I wrote PR gh-128120 to skip the test is recv() fails with EACCESS.
- added a commit that references this issue
on Dec 20, 2024 Fixed by change cbfe302. The backport to 3.13 will follow.
Metadata
Metadata
Assignees
Labels
No labels
Example of failure: https://buildbot.python.org/#/builders/1467/builds/303/steps/6/logs/stdio
See also: #119461 (cc @vstinner)
Linked PRs