[Bug libffi/42423] Core dumps while executing ctypes test cases of python-2.5.1 in AIX 5.3

2010-01-12 Thread swamy dot sangamesh at gmail dot com


--- Comment #2 from swamy dot sangamesh at gmail dot com  2010-01-12 09:06 
---
No Failures are seen in latest libffi-3.0.9


-- 

swamy dot sangamesh at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WORKSFORME


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



[Bug libffi/42423] Core dumps while executing ctypes test cases of python-2.5.1 in AIX 5.3

2009-12-18 Thread swamy dot sangamesh at gmail dot com


--- Comment #1 from swamy dot sangamesh at gmail dot com  2009-12-18 12:30 
---
Created an attachment (id=19345)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19345&action=view)
stack-trace


-- 


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



[Bug libffi/42423] New: Core dumps while executing ctypes test cases of python-2.5.1 in AIX 5.3

2009-12-17 Thread swamy dot sangamesh at gmail dot com
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 0x900042db8e4 ($t1)
0x900042db8e4 (ffi_call_AIX+0xf4) ebfcfff8 ld   r31,-8(r28)

Segmentation fault in PyString_FromStringAndSize at 0x90002c295ac ($t1)
0x90002c295ac (PyString_FromStringAndSize+0x1ec) 881elbz  
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