From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15947 invoked by alias); 18 Dec 2009 03:57:46 -0000 Received: (qmail 15907 invoked by uid 48); 18 Dec 2009 03:57:33 -0000 Date: Fri, 18 Dec 2009 03:57:00 -0000 Subject: [Bug libffi/42423] New: Core dumps while executing ctypes test cases of python-2.5.1 in AIX 5.3 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "swamy dot sangamesh at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg01795.txt.bz2 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