[Python-modules-team] Bug#774787: python-cffi: FTBFS on mips64el

James Cowgill james410 at cowgill.org.uk
Wed Jan 7 16:17:19 UTC 2015


Source: python-cffi
Version: 0.8.6-1
Severity: important

Hi,

python-cffi FTBFS on mips64el with a segfault in the testsuite:

> testing/test_verify.py ..........s.............s.........................................................s.................................................s
> testing/test_verify2.py ..........s.............s.........................................................s.................................................s
> testing/test_version.py .....
> Segmentation fault
> E: pybuild pybuild:256: test: plugin custom failed with: exit code=139: python2.7 -m pytest c/ testing/

I did a bit of debugging which tracked it down to a segfault within
function in the libffi mips backend, caused by the test
test_opaque_integer_as_function_result in test_verify.py

It looked like CFFI told libffi that the return type of the function was
a structure of size 2 but with no elements - that seems illegal to me.

I worked around it using the attached patch which disables the test on
mips64 systems. I'm not entirely sure this is the "right" thing to do
though since it does look like there's a bug here.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips64el-disable-broken-test.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150107/ee1e3c79/attachment.bin>


More information about the Python-modules-team mailing list