We are getting the core dumps while trying to execute python-2.5.1 ctypes test
cases in 64-bit mode in AIX 5.3 using xlc compiler.
First we applied this patch
http://gcc.gnu.org/bugzilla/attachment.cgi?id=15274&action=diff to libffi-3.0.8
for the support of 
64-bit libffi in AIX and we compiled the libffi, built the python-2.5.1 using
the configuration option --with-system-ffi,
then we tried to execute the test cases which are at "Lib/ctypes/test"
directory in the python source code.
Some of the test cases are dumping core, and the failures are

Segmentation fault in ffi_closure_helper_DARWIN at line 702 in file "" ($t1)
could not read "src/powerpc/ffi_darwin.c"

Segmentation fault in ffi_call_AIX at 0x9000000042db8e4 ($t1)
0x9000000042db8e4 (ffi_call_AIX+0xf4) ebfcfff8         ld   r31,-8(r28)

Segmentation fault in PyString_FromStringAndSize at 0x900000002c295ac ($t1)
0x900000002c295ac (PyString_FromStringAndSize+0x1ec) 881e0000        lbz  
r0,0x0(r30)

We did some analysis and it seems that the .ffi_closure_ASM code in
aix_closure.S file
is not doing correct stack progression.


Please let me know if you need any other info.

Thanks,
Sangamesh


-- 
           Summary: Core dumps while executing ctypes test cases of python-
                    2.5.1 in AIX 5.3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libffi
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: swamy dot sangamesh at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42423

Reply via email to