-
Notifications
You must be signed in to change notification settings - Fork 16
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
Emacs Crashes When Opening Certain Buffers #20
Comments
I can confirm that, the backtrace looks like this for GNU Emacs 26.0.90 on Debian:
Anyway even though Zoom is involved in this, this is surely a bug in Emacs itself at this stage, it shouldn't be possible to cause a segmentation fault from an elisp program. I suggest to file an issue to Emacs, Feel free to link this issue in the description and to add any further information here. |
Using GDB:
The segmentation fault happens here: static void
reconsider_clip_changes (struct window *w)
{
struct buffer *b = XBUFFER (w->contents);
if (b->clip_changed // *** SEGMENTATION FAULT ***
&& w->window_end_valid
&& w->current_matrix->buffer == b
&& w->current_matrix->zv == BUF_ZV (b)
&& w->current_matrix->begv == BUF_BEGV (b))
b->clip_changed = false;
/* If display wasn't paused, and W is not a tool bar window, see if
point has been moved into or out of a composition. In that case,
set b->clip_changed to force updating the screen. If
b->clip_changed has already been set, skip this check. */
if (!b->clip_changed && w->window_end_valid)
{
ptrdiff_t pt = (w == XWINDOW (selected_window)
? PT : marker_position (w->pointm));
if ((w->current_matrix->buffer != b || pt != w->last_point)
&& check_point_in_composition (w->current_matrix->buffer,
w->last_point, b, pt))
b->clip_changed = true;
}
} |
Steps to reproduce this are:
Note: it does not happen with only NeoTree and Zoom. Someone should narrow it down and submit a proper bug report. |
FWIW here is the "bug report". |
System: Arch Linux
Emacs Version: 27.0.50
Using the popular Doom-Emacs, opening certain buffers immediately causes emacs to crash. For instance, when in Zoom-Mode and opening neotree Emacs stops responding and is subsequently killed.
The text was updated successfully, but these errors were encountered: