Skip to content

test_functools sometimes leaks references #120163

Open

Description

@Eclips4

The text below is a part of the refleak tests, and unfortunately, I am unable to constantly reproduce it :(

0:13:26 load avg: 7.84 [201/478/1] test_functools failed (reference leak) -- running (3): test.test_multiprocessing_spawn.test_processes (7 min 14 sec), test_embed (1 min 12 sec), test_faulthandler (55.3 sec)
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XX1 111

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    on Jun 6, 2024
  2. changed the title [-]``test_functools`` leaks references[/-] [+]``test_functools`` sometimes leaks references[/+] on Jun 6, 2024
  3. adiaholic commented on Jun 6, 2024

    @adiaholic
    Contributor

    I was able to reproduce this:

    0:00:00 load avg: 1.70 Run 1 test sequentially in a single process 0:00:00 load avg: 1.70 [1/1] test_functools beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
    123:456
    XX. 3..
    test_functools leaked [3, 0, 0] memory blocks, sum=3 (this is fine)

  4. adiaholic commented on Jun 7, 2024

    @adiaholic
    Contributor

    @Eclips4, I stumbled upon this which suggests that this scenario might be false positive and an outcome of late initialization and not a real leak. Since it is false positive it is difficult to constantly reproduce it.
    If this needs further attention please let me know, I'm happy to look into it more if you suggest so :)

  5. vstinner commented on Jun 27, 2024

    @vstinner
    Member

    Previous issue: #80741

  6. vstinner commented on Aug 9, 2024

    @vstinner
    Member

    See also commit 5f660e8: fix for test_typing.

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

    testsTests 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