Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-38150 Fix refleak in the finalizer of a _testcapimodule type#16115

Merged
miss-islington merged 1 commit into
python:masterpython/cpython:masterfrom
eduardo-elizondo:fix-capi-leakseduardo-elizondo/cpython:fix-capi-leaksCopy head branch name to clipboard
Sep 13, 2019
Merged

bpo-38150 Fix refleak in the finalizer of a _testcapimodule type#16115
miss-islington merged 1 commit into
python:masterpython/cpython:masterfrom
eduardo-elizondo:fix-capi-leakseduardo-elizondo/cpython:fix-capi-leaksCopy head branch name to clipboard

Conversation

@eduardo-elizondo

@eduardo-elizondo eduardo-elizondo commented Sep 13, 2019

Copy link
Copy Markdown
Contributor

The PyLong created in the finalizer was not being cleaned up

https://bugs.python.org/issue38150

Automerge-Triggered-By: @matrixise

@eduardo-elizondo eduardo-elizondo changed the title bpo-38150 Fix refleak in the finalizer of a _testcapimodule type [WIP] bpo-38150 Fix refleak in the finalizer of a _testcapimodule type Sep 13, 2019
@eduardo-elizondo eduardo-elizondo changed the title [WIP] bpo-38150 Fix refleak in the finalizer of a _testcapimodule type bpo-38150 Fix refleak in the finalizer of a _testcapimodule type Sep 13, 2019
@eduardo-elizondo

Copy link
Copy Markdown
Contributor Author

Since the build bots don't run the test leaks, here's a local repro that is now working:

eelizondo@build -> ./python -m test test_capi -R 3:3 -m test.test_capi.CAPITest.test_c_subclass_of_heap_ctype_with_del_modifying_dunder_class_only_decrefs_once
Run tests sequentially
0:00:00 load avg: 1.63 [1/1] test_capi
beginning 6 repetitions
123456
......

== Tests result: SUCCESS ==

1 test OK.

Total duration: 147 ms
Tests result: SUCCESS

@matrixise

Copy link
Copy Markdown
Member

@eduardo-elizondo yep, I am waiting for the green lanterns from Travis and I will merge your PR. need to test on my laptop but it is already working on your PR ;-)

@matrixise

Copy link
Copy Markdown
Member

works fine on my laptop, need to wait for Travis

@miss-islington

Copy link
Copy Markdown
Contributor

@eduardo-elizondo: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit a67ac2f into python:master Sep 13, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @eduardo-elizondo for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @eduardo-elizondo, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker a67ac2f2d9550e5a36d28f9b6eeacf6575dda2d5 3.8

@miss-islington miss-islington self-assigned this Sep 13, 2019
matrixise pushed a commit to matrixise/cpython that referenced this pull request Sep 13, 2019
pythonGH-16115)

The PyLong created in the finalizer was not being cleaned up

https://bugs.python.org/issue38150

Automerge-Triggered-By: @matrixise
(cherry picked from commit a67ac2f)

Co-authored-by: Eddie Elizondo <eelizondo@fb.com>
@bedevere-bot

Copy link
Copy Markdown

GH-16118 is a backport of this pull request to the 3.8 branch.

matrixise added a commit that referenced this pull request Sep 13, 2019
…pe (GH-16115) (GH-16118)

The PyLong created in the finalizer was not being cleaned up

https://bugs.python.org/issue38150

Automerge-Triggered-By: @matrixise
(cherry picked from commit a67ac2f)

Co-authored-by: Eddie Elizondo <eelizondo@fb.com>
@eduardo-elizondo

Copy link
Copy Markdown
Contributor Author

@matrixise Thanks for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.