Skip to content

test_codecs leaks references #66362

@zware

Description

@zware
BPO 22166
Nosy @malemburg, @ncoghlan, @pitrou, @vstinner, @zware, @serhiy-storchaka, @matrixise
Files
  • issue22166_debugging_codec_test_leak.diff: Some ideas & tracemalloc hacks
  • issue22166_debugging_codec_test_leak_v2.diff: Display full tracebacks from tracemalloc
  • test_codecs_fix1.patch
  • issue22166_no_leaks_too_many_changes.diff: Removes leaks, but has unnecessary changes
  • issue22166_clear_internal_cache.diff: Minimal fix - just clears the internal cache via gc.get_referrers()
  • issue22166_with_forget_codec_helper_api.diff: Pop from internal cache via private _codecs._forget_codec API
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2019-03-20.02:49:33.324>
    created_at = <Date 2014-08-07.20:49:27.582>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = 'test_codecs leaks references'
    updated_at = <Date 2019-03-20.02:49:33.323>
    user = 'https://github.com/zware'

    bugs.python.org fields:

    activity = <Date 2019-03-20.02:49:33.323>
    actor = 'vstinner'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2019-03-20.02:49:33.324>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2014-08-07.20:49:27.582>
    creator = 'zach.ware'
    dependencies = []
    files = ['36362', '36363', '36524', '36559', '36560', '36563']
    hgrepos = []
    issue_num = 22166
    keywords = ['patch']
    message_count = 27.0
    messages = ['225040', '225263', '225268', '225270', '226252', '226253', '226254', '226259', '226262', '226485', '226486', '226488', '226489', '226490', '226494', '226505', '226512', '226513', '226520', '226911', '226914', '226915', '245897', '331925', '331967', '338026', '338437']
    nosy_count = 8.0
    nosy_names = ['lemburg', 'ncoghlan', 'pitrou', 'vstinner', 'python-dev', 'zach.ware', 'serhiy.storchaka', 'matrixise']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22166'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions