Skip to content

test_class.TestInlineValues.test_detach_materialized_dict_no_memory leaks references #124722

Closed

Description

@mpage

Bug report

Bug description:

Refleaks tests are failing on main due to a leak from test_class.TestInlineValues.test_detach_materialized_dict_no_memory:

> ./python -m test -R 3:3 test_class --match test.test_class.TestInlineValues.test_detach_materialized_dict_no_memory
Using random seed: 1105673167
0:00:00 load avg: 1.71 Run 1 test sequentially in a single process
0:00:00 load avg: 1.71 [1/1] test_class
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XX1 111
test_class leaked [1, 1, 1] references, sum=3
test_class leaked [1, 1, 1] memory blocks, sum=3
test_class failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
    test_class

Total duration: 223 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered) failed=1
Result: FAILURE
>

That test was added in gh-124627.
cc @markshannon @DinoV

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Sep 28, 2024
  2. ZeroIntensity commented on Sep 29, 2024

    @ZeroIntensity
    Member

    I'll look into this soon. At a glance, the leak itself is probably not related to the PR.

  3. added a commit that references this issue on Sep 29, 2024
  4. sobolevn commented on Sep 29, 2024

    @sobolevn
    Member

    @ZeroIntensity sorry, I didn't write a message here. I was also working on this issue.
    Please, take a look at my PR: #124769

  5. added a commit that references this issue on Sep 29, 2024
  6. ZeroIntensity commented on Sep 29, 2024

    @ZeroIntensity
    Member

    Oh, perfect! I'll take a look at the PR.

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

    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