[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

Michael J. Fromberger report at bugs.python.org
Sat Oct 17 18:47:42 CEST 2009


Michael J. Fromberger <michael.j.fromberger at gmail.com> added the comment:

I believe this error occurs because a pointer value is being truncated to 
32 bits.  The exception code is

KERN_INVALID_ADDRESS at 0x00000000002fe020

If you add a diagnostic printout to the body of get_message(), you will 
see that its return value is 0x1002fe020, so in other words, the high-
order word 0x00000001 is being discarded somewhere.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7160>
_______________________________________


More information about the Python-bugs-list mailing list