• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Illegal Instruction?
#1
I'm running pilight on a Rasbperry B+.

After upgrading to the latest version (7.0.205-g47af6ad) from the repo, the service didn't start up anymore. It turned out, that apparently the binaries are somewhat corrupted, because they all throw an error "illegal instruction":
Code:
pi@pilight:~ $ pilight-daemon
Ungültiger Maschinenbefehl
pi@pilight:~ $ pilight-debug
Ungültiger Maschinenbefehl
pi@pilight:~ $ pilight-send
Ungültiger Maschinenbefehl
pi@pilight:~ $ pilight-receive
Ungültiger Maschinenbefehl

Any idea what went wrong here?

Additional info:
Code:
pi@pilight:~ $ file /usr/local/sbin/pilight-daemon
/usr/local/sbin/pilight-daemon: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.18.24, stripped
 
Reply
#2
I have no clue:
Code:
root@pi ~ # apt-cache policy pilight | head
pilight:
  Installed: 7.0.205-g47af6ad
  Candidate: 7.0.205-g47af6ad
  Version table:
*** 7.0.205-g47af6ad 0
        500 http://apt.pilight.org/ nightly/main armhf Packages
        100 /var/lib/dpkg/status
     7.0.204-gac8dab8 0
        500 http://apt.pilight.org/ nightly/main armhf Packages
     7.0.202-g6e03cdd 0
root@pi ~ # pilight-daemon -V
pilight-daemon version v7.0-205-g47af6ad
root@pi ~ # file /usr/local/sbin/pilight-daemon
/usr/local/sbin/pilight-daemon: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.18.24, stripped
root@pi ~ # uname -a
Linux pi 4.9.30+ #1 SMP PREEMPT Sat May 27 19:19:23 CEST 2017 armv7l GNU/Linux
root@pi ~ # cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 1
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 2
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 3
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 38.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : BCM2835
Revision        : a01041
Serial          : 00000000xxxxxxxx
 
Reply
#3
Yours is a Raspberry 2, mine still a Raspberry 1 - which means that I'm still on ARM6, not on ARM7. Could this be the issue?

Code:
pi@pilight:~ $ uname -a
Linux pilight 4.9.30+ #1001 Fri May 26 16:03:39 BST 2017 armv6l GNU/Linux
 
Reply
#4
On a raspberry pi 1
Code:
root@raspberrypi:~# apt-cache policy pilight | head
pilight:
  Installed: 7.0.205-g47af6ad
  Candidate: 7.0.205-g47af6ad
  Version table:
*** 7.0.205-g47af6ad 0
        500 http://apt.pilight.org/ nightly/main armhf Packages
        100 /var/lib/dpkg/status
     7.0.204-gac8dab8 0
        500 http://apt.pilight.org/ nightly/main armhf Packages
     7.0.202-g6e03cdd 0
root@raspberrypi:~# pilight-daemon -V
pilight-daemon version v7.0-205-g47af6ad
root@raspberrypi:~# file /usr/local/sbin/pilight-daemon
/usr/local/sbin/pilight-daemon: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.18.24, stripped
root@raspberrypi:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 000e
Serial          : 00000000xxxxxxx

Can you check:
Code:
ldd /usr/local/sbin/pilight-daemon
Then check if one of the linked libraries is faulty:
Code:
.       /usr/lib/arm-linux-gnueabihf/libarmmem.so (0xb6f6d000)
        libpilight.so => /usr/local/lib/libpilight.so (0xb6738000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb671e000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb66a3000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb667b000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6664000)
        libwiringx.so => /usr/lib/libwiringx.so (0xb6639000)
        libmbedtls.so.10 => /usr/lib/arm-linux-gnueabihf/libmbedtls.so.10 (0xb6604000)
        libmbedcrypto.so.0 => /usr/lib/arm-linux-gnueabihf/libmbedcrypto.so.0 (0xb65ac000)
        libmbedx509.so.0 => /usr/lib/arm-linux-gnueabihf/libmbedx509.so.0 (0xb658b000)
        libpcap.so.0.8 => /usr/lib/arm-linux-gnueabihf/libpcap.so.0.8 (0xb6543000)
        libunwind.so.8 => /usr/lib/arm-linux-gnueabihf/libunwind.so.8 (0xb6502000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb63c1000)
        /lib/ld-linux-armhf.so.3 (0x7f560000)
        liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0xb639a000)
 
Reply
#5
They seem to be OK:
Code:
pi@pilight:~ $ ldd /usr/local/sbin/pilight-daemon
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0xb6fd2000)
        libpilight.so => /usr/local/lib/libpilight.so (0xb679d000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6781000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6706000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb66de000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb66c7000)
        libwiringx.so => /usr/lib/libwiringx.so (0xb669c000)
        libmbedtls.so.10 => /usr/lib/arm-linux-gnueabihf/libmbedtls.so.10 (0xb666e000)
        libmbedcrypto.so.0 => /usr/lib/arm-linux-gnueabihf/libmbedcrypto.so.0 (0xb6624000)
        libmbedx509.so.0 => /usr/lib/arm-linux-gnueabihf/libmbedx509.so.0 (0xb6604000)
        libpcap.so.0.8 => /usr/lib/arm-linux-gnueabihf/libpcap.so.0.8 (0xb65bc000)
        libunwind.so.8 => /usr/lib/arm-linux-gnueabihf/libunwind.so.8 (0xb657b000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb643a000)
        /lib/ld-linux-armhf.so.3 (0x7f585000)
        liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0xb6413000)
 
Reply
#6
Can you check if each of them have the correct architecture?
 
Reply
#7
Is the output of the file command what you need?

Code:
pi@pilight:~ $ file -L  /usr/lib/arm-linux-gnueabihf/libarmmem.so /usr/local/lib/libpilight.so /lib/arm-linux-gnueabihf/libdl.so.2 /lib/arm-linux-gnueabihf/libm.so.6 /lib/arm-linux-gnueabihf/libpthread.so.0 /lib/arm-linux-gnueabihf/librt.so.1 /usr/lib/libwiringx.so /usr/lib/arm-linux-gnueabihf/libmbedtls.so.10 /usr/lib/arm-linux-gnueabihf/libmbedcrypto.so.0 /usr/lib/arm-linux-gnueabihf/libmbedx509.so.0 /usr/lib/arm-linux-gnueabihf/libpcap.so.0.8 /usr/lib/arm-linux-gnueabihf/libunwind.so.8 /lib/arm-linux-gnueabihf/libc.so.6 /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/liblzma.so.5
/usr/lib/arm-linux-gnueabihf/libarmmem.so:       ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=b38a150702a3d9f4e2262e743aad5f620ce5b063, stripped
/usr/local/lib/libpilight.so:                    ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped
/lib/arm-linux-gnueabihf/libdl.so.2:             ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=e437be0a3cea9de237f4dd934267f9b500ddbe4c, for GNU/Linux 2.6.32, stripped
/lib/arm-linux-gnueabihf/libm.so.6:              ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=454c8146ad5c5389dadacae06bc16e556463f556, for GNU/Linux 2.6.32, stripped
/lib/arm-linux-gnueabihf/libpthread.so.0:        ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=059ee71bb96314be2d1aa8414a14086c77f29595, for GNU/Linux 2.6.32, not stripped
/lib/arm-linux-gnueabihf/librt.so.1:             ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ce4577032c0aeec2cc8f4401e946a9cdbdb84d64, for GNU/Linux 2.6.32, stripped
/usr/lib/libwiringx.so:                          ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped
/usr/lib/arm-linux-gnueabihf/libmbedtls.so.10:   ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=1a13d76ff13c7edae6fde912b82eef55c95df768, stripped
/usr/lib/arm-linux-gnueabihf/libmbedcrypto.so.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=c121945cb8c366f56d68de47754bf97553c89494, stripped
/usr/lib/arm-linux-gnueabihf/libmbedx509.so.0:   ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=5eac865bdbbb57956b91ca56bea7f55dad6dc2d2, stripped
/usr/lib/arm-linux-gnueabihf/libpcap.so.0.8:     ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=5217c0be450c4d8e92bf6943815b197a9dbaf4c8, stripped
/usr/lib/arm-linux-gnueabihf/libunwind.so.8:     ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=4c60270900bbb26e27cf50114ba0f896af19fe6a, stripped
/lib/arm-linux-gnueabihf/libc.so.6:              ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=603c0633140476187356ec0a51870173b98e6fb0, for GNU/Linux 2.6.32, stripped
/lib/ld-linux-armhf.so.3:                        ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=dbd1772f2d742d8c5c109e20e243fded1d6b6d0c, stripped
/lib/arm-linux-gnueabihf/liblzma.so.5:           ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=9f6753c275e50343d60c85a455fa943d426a0c42, stripped
 
Reply
#8
Have you tried reinstalling (on a fresh machine)?
 
Reply
#9
If I had one, I would...


In the meantime, I updated from Jessie to Stretch, and reinstalled pilight and its dependencies (sudo apt-get install --reinstall pilight pilight-webgui libunwind8 libpcap0.8 libmbedcrypto0 libmbedtls10 libmbedx509-0 libwiringx), but nothing changed. Maybe puging and reinstalling would be an idea?
 
Reply
#10
I have no clue. It works here on both my RPi 1 and 2.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Triggering generic_switch leads to segfault Ulrich.Arnold 19 1,866 10-23-2019, 09:03 AM
Last Post: Ulrich.Arnold
  ][solved]Segfault when retrieving big chunked http message Niek 21 6,416 11-29-2018, 03:17 PM
Last Post: curlymo
  [Solved] config.json not updated Niek 6 1,677 12-31-2017, 03:19 PM
Last Post: curlymo
  [Solved] callback not executing when dns lookup fails Niek 1 805 10-08-2017, 11:44 AM
Last Post: curlymo
  [Solved] Rules switching state based on another device state not working apartmedia 6 2,638 09-27-2017, 01:41 PM
Last Post: apartmedia
  [Solved] connection to main pilight daemon lost TopdRob 20 4,771 09-17-2017, 04:30 PM
Last Post: curlymo
  [Solved] dimmer protocol kaku_dimmer does not react on dimmervalue apartmedia 25 4,564 09-16-2017, 10:29 PM
Last Post: apartmedia
  [Solved] Webgui not working in IE Ulrich.Arnold 7 2,003 09-12-2017, 05:22 PM
Last Post: Ulrich.Arnold
  [Solved] Sunriseset v7 fails after update and gives negative values PPacman 7 1,840 09-06-2017, 06:25 PM
Last Post: curlymo
  [Solved] Nightly segfaults joe99 7 1,651 09-05-2017, 07:35 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)