Skip to content

The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type #84398

@vstinner

Description

@vstinner
BPO 40217
Nosy @tim-one, @vstinner, @encukou, @ambv, @serhiy-storchaka, @corona10, @pablogsal, @miss-islington, @shihai1991
PRs
  • bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types #19414
  • bpo-40217: Clean code in PyType_FromSpec_Alloc and add NEWS entry #19733
  • bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) #20264
  • bpo-40217: Make heap types always visit Py_TYPE(self) from tp_traverse #20433
  • [3.9] bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264) #20490
  • Files
  • reproducer.c
  • 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 2020-06-01.07:35:10.755>
    created_at = <Date 2020-04-07.16:23:41.763>
    labels = ['interpreter-core', '3.9', 'release-blocker']
    title = "The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type"
    updated_at = <Date 2020-06-01.07:35:10.755>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-06-01.07:35:10.755>
    actor = 'petr.viktorin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-06-01.07:35:10.755>
    closer = 'petr.viktorin'
    components = ['Interpreter Core']
    creation = <Date 2020-04-07.16:23:41.763>
    creator = 'vstinner'
    dependencies = []
    files = ['49182']
    hgrepos = []
    issue_num = 40217
    keywords = ['patch']
    message_count = 44.0
    messages = ['365911', '365918', '365921', '365922', '365923', '365924', '365925', '365926', '365927', '365928', '365929', '365930', '365931', '365932', '365933', '365963', '365965', '367119', '367120', '367122', '367124', '367125', '367150', '367270', '367412', '367413', '367416', '367424', '367425', '367681', '368813', '369460', '369462', '369464', '369532', '369599', '369632', '369636', '369668', '369669', '369675', '369713', '370057', '370225']
    nosy_count = 9.0
    nosy_names = ['tim.peters', 'vstinner', 'petr.viktorin', 'lukasz.langa', 'serhiy.storchaka', 'corona10', 'pablogsal', 'miss-islington', 'shihai1991']
    pr_nums = ['19414', '19733', '20264', '20433', '20490']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40217'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions