Arch users - segfault caused by glibc bug after recent pacman -Suy

The issue is not caused by Everdo code, but may affect it, as well as many other apps built with electron, such as Visual Studio Code.

The symptoms include

  • the app refusing to run with “segmentation fault” error

More info

Temporary fix 1

Downgrade glibc using pacman. This may cause other packages to break.

Temporary fix 2

Patch affected executables. This one worked for me. Thanks almir.

# Download and extract glibc 2.27-3
curl -fSL https://archive.archlinux.org/repos/2018/08/01/core/os/x86_64/glibc-2.27-3-x86_64.pkg.tar.xz -o /tmp/glibc-2.27-3-x86_64.pkg.tar.xz
sudo mkdir /opt/glibc-2.27
sudo bsdtar xf /tmp/glibc-2.27-3-x86_64.pkg.tar.xz --cd /opt/glibc-2.27

# Install PatchELF package
sudo pacman -Sy patchelf

# Patch the Signal binary to point to glibc-2.27
sudo patchelf --set-interpreter /opt/glibc-2.27/usr/lib/ld-linux-x86-64.so.2 /opt/Everdo/everdo
sudo patchelf --set-rpath /opt/Everdo:/opt/glibc-2.27/usr/lib /opt/Everdo/everdo
sudo patchelf --shrink-rpath /opt/Everdo/everdo

A new build of glibc 2.28-4 came out, fixing the issue.