Skip to content

test_mmap are leaked #104698

Description

@Eclips4

Tried on current main branch.

 ./python -m test -R 3:3 test_mmap
Running Debug|x64 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test_mmap
beginning 6 repetitions
123456
......
test_mmap leaked [13, 13, 13] references, sum=39
test_mmap failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
    test_mmap

Total duration: 1.3 sec
Tests result: FAILURE

OS: Windows 10 & WSL Ubuntu 20.04

Linked PRs

Activity

  1. Eclips4 commented on May 20, 2023

    @Eclips4
    MemberAuthor

    PR which introduce it: #103990

  2. AlexWaygood commented on May 20, 2023

    @AlexWaygood
    Member

    PR which introduce it: #103990

    Cc. @Agent-Hellboy / @JelleZijlstra / @sunmy2019

  3. chgnrdv commented on May 20, 2023

    @chgnrdv
    Contributor

    It seems like Py_buffer in mmap_gfind, mmap_write_method and mmap_ass_subscript should be released if CHECK_VALID fails.

  4. Eclips4 commented on May 20, 2023

    @Eclips4
    MemberAuthor

    It seems like Py_buffer in mmap_gfind, mmap_write_method and mmap_ass_subscript should be released if CHECK_VALID fails.

    Yeah, you're right. I'll soon send a PR.

  5. sunmy2019 commented on May 20, 2023

    @sunmy2019
    Member

    It seems like Py_buffer in mmap_gfind, mmap_write_method and mmap_ass_subscript should be released if CHECK_VALID fails.

    Yeah, I forgot about it.

    I'll soon send a PR.

    Thanks!

  6. added a commit that references this issue on May 20, 2023
  7. JelleZijlstra commented on May 20, 2023

    @JelleZijlstra
    Member

    Sorry for this, should have run the refleak buildbots before merging. Thanks @chgnrdv for the diagnosis and @Eclips4 for the PR.

  8. added a commit that references this issue on May 21, 2023
  9. added a commit that references this issue on May 21, 2023
  10. added a commit that references this issue on May 21, 2023
  11. sunmy2019 commented on May 21, 2023

    @sunmy2019
    Member

    Sorry for this, should have run the refleak buildbots before merging.

    Can we make it mandatory?

  12. Eclips4 commented on May 21, 2023

    @Eclips4
    MemberAuthor

    Sorry for this, should have run the refleak buildbots before merging.

    Can we make it mandatory?

    I think, it's a good idea. Also, running refleak buildbots make sense in PR's which changes/adding C code. So, there need a check.

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

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions