[New-bugs-announce] [issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

David Schneider report at bugs.python.org
Sat Mar 30 14:47:30 CET 2013


New submission from David Schneider:

This issue affects C functions with many float/double arguments called through ctypes on ARM using the hardfloat ABI (i.e. the standard distribution for the raspberry pi uses hard-float).

Calling a C function using ctypes on ARM hard-float that takes a large number of float arguments (more than 16 floats or more than 8 doubles) corrupts the first float/double arguments passed on the stack to the called function. 

To check the issue run the following commands on an ARM hard-float system:
make
python bug.py

A patch for this issue has been accepted into libffi.

----------
components: ctypes
files: ctypes_arm.tar
messages: 185557
nosy: bivab
priority: normal
severity: normal
status: open
title: ctypes: ARM hardfloat argument corruption calling functions with many float arguments
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file29613/ctypes_arm.tar

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


More information about the New-bugs-announce mailing list