Skip to content

Clear static types in Py_Finalize() for embedded Python #90575

Closed
@vstinner

Description

@vstinner
BPO 46417
Nosy @vstinner, @phsilva, @encukou, @corona10, @miss-islington, @shihai1991, @erlend-aasland, @kumaraditya303
PRs
  • bpo-46417: Finalize structseq types at exit #30645
  • bpo-46417: _testembed.c avoids Py_SetProgramName() #30732
  • bpo-46417: _thread module uses PyStructSequence_NewType() #30733
  • bpo-46417: time module uses PyStructSequence_NewType() #30734
  • bpo-46417: signal uses PyStructSequence_NewType() #30735
  • bpo-46417: _curses uses PyStructSequence_NewType() #30736
  • bpo-46417: Py_Finalize() clears static types #30743
  • bpo-46417: Call _PyDebug_PrintTotalRefs() later #30744
  • bpo-46417: Add missing types of _PyTypes_InitTypes() #30749
  • bpo-46417: Revert remove_subclass() change #30750
  • bpo-46417: Add _PyType_CAST() macro #30760
  • bpo-46417: Add _PyType_GetSubclasses() function #30761
  • bpo-46417: PyWeakref_GET_OBJECT() uses PyWeakref_CheckRef() #30763
  • bpo-46417: Use _PyType_CAST() in Objects directory #30764
  • bpo-46417: Use _PyType_CAST() in Python directory #30769
  • bpo-46417: Use _PyType_CAST() in Modules directory #30767
  • bpo-46417: Fix type recurse_down_subclasses() #30775
  • bpo-46417: Fix race condition on setting type __bases__ #30788
  • [3.10] bpo-46417: Fix race condition on setting type __bases__ (GH-30788) #30789
  • [3.9] bpo-46417: Fix race condition on setting type __bases__ (GH-30788) #30790
  • bpo-46417: Debug tp_subclasses crash #30791
  • bpo-46417: remove_subclass() clears tp_subclasses #30793
  • bpo-46417: Cleanup typeobject.c code #30795
  • bpo-46417: Clear more static types #30796
  • bpo-46417: _PyTypes_FiniTypes() clears object and type #30798
  • bpo-46417: Cleanup _PyExc_InitTypes() #30804
  • bpo-46417: Py_Finalize() clears static exceptioins #30805
  • bpo-46417: Clear Unicode static types at exit #30806
  • bpo-46417: Clear _io module static objects at exit #30807
  • bpo-46417: Clear symtable identifiers at exit #30809
  • bpo-46417: Fix _PyStaticType_Dealloc() #30810
  • bpo-46417: _PyList_Fini() clears indexerr #30815
  • bpo-46417: signal: move siginfo_type to the module state #30964
  • bpo-46417: _PyStructSequence_FiniType() updates _Py_RefTotal #30988
  • Files
  • cannot_deallocate.patch
  • cannot_deallocate2.patch
  • 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-27.20:22:54.970>
    created_at = <Date 2022-01-17.17:19:20.743>
    labels = ['interpreter-core', '3.11']
    title = 'Clear static types in Py_Finalize() for embedded Python'
    updated_at = <Date 2022-01-28.13:08:43.043>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-01-28.13:08:43.043>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-27.20:22:54.970>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2022-01-17.17:19:20.743>
    creator = 'vstinner'
    dependencies = []
    files = ['50576', '50577']
    hgrepos = []
    issue_num = 46417
    keywords = ['patch']
    message_count = 50.0
    messages = ['410808', '410858', '410866', '411025', '411033', '411049', '411063', '411064', '411066', '411070', '411071', '411073', '411076', '411077', '411117', '411118', '411122', '411127', '411139', '411143', '411148', '411182', '411201', '411202', '411203', '411232', '411255', '411256', '411257', '411263', '411271', '411272', '411275', '411276', '411281', '411290', '411291', '411292', '411296', '411300', '411303', '411304', '411305', '411307', '411317', '411329', '411332', '411917', '411918', '411994']
    nosy_count = 8.0
    nosy_names = ['vstinner', 'phsilva', 'petr.viktorin', 'corona10', 'miss-islington', 'shihai1991', 'erlendaasland', 'kumaraditya']
    pr_nums = ['30645', '30732', '30733', '30734', '30735', '30736', '30743', '30744', '30749', '30750', '30760', '30761', '30763', '30764', '30769', '30767', '30775', '30788', '30789', '30790', '30791', '30793', '30795', '30796', '30798', '30804', '30805', '30806', '30807', '30809', '30810', '30815', '30964', '30988']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46417'
    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