-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glibc 2.28 crash on Arch Linux [signal-desktop-bin, .deb binary] #2600
Comments
I'm able to reproduce the same "Segmentation Fault" using the 1.15.0-beta.10 version of Signal-Desktop. It happened after of last electron update 2.0.6.
Here is the coredump: https://gist.github.com/Edu4rdSHL/d97a4c8d8df3672c6768913dba375a33 |
I'm not sure, it worked fine until.. yesterday or so. It might be a dependency in my case. |
@lnicola the last electron update break signal, though. |
This happens on |
I'm getting this issue too. |
It's not the electron update that breaks signal. I temporarily downgraded electron to 2.0.5 and Signal still crashed. |
Same issue on |
These are the packages I updated around the point where it stopped working:
This only happens on |
Now, i can confirm the real problem, electron is not breaking signal, signal was broken after of 1.15.0-beta.9 update, downgrading signal to 1.15.0-beta.8 continue working. |
That must be a different issue, my report was about 1.14.4. |
I'm going to open a new issue. |
Caused by upgrading from |
So, to be clear:
|
This issue is about silent crashes (with no output) on both #2610 seems to be about more than one thing: building Signal from source, |
Also, the Arch package seems to extract a |
I've skimmed https://github.com/signalapp/Signal-Desktop/blob/development/CONTRIBUTING.md, but I'm not sure how to make a release build. Does this look all right?
There's already a |
@lnicola answering to:
You're talking about the signal-desktop-bin package that is not having problems for me, the real issue that I'm reporting is for the signal package that compiles signal-desktop from source. |
I am seeing this segmentation fault when I use |
FWIW, downgrading
|
Beware, that might break other packages, since a lot of stuff got rebuilt after the |
Confirmed using the glibc 2.28 is crashed (signal-desktop-bin). After downgrade to glibc 2.27-3 it works just fine again. |
The thing is, that Arch package is built from the official Debian or Ubuntu package. This may not be fixable until Debian switches to the new And it's unfair to expect the Signal developers to do anything about this. So, if it doesn't turn out to be an easy fix, we will have to switch to the |
Since the same issue occurs for |
I noticed the same thing after running
This doesn't seem to be an issue with the Signal Desktop app, and from what I can tell most of us are Arch users. Maybe we should move this discussion to the Arch BBS? Nevermind, this doesn't seem specific to Arch Linux. |
@christianbundy this problem isn't happening just on ArchLinux, but also on Fedora. I think that this discussion belongs here. A new/fresh build should work across different platforms like it did previously. |
People using Arch Linux can do this in case they don't want to downgrade glibc: # 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/Signal/signal-desktop
sudo patchelf --set-rpath /opt/Signal:/opt/glibc-2.27/usr/lib /opt/Signal/signal-desktop
sudo patchelf --shrink-rpath /opt/Signal/signal-desktop |
Rolling release distributions are continuing to become a bigger thing. Maybe an extra build for such might be an appropriate solution? |
On Electron [1] project, it seems the issue is related to linker where lld seems to generate wrong relocation. Could be this same issue here? |
In case you are switching to the flatpak version, you can still keep your old Signal config by creating a symlink into the flatpak config dir. mv -vi ~/.var/app/org.signal.Signal/config/Signal{,.orig}
ln -vs ~/.config/Signal ~/.var/app/org.signal.Signal/config/Signal UpdateMight not completely work as advertised... It manages to download the media, but fails to display them afterwards... I guess some sandboxing issue...
So instead doing this might be preferred (be careful with flatpak removing this file though!): mv -vi ~/.var/app/org.signal.Signal/config/Signal{,.orig}
mv ~/.config/Signal ~/.var/app/org.signal.Signal/config/ |
@norpol For security reasons, we ensure that any file accessed by the app is inside of our primary config directory, hence the 'denying request to path' log entry. We do, however, attempt to follow symlinks so that config directory is the right one, so I'm not exactly sure what's going on there: Lines 584 to 594 in 816228f
|
Workaround for signalapp/Signal-Desktop#2600
I can verify that the segfault is fixed with |
Bug description
Other Electron apps work (VS Code).
Platform info
Signal version:
1.14.4-1
Operating System: Arch Linux
Linked device version: Android
4.23.4
Link to debug log
N/A
Workaround
Just use the Flatpak version (thanks @aerosol).
The text was updated successfully, but these errors were encountered: