Skip to content

Weakref proxy crashes on null tp_iternext slot. #88883

@xxm

Description

@xxm
mannequin
BPO 44720
Nosy @ambv, @miss-islington, @sweeneyde
PRs
  • bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ #27316
  • [3.10] bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) #27324
  • [3.9] bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) #27325
  • Files
  • test.py
  • 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 2021-07-24.09:46:50.166>
    created_at = <Date 2021-07-23.05:05:41.949>
    labels = ['interpreter-core', '3.8', '3.9', '3.10', '3.11', '3.7', 'type-crash']
    title = 'Weakref proxy crashes on null tp_iternext slot.'
    updated_at = <Date 2021-07-24.09:46:50.165>
    user = 'https://bugs.python.org/xxm'

    bugs.python.org fields:

    activity = <Date 2021-07-24.09:46:50.165>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-24.09:46:50.166>
    closer = 'lukasz.langa'
    components = ['Interpreter Core']
    creation = <Date 2021-07-23.05:05:41.949>
    creator = 'xxm'
    dependencies = []
    files = ['50171']
    hgrepos = []
    issue_num = 44720
    keywords = ['patch']
    message_count = 6.0
    messages = ['398029', '398114', '398127', '398131', '398132', '398133']
    nosy_count = 4.0
    nosy_names = ['lukasz.langa', 'miss-islington', 'Dennis Sweeney', 'xxm']
    pr_nums = ['27316', '27324', '27325']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue44720'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions