Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_functools sometimes leaks references #120163

Open
Eclips4 opened this issue Jun 6, 2024 · 3 comments
Open

test_functools sometimes leaks references #120163

Eclips4 opened this issue Jun 6, 2024 · 3 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Jun 6, 2024

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
@Eclips4 Eclips4 added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Jun 6, 2024
@Eclips4 Eclips4 changed the title test_functools leaks references Jun 6, 2024
@adiaholic
Copy link
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)

@adiaholic
Copy link
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 :)

@vstinner
Copy link
Member

Previous issue: #80741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
3 participants