-
Notifications
You must be signed in to change notification settings - Fork 714
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
Rocket Chat Desktop segmentation fault on start (Arch Linux) #802
Comments
Having the same issue. This seems to be related to glibc update to 2.28. Downgrading to glibc 2.27 and rocketchat works again. |
BTW, building against latest glibc doesn't work either, though it builds just fine. Several things were recompiled on Arch against the new glibc. Rebuilding should be enough, but it happens not to be that way. |
Since the binaries are built using the Ubuntu Trusty distro, should we consider a upgrade to Ubuntu Xenial (glibc 2.23)? |
Well the problem happens even when building on Arch so I'm not sure bumping the Ubuntu version would help with this issue. Either way since Trusty is really old I think it might be a good idea in general. Maybe even upgrading to 18.04. |
Update: Sources: |
This is bad. I wonder why the Electron from Arch repos is different and if a downgrade can help Arch users. |
BTW, there is a community-maintained Flatpak for Rocket.Chat that can be a workaround. |
@tassoevan A glibc downgrade does work. Although I suppose a flatpack is a much better choice than downgrading such an important package. Either way, since it apparently only happens on Arch I think it might be a problem with their packages. Is there a way for me to build Rocket Chat using the electron package in the Arch repos for testing purposes? |
@xTeixeira Since |
@tassoevan I tried running |
Hello, I'm interested in this problem. Is it possible to build binaries that is not stripped? |
@taro-yamada Yes. The build pipeline of Node.js native addons is orchestrated by node-gyp and, if I remember well, it has a |
Just to let you guys know, a patch was submitted to Electron, see electron/electron#13988. |
thanks for the link @xTeixeira I have done some updates on the https://github.com/RocketChat/Rocket.Chat.Electron/releases/tag/2.13.0-develop but they won't include the FIX as it has not been merged yet. |
Nothing was recompiled against the new glibc, that's not even how glibc works. It is backwards-compatible, so older binaries always work with newer versions of glibc. As mentioned, the prebuilt binaries were built with a faulty toolchain that generated invalid code, which is invalid anywhere -- but older versions of glibc were more forgiving of this particular variety of invalid code. Any distro with glibc 2.28 (including Fedora rawhide) will see this issue. The electron developers are working on publishing fixed prebuilt binaries. ... Although it's still a lesson in that programs should use and build against the system electron. :p |
This patchelf hack worked for a colleague and me. Leaves an extra copy of glibc around that will have to be manually cleaned up later. |
@torpesco I dont think that's needed. Arch reverted the glibc commit that broke electron to give time for electron upstream to fix it. All you need to do is upgrade glibc to 2.28-4 which is on Arch repos. |
Hey.
Rocket Chat segfaults on start (doesn't even show the main window) on Arch Linux right now.
Tested with provided binaries (through the rocketchat-client-bin AUR package) and building from source too (through the rocketchat-desktop AUR package).
My Setup
Operating System: Arch Linux (with GNOME)
App Version: 2.12.0
[ x ] I have tested with the latest version
[ x ] I can simulate the issue easily
The text was updated successfully, but these errors were encountered: