Skip to content

Using logging or warnings during Python finalization does crash Python #86374

@vstinner

Description

@vstinner
BPO 42208
Nosy @vstinner, @corona10, @miss-islington
PRs
  • bpo-42208: Pass tstate to _PyGC_CollectNoFail() #23038
  • bpo-42208: Move _PyImport_Cleanup() to pylifecycle.c #23040
  • bpo-42208: Fix test_gdb for gc_collect_main() name #23041
  • bpo-42208: GitHub Action: Add gdb to posix dependencies #23043
  • bpo-42208: Call GC collect earlier in PyInterpreterState_Clear() #23044
  • [3.9] bpo-42208: GitHub Action: Add gdb to posix dependencies (GH-23043) #23047
  • [3.8] bpo-42208: GitHub Action: Add gdb to posix dependencies (GH-23043) #23049
  • bpo-42208: Add _Py_GetLocaleEncoding() #23050
  • bpo-42208: Add _locale._get_locale_encoding() #23052
  • Files
  • logging.patch
  • crash.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 2020-10-31.00:33:13.309>
    created_at = <Date 2020-10-30.14:57:17.900>
    labels = ['interpreter-core', '3.10']
    title = 'Using logging or warnings during Python finalization does crash Python'
    updated_at = <Date 2020-10-31.00:33:13.309>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-10-31.00:33:13.309>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-31.00:33:13.309>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2020-10-30.14:57:17.900>
    creator = 'vstinner'
    dependencies = []
    files = ['49553', '49554']
    hgrepos = []
    issue_num = 42208
    keywords = ['patch']
    message_count = 11.0
    messages = ['379974', '379978', '379987', '379996', '379997', '380001', '380005', '380015', '380017', '380019', '380020']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'corona10', 'miss-islington']
    pr_nums = ['23038', '23040', '23041', '23043', '23044', '23047', '23049', '23050', '23052']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42208'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only 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