Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[3.10] [3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (GH-101339)#101340

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 2 commits intopython:3.10frommiss-islington:backport-fa7c37a-3.10
Feb 4, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedJan 26, 2023
edited
Loading

[3.11]gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)

Fixes a reference counting issue withctypes.Structure when afrom_param() method call is used and the structure size is larger than a C pointersizeof(void*).

This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commitdfad678)

(cherry picked from commitfa7c37a)

Co-authored-by: Gregory P. Smithgreg@krypto.org
Co-authored-by: Yukihiro Nakadairayukihiro.nakadaira@gmail.com

Automerge-Triggered-By: GH:gpshead

…aram() result (pythonGH-101339)[3.11]pythongh-99952: [ctypes] fix refcount issues in from_param() result. (pythonGH-100169)Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..(cherry picked from commitdfad678)(cherry picked from commitfa7c37a)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
@miss-islington
Copy link
ContributorAuthor

Sorry, I can't merge this PR. Reason:3 of 6 required status checks are expected..

@gpsheadgpshead merged commitb134978 intopython:3.10Feb 4, 2023
@miss-islingtonmiss-islington deleted the backport-fa7c37a-3.10 branchFebruary 4, 2023 20:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadgpshead approved these changes

Assignees

@gpsheadgpshead

Labels
type-bugAn unexpected behavior, bug, or error
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@miss-islington@gpshead@bedevere-bot@kumaraditya303

[8]ページ先頭

©2009-2025 Movatter.jp