Clifford W Johnson added the comment:
Turns out the problem is really in the Sparc version of libffi -- the
ffi_closure_sparc_inner_v9 function in
Modules/_ctypes/libffi/src/sparc/ffi.c wasn't properly accounting for
the 16-byte alignment of a long double in an argument stack -- it
pre
Clifford W Johnson added the comment:
The following script (based on an extract of test_callbacks.py)
demonstrates the problem. When run on a Sparc-based Solaris 10
platform, the output shows correct operation only when the c_longdouble
arguments appear first in the function call -- the use of
Clifford W Johnson added the comment:
I get a nearly identical failure building Python 2.6.2 on a SPARC64
machine running Solaris 5.10 using GCC 4.1.1.
# ./python ./Lib/test/test_ctypes.py
...
test_longdouble (ctypes.test.test_callbacks.Callbacks) ... FAIL
Changes by Clifford W Johnson :
--
nosy: +JohnsonCW
___
Python tracker
<http://bugs.python.org/issue6029>
___
___
Python-bugs-list mailing list
Unsubscribe: