Segmentation fault on Raspberry Pi

On my Raspberry Pi, I did a fresh install + apt update/upgrade.
I then installed the ZT Package from Zerotier-one.
After this, the service zerotier-one fails to start.
Actually, /sbin/zerotier-one abends with a segmentation fault.

root@raspberrypi:/etc/systemd# /usr/sbin/zerotier-one
Segmentation fault

Any work-around?

In general, you should manage the service with systemctl start zerotier-one It starts at boot, so running /usr/sbin/zerotier-one will try to start a second instance…

What model pi ? You might just need to reboot?

systemctl does actually call /usr/sbin/zerotier-one which them segfaults (as analyzed in my previous post).
This is a Pi 4 with a fresh install of raspbian .
I can reproduce this as follows:

  • do a fresh install of the Pi (raspbian lite)
  • apt update / upgrade
  • install zt
  • Then join a network
*** Success! You are ZeroTier address [ 5e129d4fdf ].
**pi@raspberrypi** : **~ $** sudo -s
root@raspberrypi:/home/pi# zerotier-cli status
200 info 5e129d4fdf 1.4.6 ONLINE
root@raspberrypi:/home/pi# zerotier-cli join a09acf0233bbbbbb
0 join
root@raspberrypi:/home/pi# zerotier-cli status
Error connecting to the ZeroTier service: connection failed
Please check that the service is running and that TCP port 9993 can be contacted via
root@raspberrypi:/home/pi# systemctl status zerotier-one
â—Ź zerotier-one.service - ZeroTier One
   Loaded: loaded (/lib/systemd/system/zerotier-one.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Fri 2020-11-20 09:00:50 GMT; 5min ago
  Process: 4208 ExecStart=/usr/sbin/zerotier-one (code=killed, signal=SEGV)
 Main PID: 4208 (code=killed, signal=SEGV)

Nov 20 09:00:50 raspberrypi systemd[1]: zerotier-one.service: Service RestartSec=100ms expired, scheduling restart.
Nov 20 09:00:50 raspberrypi systemd[1]: zerotier-one.service: Scheduled restart job, restart counter is at 6.
Nov 20 09:00:50 raspberrypi systemd[1]: Stopped ZeroTier One.
Nov 20 09:00:50 raspberrypi systemd[1]: zerotier-one.service: Start request repeated too quickly.
Nov 20 09:00:50 raspberrypi systemd[1]: zerotier-one.service: Failed with result 'signal'.
Nov 20 09:00:50 raspberrypi systemd[1]: Failed to start ZeroTier One.

After a reboot, all things turn green again:

root@raspberrypi:/home/pi# zerotier-cli listnetworks
200 listnetworks
200 listnetworks a09acf0233bbbbbb e2:9a:a3:ae:4d:10 ACCESS_DENIED PRIVATE ztukux5rwr -

Hmmm… I have zerotier running without problems in a lot of raspberrys. Faulty sd card maybe?

So it’s working after you rebooted?

Yes, after rebooting, it is working as expected!

1 Like

Looks like the “official install procedure” now comes with version 1.6 (rather than 1.4.6 before) and this one does not segfault anymore