GNU bug report logs - #31312
Segmentation fault with doom-emacs, NeoTree and Zoom

Previous Next

Package: emacs;

Reported by: Andrea Cardaci <cyrus.and <at> gmail.com>

Date: Sun, 29 Apr 2018 17:01:02 UTC

Severity: normal

Tags: confirmed, fixed

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #78 received at 31312 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: cyrus.and <at> gmail.com, npostavs <at> gmail.com, 31312 <at> debbugs.gnu.org
Subject: Re: bug#31312: Segmentation fault with doom-emacs, NeoTree and Zoom
Date: Wed, 02 May 2018 20:43:30 +0200
>> If you mean something like
>>
>>     if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw)
>>       sw = w;
>>
>> I'm afraid that this would fail since selected_window has no buffer
>> any more (or may have even been recycled already).
>
> Is that a fact?  I might be mistaken, but my take on what Noam found
> was that the selected window is OK, it's just that the window held in
> W is dead (i.e. it was deleted inside the tempest that happened in
> run_window_size_change_functions called by prepare_menu_bars).  So my
> suggestion is to update W with the new selected window.

Then I misinterpreted Noam's results.  Anyway, a simple way to
reproduce the bug is

(defun foo (frame)
  (delete-window (selected-window)))

(add-hook 'window-size-change-functions 'foo)

and do C-x 2.

martin




This bug report was last modified 7 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.