dengste / minimap

Sidebar showing a "mini-map" of a buffer
168 stars 14 forks source link

Minimap hooked to markdown-mode crashes Emacs with SEGFAULT #19

Closed stradicat closed 5 years ago

stradicat commented 5 years ago

OS: Elementary OS Loki / Ubuntu 16.04 Emacs version: 26.1 (kelleyk ppa) Spacemacs version: 0.200.13

Since this week, when opening a large Markdown file, Emacs crashes with segfault. At best, it freezes and does not respond to anything but to killall emacs26 (asking to save desktop).

This is the file: https://pastebin.com/YZygPNTk

gdb result:

Thread 1 "emacs26" received signal SIGSEGV, Segmentation fault.
0x00000000005dbe78 in ?? ()

No backtrace available.

Funny thing is that I actually removed some layers I wasn't using (csharp and some others), to reduce overhead; this problem didn't happen while having those extra layers.

Edit: Just got a reply from Eli Zaretskii (Emacs bug tracking); it doesn't crash for him.

Edit 2: Update: following a hunch, I checked my dotfile hooks.

when I'm using minimap with markdown-mode, I get a SEGFAULT. Reverted from Emacs 26.1 to Emacs 25.3.2, same thing.

When removing markdown-mode from minimap-major-modes, no more SEGFAULT! :smile:

Therefore, something is going on between minimap and markdown-mode.

https://github.com/syl20bnr/spacemacs/issues/11547

stradicat commented 5 years ago

This stopped happening with Spacemacs's develop branch, so I'm closing the issue.