[issue43559] ctypes: Heap Pointer is damaged between C and Python
Canberk Sönmez
report at bugs.python.org
Fri Mar 19 14:19:33 EDT 2021
New submission from Canberk Sönmez <canberk.sonmez.409 at gmail.com>:
Please see the SO post:
https://stackoverflow.com/questions/66713071/ctypes-heap-pointer-is-damaged-between-c-and-python-linux-x86-64
In summary, when I return a pointer to a heap-allocated memory location from a C function, its most significant 32 bits are chopped off for some reason.
I observed this behavior in Python 3.7 and Python 3.8, on Ubuntu 18.04 and Centos 7 (x86_64).
----------
messages: 389107
nosy: canberk.sonmez.409
priority: normal
severity: normal
status: open
title: ctypes: Heap Pointer is damaged between C and Python
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43559>
_______________________________________
More information about the Python-bugs-list
mailing list