-
Notifications
You must be signed in to change notification settings - Fork 13
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
Segmentation fault when running M-x list-package #12
Comments
What Linux distribution and release are you using? |
ubuntu 20.04, everything was working perfect before upgrade from previous
LTS.
…On Sun, 3 May 2020 at 05:45, Alex Murray ***@***.***> wrote:
What Linux distribution and release are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIBFHSJUSTYWDBLH7WDKI3RPTSE5ANCNFSM4MXWWKMA>
.
|
I can't reproduce this on an up-to-date Ubuntu 20.04 install with
|
emacs -Q also gives me a seg fault.
|
|
after running bt:
there are some mention of issues: |
I am encountering the same crash on ubuntu 20.04 using the It does not crash when running emacs 26.3 built from source. I have distilled my
Starting emacs with this
Loading the core file in gdb I get the following stack trace:
I tried starting it under
|
Thanks for the detailed instructions but I still cannot reproduce this locally (either in a VM or an LXD container). I am wondering if you have a particular nss module installed which might be causing this - are you able to reproduce it in a freshly installed Ubuntu 20.04 machine / container? Also it would be interesting to know if you can reproduce this using the emacs 27 build on the latest/beta channel:
|
Ok whilst I can't reproduce this myself I believe we can still get it resolved - can someone who is experiencing this crash please install the classic-snap-analyzer snap package and when emacs is running launch it so we can see what libraries are being used from the host:
|
Also this seems to be a bit of a known problem with nss and classic snaps - https://forum.snapcraft.io/t/segmentation-fault-running-snapcraft-on-arch-linux/12142/6 - can anyone who is experiencing this please see if their /etc/nsswitch.conf is similar to the one mentioned in that link and if changing it as per that link resolves this issue for them? |
If it helps, I was on Ubuntu 18.04 and upgraded to 20.04, so not a fresh install. Perhaps that could be the issue? As mentioned, after the crash I built from source and the crash disappeared |
The issue is that the core18 snap provides some of the libraries used by the snap - so for instance on my machine I can see the following:
Which means the core18 snap is providing part of libnss (dns, files) whereas the host is provide the other (mdns) - so if there is some incompatibility in the versions between Ubuntu 18.04 (which is what core18 is based on) and Ubuntu 20.04 (the host) then it is conceivable this will result in issues. Probably the easiest thing is for the snap to stage all the libnss modules in case any of them are in use via the host In the case where you build emacs from scratch, it will only ever use libraries on your host machine so there is no chance of incompatibility. Hence why that works without crashing. |
Although there are a lot of possible libnss modules in Ubuntu 18.04 so this is suboptimal: https://packages.ubuntu.com/search?suite=bionic&keywords=libnss @skebanga can you please attach your |
@arussel if you are still experiencing this, could you also please attach your |
|
@skebanga thanks for providing that but I still can't seem to reproduce this which is quite frustrating - out of interest, could you please try running emacs from the beta channel (this is a pre-release build of emacs 27.0.91) and see if this also crashes for you?
|
That works. Note I had uninstalled the snap and had instead built from source, so I instead ran the following command (not sure it matters, but worth mentioning nonetheless)
|
@alexmurray the link you provided is the same I provided in my 4th comment. I tried to investigate that but coudn't find anything. I have a latop running the exact same ubuntu version with the exact same emacs version and the exact same nsswitch.conf file, but one is working properly and the other seg fault. I have run: for info my nsswitch.conf (that work on laptop and breaks on desktop):
The commented out line is the original on desktop, the new line is to match the laptop version, but this didn't fix the issue. |
Ok I'll close this for now since emacs 27.1 is due any day now so this will be released as |
I'll be happy to provide more info if you tell me what to do :-)
Latest unbuntu 20.04
GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-12-03
snap-id: 4gE2S31SnK2LeqsZF8XTPuHOlqlzbqsW
tracking: latest/stable
refresh-date: 2019-12-10
Open emacs, run M-x list-package -> crash with segmentation-fault
The text was updated successfully, but these errors were encountered: