Package: glibc
Version: 2.19-18+deb8u6

I am using Debian GNU/Linux 8.6 with a custom kernel [1] on a NXP T4240RDB [2] 
with a QorIQ T4240 PPC64 processor. There seems to be a bug in glibc. Many 
programs fail with "Illegal instruction". You can reproduce this issue with the 
packages gdb, python3 and python3-numpy:


$ python3
Python 3.4.2 (default, Oct  8 2014, 13:55:16) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Illegal instruction


$ gdb python3
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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 "powerpc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...Reading symbols from 
/usr/lib/debug//usr/bin/python3.4...done.
done.
(gdb) run
Starting program: /usr/bin/python3 
warning: Could not load shared library symbols for linux-vdso32.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".
Python 3.4.2 (default, Oct  8 2014, 13:55:16) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy

Program received signal SIGILL, Illegal instruction.
__ieee754_sqrt (__x=2147483647) at ../sysdeps/powerpc/fpu/math_private.h:44
44      ../sysdeps/powerpc/fpu/math_private.h: No such file or directory.
(gdb)


$ ldd --version
ldd (Debian GLIBC 2.19-18+deb8u6) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


[1] Linux debian 3.12.37-rt51-QorIQ-SDK-V1.8+gf488de6 #1 SMP Mon Oct 31 
13:46:34 CET 2016 ppc64
[2] 
http://www.nxp.com/products/microcontrollers-and-processors/power-architecture-processors/qoriq-platforms/t-series/qoriq-t4240-reference-design-board:T4240RDB


Kind regards

i.A. Matthias Müller 
Development 

IDS Imaging Development Systems GmbH 
Dimbacher Str. 6-8, D-74182 Obersulm, Germany 
Commercial Register: Stuttgart HRB 106225 
Management Board: Jürgen Hartmann, Daniel Seiler 

T: +49 7134 96196-0
F: +49 7134 96196-99
E: m.muel...@ids-imaging.de
Web: www.ids-imaging.com 

Reply via email to