Skip to content
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

transport.get_extra_info('sockname') of test_asyncio fails on AIX #78671

Closed
aixtools opened this issue Aug 24, 2018 · 5 comments
Closed

transport.get_extra_info('sockname') of test_asyncio fails on AIX #78671

aixtools opened this issue Aug 24, 2018 · 5 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@aixtools
Copy link
Contributor

BPO 34490
Nosy @asvetlov, @aixtools
PRs
  • bpo-34490: Fix test_asyncio for AIX - do not call transport.get_extra_info('sock… #8907
  • bpo-34490: Fix test_asyncio for AIX - do not call transport.get_extra_info('sock… #8907
  • [3.7] bpo-34490: Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (GH-8907) #9286
  • 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 = <Date 2018-09-13.23:37:06.582>
    created_at = <Date 2018-08-24.20:46:20.253>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = "transport.get_extra_info('sockname') of test_asyncio fails on AIX"
    updated_at = <Date 2019-03-11.21:44:20.325>
    user = 'https://github.com/aixtools'

    bugs.python.org fields:

    activity = <Date 2019-03-11.21:44:20.325>
    actor = 'Michael.Felt'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-09-13.23:37:06.582>
    closer = 'asvetlov'
    components = ['Tests']
    creation = <Date 2018-08-24.20:46:20.253>
    creator = 'Michael.Felt'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34490
    keywords = ['patch', 'patch']
    message_count = 5.0
    messages = ['324017', '324410', '325312', '337631', '337700']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'Michael.Felt']
    pr_nums = ['8907', '8907', '9286']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34490'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    @aixtools
    Copy link
    Contributor Author

    Inspired by msg211764, bpo-20682

    In short:
    For address family of AF_UNIX or AF_UNIX_CCSID, getsockname() returns 0 if issued before a bind(). The address length is 0. This is always the case for sockets created by socketpair().

    That is at least one possible explanation I found.

    Have tested on AIX 6.1 and AIX 7.1 - transport.get_extra_info('sockname') returns None

    @aixtools aixtools added 3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Aug 24, 2018
    @aixtools
    Copy link
    Contributor Author

    Even if it is just in the spirit of bpo-29972 I hope this can be given a quick review and have yet one less test failing on the AIX bots.

    @asvetlov
    Copy link
    Contributor

    New changeset d0491cd by Andrew Svetlov in branch '3.7':
    [3.7] bpo-34490: Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (GH-8907) (bpo-9286)
    d0491cd

    @aixtools
    Copy link
    Contributor Author

    Could this also be backported to Version 3.6?

    @aixtools
    Copy link
    Contributor Author

    On 10/03/2019 19:37, Michael Felt wrote:

    Michael Felt <aixtools@felt.demon.nl> added the comment:

    Could this also be backported to Version 3.6?
    Ignore this since 3.6 is in security mode.

    ----------
    versions: +Python 3.6


    Python tracker <report@bugs.python.org>
    <https://bugs.python.org/issue34490\>


    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants