Skip to content

_tkinter leaks type references on initialization #123504

Closed

Description

@ZeroIntensity

Bug report

Bug description:

Reproducer:

$ ./python -Xshowrefcount -c "import tkinter"

Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization function, causing a double Py_INCREF.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added a commit that references this issue on Sep 3, 2024
  2. serhiy-storchaka commented on Sep 4, 2024

    @serhiy-storchaka
    Member

    #123505 was not correct. You need to:

    1. Restore m_size.
    2. Define m_travel.
  3. ZeroIntensity commented on Sep 4, 2024

    @ZeroIntensity
    MemberAuthor

    I'll submit a PR within in the hour, sorry!

  4. serhiy-storchaka commented on Sep 4, 2024

    @serhiy-storchaka
    Member

    It would also be nice if one of the subinterpreters experts would take a look at this change.

  5. added a commit that references this issue on Sep 4, 2024
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions