Visitar URL original
test_pickle are leaked on Windows · Issue #104702 · python/cpython · GitHub
Skip to content

test_pickle are leaked on Windows #104702

Description

@Eclips4

Tried on current main branch.

./python -m test -R 3:3 test_pickle
Running Debug|x64 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test_pickle
beginning 6 repetitions
123456
......
test_pickle leaked [13, 12, 173] references, sum=198
test_pickle leaked [11, 12, 113] memory blocks, sum=136
test_pickle failed (reference leak) in 4 min 30 sec

== Tests result: FAILURE ==

1 test failed:
    test_pickle

Total duration: 4 min 30 sec
Tests result: FAILURE

Also, I cannot reproduce it in Linux (WSL, Ubuntu 20.04)

Linked PRs

Activity

  1. Eclips4 commented on May 21, 2023

    @Eclips4
    MemberAuthor

    Fantastic... I can't reproduce it anymore. I just try found bad commit using git bisect...
    But I've found reference leak in another way.

     ./python -m test -R 3:3 test_pickle -m PyUnpicklerTests
    Running Debug|x64 interpreter...
    0:00:00 Run tests sequentially
    0:00:00 [1/1] test_pickle
    beginning 6 repetitions
    123456
    ......
    test_pickle leaked [4, 4, 4] references, sum=12
    test_pickle leaked [4, 4, 4] memory blocks, sum=12
    test_pickle failed (reference leak)
    
    == Tests result: FAILURE ==
    
    1 test failed:
        test_pickle
    
    Total duration: 908 ms
    Tests result: FAILURE
  2. Eclips4 commented on May 21, 2023

    @Eclips4
    MemberAuthor

    First bad commit: #94504
    Also, I know about some refleaks in test_import. (#102251)
    What is the relationship with this issue and test_import issue?
    Seems that both introduced in #94504 PR.

  3. sunmy2019 commented on May 21, 2023

    @sunmy2019
    Member

    Seems all ref leaks come from test_unpickle_module_race

    If this test is removed from AbstractUnpickleTests, all ref leaks are gone.

  4. added a commit that references this issue on Aug 29, 2023
  5. added a commit that references this issue on Aug 29, 2023
  6. added a commit that references this issue on Aug 29, 2023
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-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions