[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Python-modules-team] Bug#733517: FTBFS on Sparc and S390x



On Wed, 29 Jan 2014, Vincent Bernat wrote:
> > python-cffi unit tests are failing on sparc and s390x arch. You can
> > find a patch to fix some of the problems here:
> >  https://bitbucket.org/cffi/cffi/commits/f3dabd52fbeb54e814e14120cb27ceae3ad266ce

> > There is another problem on sparc that makes the build fail but it
> > succeeds on s390x. I still have to figure out the remaining bug on
> > sparc but it seems quite complex (and related to libffi).

> As sparc is about to be removed from supported architecture, I don't
> plan on working more on this. 

but if somebody would be interested/eager:  here is some details on that
SIGILL:

lingual(sid):~/deb/cffi/python-cffi-0.8.1
$> PYTHONPATH=$PWD/.pybuild/pythonX.Y_2.7/build gdb --args /usr/bin/python2.7 /usr/bin/py.test -x --pdb testing/test_verify.py
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/lib/debug/usr/bin/python2.7...done.
done.
(gdb) r
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0xf77ccddc in ?? () from /usr/lib/sparc-linux-gnu/libcrypto.so.1.0.0
(gdb) c
Continuing.
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2
collected 130 items 

testing/test_verify.py .........
Program received signal SIGILL, Illegal instruction.
0xf73b0a74 in _cffi_f_sinl (self=<optimized out>, arg0=0x0) at testing/__pycache__/_cffi__xcc453800x4b65e9f5.c:170
170       { result = sinl(x0); }
(gdb) print x0
$1 = 1.2299999999999999822364316059974954
(gdb) disassemble /m 0xf73b0a74
Dump of assembler code for function _cffi_f_sinl:
...
170       { result = sinl(x0); }
   0xf73b0a5c <+156>:   st  %i5, [ %sp + 0x40 ]
   0xf73b0a60 <+160>:   add  %fp, -48, %o0
   0xf73b0a64 <+164>:   std  %l0, [ %fp + -48 ]
   0xf73b0a68 <+168>:   std  %l2, [ %fp + -40 ]
   0xf73b0a6c <+172>:   call  0xf73c205c <sinl@plt>
   0xf73b0a70 <+176>:   nop
=> 0xf73b0a74 <+180>:   illtrap  0x10
   0xf73b0a78 <+184>:   ldd  [ %fp + -32 ], %i0
   0xf73b0a7c <+188>:   ldd  [ %fp + -24 ], %i2
   0xf73b0a84 <+196>:   std  %i0, [ %fp + -16 ]

-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Research Scientist,            Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


Reply to: