Skip to content

Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal) #90607

@vstinner

Description

@vstinner
BPO 46449
Nosy @gvanrossum, @vstinner, @tiran, @ericsnowcurrently, @kumaraditya303
PRs
  • bpo-46449: Adjust refcnt for Py_INCREF/Py_DECREF on immortal code-objects #30976
  • bpo-46449: Fix refcount of deepfrozen code #30984
  • bpo-46449: add more assertions to verify that deepfreeze modules are finalized properly #30985
  • bpo-46449: use strong reference in deepfreeze modules  #30987
  • 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 2022-01-28.13:02:46.877>
    created_at = <Date 2022-01-21.03:02:06.727>
    labels = ['interpreter-core', '3.11']
    title = 'Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)'
    updated_at = <Date 2022-01-28.13:02:46.876>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-01-28.13:02:46.876>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-28.13:02:46.877>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2022-01-21.03:02:06.727>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46449
    keywords = ['patch']
    message_count = 21.0
    messages = ['411075', '411083', '411094', '411095', '411152', '411212', '411308', '411316', '411327', '411401', '411419', '411467', '411468', '411477', '411496', '411868', '411884', '411974', '411975', '411991', '411993']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'vstinner', 'christian.heimes', 'eric.snow', 'kumaraditya']
    pr_nums = ['30976', '30984', '30985', '30987']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46449'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions