-
Notifications
You must be signed in to change notification settings - Fork 30
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
some company-coq commands make emacs segfault #159
Comments
Well, that's exciting. Sorry about this :/ Some questions:
Thanks! |
I tried around 5 built-in tactics and got the same result - segfault. Can you explain what's the role of libxml library in these processes?
I don't have them in my current build, so I've decided to describe the issue before I start emacs re-building dance and all that fun. :)
First of all. I'm using one of OS X system fonts(Menlo). It crashes pretty quickly and i wasn't able to see how much memory it consumes in the last moment, before crash it keeps its normal memory profile. That question led me to some experimentation and it seems like disabling prettification helps with this issue.
If i disable it, Emacs doesn't seem to segfault anymore! |
Aha, the prettification thing is on a good track. There was a long thread about certain fonts crashing Emacs not so long ago on bug-gnu-emacs. Can you try enabling these prettifications in a |
@cpitclaudel Do you mean |
I meant prettify-symbols-mode + fundamental-mode (prettify-symbols-alist exists outside of company-coq-mode: it's part of a minor mode call prettify-symbols-mode) |
I haven't seen any problems with |
What surprises me is that C-h shouldn't invoke more prettification, so the fact that disabling prettification fixes the segfault is surprising. C-c C-a C-e and C-h use libxml to render an HTML-based documentation page. |
I've experienced segfaults as well. I'm using GNU Emacs 25.2.1 (x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195)) installed via homebrew on macOS. |
@anton-trunov do you have a way to reliably reproduce the issue? |
The following reliably segfaults on my machine: Goal 0 = 0.
Proof.
id If I put the point after |
Ouch. |
Here is a log of my attempt of running Emacs under lldb. Please tell me if you'd like more than this.
At this point
|
Great, thanks! Which version of Emacs are you using? Some font-related segfaults were fixed in Emacs 25. If it's not that, I'll ask the Emacs dev about this backtrace. |
GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-09-25. |
Snap, OK. |
Of course I want to try -- it's the least thing I can do to support this awesome tool! |
Neat :) In that case, we can start this way: First, confirm that running If it doesn't crash (and instead displays the doc buffer), then we'll have a very narrow piece of code left to debug. But most likely it will crash. If it does crash, run After this, use Let me know if I can clarify anything! |
Thank you for such nice instructions! As you predicted it fails (only if the proof symbol is visible at the moment I hit
|
Hi @cpitclaudel! Did you by any chance send this |
AH, no, not yet :/ Sorry about this. This completely fell of my radar. I'll do it today. |
Turns out that the bug had been reported by @dredozubov last July, and subsequently fixed in Emacs 26; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27761 . Sorry for the trouble; I wasn't included in the bug thread, and I didn't hear about it until now. |
@cpitclaudel Sorry, I forgot to mention it at the time! |
@dredozubov I upgraded my Emacs to 26.0.91 (9.0) and it appears the bug has been fixed. |
I'm using Emacs 25.1.1 from https://emacsformacosx.com, HEAD Proof General revision
2cff44522ab8bdca8d73e3819f6ab89984f2c97c
and company-coq. When I input a tactic name and pressC-h
, emacs crashes with a segfault:Fatal error 11: Segmentation faultzsh: abort /Applications/Emacs.app/Contents/MacOS/Emacs
. I can achieve the same result withC-c C-a C-e
. There's definitely a bug in Emacs(it segfaults after all), but company-coq probably does something that leads to it and I lack the expertise to find what that is.What's peculiar - I can't seem to reproduce the same problem on a buffer from
company-coq-tutorial
, but it's 100% reproducible on my setup with any file from Software Foundations book(e.g. Logic.v). I would appreciate any tips in hunting this issue down.The text was updated successfully, but these errors were encountered: