python / python/cpython

socket.gethostbyname resolving octal IP addresses incorrectly

Open
#71,799 23 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.8 (EOL) 3.9 (EOL) OS-mac stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 27612
Nosy @ronaldoussoren, @vstinner, @ned-deily, @bitdancer, @koobs, @eryksun, @zhangyangyu, @mattrobenolt
Files
  • socket-test-freebsd-9-10-11-python-27-33-34-35.txt
  • 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 2016-07-25.06:27:54.049>
    labels = ['OS-mac', 'type-bug', '3.8', '3.9', '3.10', 'library']
    title = 'socket.gethostbyname resolving octal IP addresses incorrectly'
    updated_at = <Date 2021-02-26.19:10:57.163>
    user = 'https://github.com/mattrobenolt'
    

    bugs.python.org fields:

    activity = <Date 2021-02-26.19:10:57.163>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)', 'macOS']
    creation = <Date 2016-07-25.06:27:54.049>
    creator = 'mattrobenolt'
    dependencies = []
    files = ['43890']
    hgrepos = []
    issue_num = 27612
    keywords = []
    message_count = 20.0
    messages = ['271237', '271265', '271266', '271271', '271283', '271284', '271289', '271290', '271293', '271294', '271304', '271343', '271346', '271363', '271364', '271365', '271369', '271383', '271390', '387737']
    nosy_count = 8.0
    nosy_names = ['ronaldoussoren', 'vstinner', 'ned.deily', 'r.david.murray', 'koobs', 'eryksun', 'xiang.zhang', 'mattrobenolt']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27612'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start with the uploaded socket-test-freebsd-9-10-11-python-27-33-34-35.txt artifact and investigate the socket.gethostbyname entry point for the reported octal IP behavior. Review the issue discussion to establish the expected result, then add or update coverage so the behavior is verified across the affected Python versions and macOS context.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    networking
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.