Oni: Oni segfaults on startup after upgrading to glibc 2.28

Created on 8 Aug 2018  路  18Comments  路  Source: onivim/oni

Hi!

Thanks for this amazing project :)
If I can help by providing more information or anything, just let me know.

Oni Version: 0.3.6
Neovim Version (Linux only): 0.3.1
Operating System: Linux (Arch)

Issue:
After upgrading glibc to version 2.28, Oni segfaults on startup. Downgrading to glibc 2.27 works around this issue.

Expected behavior: Oni starts up.

Actual behavior: Segfault on startup

Steps to reproduce:

  1. Upgrade to glibc 2.28
  2. Try to start Oni

Edit:
Seems like other projects face the same issue:

bug crash daily-editor-blocker electron-core

Most helpful comment

It's not fixed correctly yet - Electron 2.0.8 should contain a proper fix. Once that's out, Oni will need to update to that.

All 18 comments

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

I have the same problem

I'm also facing the same problem

I've tagged this as an "electron-core" issue, since that seems to be the case? Or at least its a problem for electron, not necessarily that electron is the one at fault here.

The upstream issue seems to be : https://github.com/electron/electron/issues/13972

That's probably it, yeah. I can send you a fixed Electron binary if you want to test.

For people, who use Oni from AUR.

I followed the example of the Skype AUR package and used patchelf to make Oni use a local copy of glibc 2.27.

Seems to work, but I cannot guarantee, that everything works. Please use it with caution and at your own risk.

Here's the hack:

mkdir /opt/oni/glibc
cd /opt/oni/glibc
curl -O https://archive.archlinux.org/packages/g/glibc/glibc-2.27-3-x86_64.pkg.tar.xz
tar xJf glibc-2.27-3-x86_64.pkg.tar.xz
patchelf --set-interpreter "/opt/oni/glibc/usr/lib/ld-linux-x86-64.so.2" ../oni
patchelf --set-rpath "/opt/oni:/opt/oni/glibc/usr/lib" ../oni

I modified the AUR package for my electron app to simply use the community electron instead of bundling it: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=micropad

@nesmyslny Thanks for reporting! I'll port your patch until upstream is fixed.

I think the problem is fixed. i've upgraded glibs to glibs2.28-4 and oni is launching without any problem

It's not fixed correctly yet - Electron 2.0.8 should contain a proper fix. Once that's out, Oni will need to update to that.

Electron 2.0.8 has now been released!

I still have the problem (maybe, this is fixed over the time),
but I could use a workaround on my CLI $ electron /opt/oni/resources/app :D

onivim is great!! thanks :D

If you are on 0.3.6 @aiya000 then it hasn't got the fix in yet, which would explain this.

Though maybe now this is sorted, we should look at getting a release out sooner rather than later.

@CrossR I installed 0.3.6-1 on my arch-linux :dog2:

$ aurma -Ss oni
aur/oni 0.3.6-1 (23, 2.33625) [installed]
    An IDE built around Neovim

Is this older?

Yes, this is not master.

We need oni-git on AUR for an installation using code from master.

Thanks!
I'll install oni-git :+1:

Sorry I was not clear, I still need to create this package.

Meanwhile, you have to wait for the new release or build your own: https://github.com/onivim/oni/wiki/Development#production-build

I misunderstood :joy:

I'll try to build my own.

Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings