Skip to content

test_peepholers leaks references (main branch) #129635

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

Closed
vstinner opened this issue Feb 4, 2025 · 2 comments
Closed

test_peepholers leaks references (main branch) #129635

vstinner opened this issue Feb 4, 2025 · 2 comments
Labels
3.14 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Feb 4, 2025

Bug report

Bug description:

Example:

$ ./python -m test -R 3:3 test_peepholer
(...)
test_peepholer leaked [46, 46, 46] references, sum=138
test_peepholer leaked [41, 41, 41] memory blocks, sum=123
(...)

Regression introduced by the change 0664c1a of #129568:

commit 0664c1af9b29a5af2404e04a522f8e9e175ba05a
Author: Yan Yanchii <yyanchiy@gmail.com>
Date:   Tue Feb 4 09:10:55 2025 +0100

    gh-126835: Move constant subscript folding to CFG (#129568)
    
    Move folding of constant subscription from AST optimizer to CFG.
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label Feb 4, 2025
@picnixz picnixz added interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.14 bugs and security fixes labels Feb 4, 2025
@picnixz
Copy link
Member

picnixz commented Feb 4, 2025

I think it's solved by #129634

@Eclips4
Copy link
Member

Eclips4 commented Feb 4, 2025

Fixed now. Sorry for the nose!

@Eclips4 Eclips4 closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants