[New-bugs-announce] [issue16050] ctypes: callback from C++ to Python fails with Illegal Instruction call

Pavel Maltsev report at bugs.python.org
Wed Sep 26 02:22:35 CEST 2012


New submission from Pavel Maltsev:

ppc_405, Linux 2.4, GCC 3.3.1

Python crashes on attempt to pass python callback function to custom C++ library under PowerPC 405. This happens because some versions of GCC (I guess below 4.1) doesn't raise __NO_FPRS__ flag if hard-floats is not supported, instead they use _SOFT_FLOAT. So we need to change

#ifndef __NO_FPRS__
to
#if (!defined(__NO_FPRS__) && !defined(_SOFT_FLOAT))

----------
components: ctypes
files: soft_float.patch
keywords: patch
messages: 171325
nosy: Opilki_Inside
priority: normal
severity: normal
status: open
title: ctypes: callback from C++ to Python fails with Illegal Instruction call
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file27309/soft_float.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16050>
_______________________________________


More information about the New-bugs-announce mailing list