Skip to content

re.sub() leaks references #120244

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
neonene opened this issue Jun 7, 2024 · 0 comments
Closed

re.sub() leaks references #120244

neonene opened this issue Jun 7, 2024 · 0 comments
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@neonene
Copy link
Contributor

neonene commented Jun 7, 2024

Bug report

Bug description:

>python_d -X showrefcount -c "import re; re.sub(r'()', r'\1', '')"
[7140 refs, 4669 blocks]

_strptime is a module affected by this.

CPython versions tested on:

3.10, 3.11, 3.12, 3.13, CPython main branch

Operating systems tested on:

Windows

Linked PRs

@neonene neonene added the type-bug An unexpected behavior, bug, or error label Jun 7, 2024
@sobolevn sobolevn added the extension-modules C modules in the Modules dir label Jun 7, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 8, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 8, 2024
serhiy-storchaka pushed a commit that referenced this issue Jun 8, 2024
serhiy-storchaka pushed a commit that referenced this issue Jun 8, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants