24th Feb, 2015, 06:43 AM
Raspberry Pi 2 B
16GB PNY MicroSD
Latest XBian image (as of 2-23-14)
I tried running sudo apt-get install python-rpi.gpio but it says it couldn't find the package. Ok... so I go grab the latest package online, run the python setup.py install from the downloaded RPi.GPIO (0.5.11) and it runs fine. I do the same for psutil (2.2.1).
I have a python script that uses RPi.GPIO and psutil to display information to a lcd screen I have mounted on the front of the case I have my RPi2 and hardware in.
I was previously using a RPiB+ and Raspbian and the script was working just fine. After moving to the RPi2B and XBian (because Raspbmc isn't supported on the RPi2B), the python script segfaults when run.
I have the script on PasteBin if anyone wants to take a look... It's not purdy, but it works.
EDIT: I ran a gdb backtrace on it and this is what I got:
16GB PNY MicroSD
Latest XBian image (as of 2-23-14)
I tried running sudo apt-get install python-rpi.gpio but it says it couldn't find the package. Ok... so I go grab the latest package online, run the python setup.py install from the downloaded RPi.GPIO (0.5.11) and it runs fine. I do the same for psutil (2.2.1).
I have a python script that uses RPi.GPIO and psutil to display information to a lcd screen I have mounted on the front of the case I have my RPi2 and hardware in.
I was previously using a RPiB+ and Raspbian and the script was working just fine. After moving to the RPi2B and XBian (because Raspbmc isn't supported on the RPi2B), the python script segfaults when run.
I have the script on PasteBin if anyone wants to take a look... It's not purdy, but it works.
EDIT: I ran a gdb backtrace on it and this is what I got:
Terminal
sudo gdb python
GNU gdb (GDB) 7.4.1-debian
Copyright © 2012 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 "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.7...done.
done.
(gdb) run smallfont_test.py
Starting program: /usr/bin/python smallfont_test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x7698c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) backtrace
#0 0x7698c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#1 0x76989004 in OPENSSL_cpuid_setup () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2 0x76fe8254 in ?? () from /lib/ld-linux-armhf.so.3
#3 0x0037a848 in ?? ()
#4 0x0037a848 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
GNU gdb (GDB) 7.4.1-debian
Copyright © 2012 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 "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.7...done.
done.
(gdb) run smallfont_test.py
Starting program: /usr/bin/python smallfont_test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x7698c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) backtrace
#0 0x7698c608 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#1 0x76989004 in OPENSSL_cpuid_setup () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
#2 0x76fe8254 in ?? () from /lib/ld-linux-armhf.so.3
#3 0x0037a848 in ?? ()
#4 0x0037a848 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)