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

2015-04-13 Thread R. David Murray

R. David Murray added the comment:

Arnon also checked that our local copy of libffi contains the upstream fix.  In 
the absence of a way to test this, we'll just have to assume it is fixed.

--
nosy: +r.david.murray
resolution:  - out of date
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16050
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2015-04-13 Thread Arnon Yaari

Arnon Yaari added the comment:

libffi seem to have fixed this issue in their commit 4acf005 - Build fix for 
soft-float power targets. The fix is different than what Pavel suggested, but 
sounds like it should do the same.

--
nosy: +wiggin15

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16050
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-10-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Pavel, I think the FFI we use is a direct copy of libffi. Could you contact 
upstream?.

--
nosy: +jcea

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-09-25 Thread Pavel Maltsev

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 rep...@bugs.python.org
http://bugs.python.org/issue16050
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com