GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [PPC64LE buildbots] test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41 · Issue #128116 · python/cpython

[PPC64LE buildbots] test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41 #128116

New issue
Copy link
New issue
Copy link
Closed
Closed
[PPC64LE buildbots] test_socket: VSOCK testStream(): recv fails with EACCES on Fedora 41#128116
Copy link

Description

@encukou
encukou
opened on Dec 20, 2024
Issue body actions

Example of failure: https://buildbot.python.org/#/builders/1467/builds/303/steps/6/logs/stdio

Traceback (most recent call last):
  File ".../Lib/test/test_socket.py", line 550, in testStream
    msg = self.conn.recv(1024)
PermissionError: [Errno 13] Permission denied

See also: #119461 (cc @vstinner)

Linked PRs

  • gh-128116: Skip test_socket VSOCK testStream() on PermissionError #128120
  • [3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) #128123
  • [3.12] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) #128124

Activity

  1. vstinner
    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
  2. vstinner commented on Dec 20, 2024

    @vstinner
    vstinner
    on Dec 20, 2024
    Member
    More actions

    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 -v
    

    I tried as the vstinner user, and as the buildbot user: the test succeed in both cases.

  3. vstinner commented on Dec 20, 2024

    @vstinner
    vstinner
    on Dec 20, 2024
    Member
    More actions

    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
  4. vstinner commented on Dec 20, 2024

    @vstinner
    vstinner
    on Dec 20, 2024
    Member
    More actions

    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.39
    

    First 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.40
    
  5. vstinner
    added a commit that references this issue on Dec 20, 2024

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionError

    e587ce5
  6. vstinner commented on Dec 20, 2024

    @vstinner
    vstinner
    on Dec 20, 2024
    Member
    More actions

    I wrote PR gh-128120 to skip the test is recv() fails with EACCESS.

  7. vstinner
    added a commit that references this issue on Dec 20, 2024

    gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#1…

    cbfe302
  8. miss-islington
    added a commit that references this issue on Dec 20, 2024

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionErr…

    4b3edad
  9. vstinner commented on Dec 20, 2024

    @vstinner
    vstinner
    on Dec 20, 2024
    Member
    More actions

    Fixed by change cbfe302. The backport to 3.13 will follow.

  10. miss-islington
    added a commit that references this issue on Dec 20, 2024

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionErr…

    19dc605
  11. vstinner
    closed this as completedon Dec 20, 2024
  12. vstinner
    added 2 commits that reference this issue on Dec 20, 2024

    [3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionEr…

    43586a4

    [3.12] gh-128116: Skip test_socket VSOCK testStream() on PermissionEr…

    23e8fc2
  13. srinivasreddy
    added a commit that references this issue on Dec 23, 2024

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionErr…

    e803dea
  14. srinivasreddy
    added a commit that references this issue on Jan 8, 2025

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionErr…

    47a6a27
  15. vstinner
    added a commit that references this issue on Jan 22, 2025

    pythongh-128116: Skip test_socket VSOCK testStream() on PermissionErr…

    bc8b07d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.