Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_pidfd_send_signal can fail on some systems with PermissionError: [Errno 1] Operation not permitted #83338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pablogsal opened this issue Dec 29, 2019 · 3 comments

Comments

@pablogsal
Copy link
Member

BPO 39157
Nosy @pablogsal
PRs
  • bpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges to use pidfd #17740
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-12-29.20:51:55.546>
    labels = []
    title = 'test_pidfd_send_signal can fail on some systems with PermissionError: [Errno 1] Operation not permitted'
    updated_at = <Date 2019-12-29.21:36:03.103>
    user = 'https://github.com/pablogsal'

    bugs.python.org fields:

    activity = <Date 2019-12-29.21:36:03.103>
    actor = 'pablogsal'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2019-12-29.20:51:55.546>
    creator = 'pablogsal'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39157
    keywords = ['patch']
    message_count = 2.0
    messages = ['359004', '359006']
    nosy_count = 1.0
    nosy_names = ['pablogsal']
    pr_nums = ['17740']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue39157'
    versions = []

    @pablogsal
    Copy link
    Member Author

    ======================================================================
    FAIL: test_pidfd_send_signal (test.test_signal.PidfdSignalTest)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_signal.py", line 1287, in test_pidfd_send_signal
        self.assertEqual(cm.exception.errno, errno.EBADF)
    AssertionError: 1 != 9

    Example failure:

    https://buildbot.python.org/all/#/builders/231/builds/1/steps/5/logs/stdio

    We should skip the test if the syscall is not permitted

    @pablogsal
    Copy link
    Member Author

    New changeset 8f0703f by Pablo Galindo in branch 'master':
    bpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges to use pidfd (GH-17740)
    8f0703f

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @furkanonder
    Copy link
    Contributor

    The issue seems to be solved. I am closing the issue.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants