Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-99952: [ctypes] fix refcount issues in from_param() result.#100169
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
netlifybot commentedDec 11, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forpython-cpython-preview canceled.
|
ghost commentedDec 11, 2022 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
🚀 |
I am not comfortable enough judging if this is the best/correct fix, but it seems like something that@vstinner might enjoy having a look at. |
🎄 🎁 🧑🎄 🤶 |
dpy013 commentedJan 12, 2023
hello all |
junkmd commentedJan 14, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The absence of updates may be because the Looking at the PRs with the Triage and labeling to PRs seems to be done by@AlexWaygood. I hope that they are aware of this ping and will respond. |
This looks reasonable as far as I can tell, but unfortunately my expertise with |
Thanks everyone, this kind of bug can be particularly challenging to diagnose! |
Sorry,@ynkdir and@gpshead, I could not cleanly backport this to |
Sorry@ynkdir and@gpshead, I had trouble checking out the |
…esult. (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)Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
… result (#101339)[3.11]gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-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)Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
…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>
Thank you. |
…ython#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.
…param() result (GH-101339) (#101340)[3.11]gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-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>Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Fixes a reference counting issue with
ctypes.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.
ctypes.WINFUNCTYPE
works in Python3.7, does not work as same in newer Python #99952