Skip to content

test_tkinter leaked [1, 1, 1] handles, sum=3 on AMD64 Windows Server 2025 Refleaks 3.x #163151

Backlog

Description

@vstinner

Bug report

AMD64 Windows Server 2025 Refleaks 3.x: https://buildbot.python.org/#/builders/2263/builds/613

test_tkinter leaked [1, 1, 1] handles, sum=3
1 test failed again:
    test_tkinter

See also fixed #161353: test_tcl also leaked a Windows handle. But the root issue of this bug is supposed to be fixed by commit f16b34a.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Activity

  1. added
    type-bug
    tests
    on Dec 4, 2026
  2. vstinner commented on Dec 4, 2026

    @vstinner
    MemberAuthor

    I'm unable to reproduce the issue on my Windows 11 VM using python -m test test_tkinter -R 3:3 -u all; Python built in debug mode (PCbuild\build.bat -e -d -p x64).

    test.pythoninfo:

    platform.architecture: 64bit WindowsPE
    platform.platform: Windows-11-10.0.26300-SP0
    
    tkinter.TCL_PATCH_LEVEL: 9.0.4
    tkinter.TK_PATCH_LEVEL: 9.0.4
    tkinter.info_patchlevel: 9.0.4
    
    windows.is_admin: True
    windows.oem_code_page: 437
    windows.ver: Microsoft Windows [Version 10.0.26300.9974]
    windows.version: 10.0.26300
    windows.version_caption: Microsoft Windows 11 Pro N
    
  3. vstinner commented on Dec 4, 2026

    @vstinner
    MemberAuthor

    AMD64 Windows Server 2025 Refleaks 3.x: https://buildbot.python.org/#/builders/2263/builds/613

    Oh. That build was run on commit 128b502: before commit f16b34a. So maybe the change will fix the issue. Let's see for the next Refleaks run next night.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsteststopic-tkintertype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions