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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to