-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
HELM causing segmentation fault on Spacemacs inside ssh connection #8197
Comments
Yes. I have edit 21-01-17: |
Update: Thanks @SDWolf 😃 |
Darn. Just trying to invoke HELM Mini
|
I've been having this a lot with emacs 25.1.1 inside tmux over an SSH connection. Based on the comment about linum overrides, I'm going to give it a shot with removing |
@robdaemon now that you mentioned it, I don't remember having segfaults until I started using it inside tmux, even with the changes to my |
I keep getting these segfaults too :(, I have linum-mode enabled with relative line numbers, I use tmux, but I am not using it when I get the segfaults... also it is in an SSH connection |
|
Marking it as duplicate of #7572 Anyone succeeded in reproducing it without line numbers activated ? Someone could try to reproduce it with stock Emacs with line number activated ? |
I found this, not sure it is relevant: https://bugs.launchpad.net/ubuntu/+bug/1570950 |
I will try to reproduce this without line numbers next, I tried using ivy instead of helm and same thing, I feel like we are getting closer to nailing this down |
@syl20bnr AFAICT, turning off line numbers resolves the issue, this may be where to look, will let you know if I see another crash, but so far so good |
@NerdsvilleCEO @syl20bnr For me I am still keeping linum but without any customization. The crash rate is significantly lower than before. |
I was having this problem pretty consistently on |
@scotttrinh Interesting! I haven't had any crashes with linum turned off entirely, maybe it was a bug in emacs itself |
@NerdsvilleCEO I found this thread on the emacs mailing list and while I didn't go through the trouble of seeing if the backtrace of the discussed issue was related to my own problem, I just took the "Did you turn it off and back on again?" approach and re-built from source. We shall see! |
@scotttrinh How has everything been going with this? Any crashes since? |
So far, so good! I'm only about 1 full work day into using the new build, but I've not had a segfault yet, which is promising! |
Just had a segfault with |
@scotttrinh Please provide the stack trace... it may be a different issue, let's make sure it is the same |
Yeah, it's so intermittent and I wasn't ready for it and didn't save the stack trace. I'll make sure my system is setup to give good stack traces so I'm ready for it next time it happens. |
Not sure how helpful that is. Any pointers on how to get more meaningful backtraces from emacs? |
@scotttrinh Using |
I tried to look up how to use
Note, that this particular crash was launching a terminal, not |
And then just got another crash (same backtrace) when opening NeoTree with an ansi-shell buffer open. Seems like shell buffer is the common denominator for my crashes. |
I've managed to find the problem in emacs 25.1.1 using If you want to try it out just search where the EDIT: use this commit instead: 7b60bce571dfc3fcdd461511751744eac74eb463 #define FACE_FROM_ID(F, ID) \
(UNSIGNED_CMP (ID, <, FRAME_FACE_CACHE (F)->used) \
? FRAME_FACE_CACHE (F)->faces_by_id[ID] \
: FRAME_FACE_CACHE (F)->faces_by_id[0]) Then recompile emacs with: ./autogen.sh
./configure
make
sudo make install And let me know if this helps you as well. |
@SDWolf which issue does this solve? I think we have two issues in this thread, comparing the stack traces |
@NerdsvilleCEO this should solve both, the stacktraces are identical to mine and I've produced the stacktrace while replicating the In short, the segfault happens because the |
@SDWolf Just quickly tried out some risky commands that sometimes segfault, and seems to be working for me! I think I owe you a slice of 🍕. Maybe a whole pie. |
@scotttrinh I've pushed a commit that contains an even better fix on my fork: 7b60bce571dfc3fcdd461511751744eac74eb463 I still do not know the reason why this happens. |
Interesting: emacs-mirror/emacs@374f6a5 Looks like they fixed (?) this issue in this commit by returning non- |
Here is the promissed explanation (what I have so far): Backtrace in
Notice So it looks like HELM's text is at fault here. I will dig deeper tomorrow to see how this can be fixed without needing to patch emacs. How to debug (in case anyone else wants to take a spin at it):
@scotttrinh I tried building master and the segfault still hapens, that commit does nothing to help. I haven't notified upstream about this since I want to dig deeper and make a better case before submitting any fix. IMO this should be fixed in both places, emacs (null pointer derefference ) and HELM (font?). |
I've looked into this a bit more and I can not pin it down to anything specific, seems to be that helm's and linum's involvement in this is just a coincidence and the problem lies entirely in emacs. I'l notify upstream with all the details that I have. |
Here's a link to the emacs bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26097 |
A fix for this landed on emacs master: emacs-mirror/emacs@8275687 thanks to Eli Zaretskii's effort. Here is what you need to do in order to install emacs master from source: git clone https://github.com/emacs-mirror/emacs.git
cd emacs
./autogen.sh
./autogen.sh git
./configure
make
sudo make install Any error you might get in these commands are just a web search away, usually it's just a This might be the solution for the following issues as well: #7776 #7572 #6093 |
Closing the issue since it has been resolved in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26097 |
Note that the fix is only present on master and most likely will only be available on emacs 26. I would not really consider this issue as "Closed" until then... |
Description
This problem happens to me roughly once or twice a week. When this happens, emacs will crash immediately after I invoke some helm buffer. (in this bug report
HELM Woman
was being invoked when I pressedK
multiple times. HELM MiniSPC b-b
and many other HELM buffers has also caused the crash multiple times before)Reproduction guide 🪲
HELM Find Files
,HELM Mini
,HELM Woman
Observed behaviour: 👀 💔
As stated above
Plus every time backtrace will include something involving
libpthread.so.0
(see below)Expected behaviour: ❤️ 😄
HELM Buffer invocation.
(%LAST_KEYS%)
KKKKKK
%SYSTEM_INFO%
Ubuntu 16.04 LTS
Kernel 4.4.0-59-generic
Emacs 24.5.1
Spacemacs v.0.200.7
Backtrace 🐾
The text was updated successfully, but these errors were encountered: