8000 bpo-37347: fix refcount problem in sqlite3 by gescheit · Pull Request #14268 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37347: fix refcount problem in sqlite3 #14268

8000 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

Merged
merged 4 commits into from
Jul 13, 2019

Conversation

gescheit
Copy link
Contributor
@gescheit gescheit commented Jun 20, 2019

fix refcount problem in sqlite3

https://bugs.python.org/issue37347

log = printer_instance.log
refcnt_before = sys.getrefcount(log)
method(log)
refcnt_after = sys.getrefcount(log)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try to avoid writing tests that use sys.getrefcount. Does this test fail if you pass -R :: to regrtest.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. But it can be rewritten to fall to segmentation fault.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. Not crashing is the behavior we want to test anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it is done in d1b57ff.

@benjaminp benjaminp merged commit b9a0376 into python:master Jul 13, 2019
@miss-islington
Copy link
Contributor

Thanks @gescheit for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 13, 2019
(cherry picked from commit b9a0376)

Co-authored-by: gescheit <gescheit@yandex-team.ru>
miss-islington added a commit that referenced this pull request Jul 13, 2019
(cherry picked from commit b9a0376)

Co-authored-by: gescheit <gescheit@yandex-team.ru>
coleifer added a commit to coleifer/pysqlite3 that referenced this pull request Jul 22, 2019
coleifer added a commit to coleifer/sqlcipher3 that referenced this pull request Jul 22, 2019
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0