GNU bug report logs -
#60096
29.0.60; Crash in format_mode_line_unwind_data
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 15 Dec 2022 17:40:02 UTC
Severity: normal
Found in version 29.0.60
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 60096 <at> debbugs.gnu.org (full text, mbox):
> Cc: 60096 <at> debbugs.gnu.org, juri <at> linkov.net
> Date: Sat, 17 Dec 2022 12:00:47 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > The earlier call
> >
> > delete_all_child_windows (FRAME_ROOT_WINDOW (f));
> >
> > should have reliably reset Vwindow_list to nil.
>
> AFAIR, the code which runs after that call recalculated Vwindow_list,
> adding to it those windows with no buffer.
Specifically, here's what happens:
. We call
wset_buffer (w, other_buffer_safely (Fcurrent_buffer ()));
. other_buffer_safely cannot find a single buffer that satisfies the
candidate_buffer condition, so it ends up recreating *scratch*
(whose deletion caused this mess to begin with) by calling
get-scratch-buffer-create in Lisp
. get-scratch-buffer-create calls substitute-command-keys to produce
the blurb we put in the comment at the beginning of *scratch*
. substitute-command-keys uses a temporary buffer to format the
message, and calls kill-buffer to delete that buffer when it's done
. kill-buffer calls replace_buffer_in_windows, which calls
replace-buffer-in-windows in Lisp
. replace-buffer-in-windows calls window-list-1, which calls
window_list, which fills Vwindow_list with windows that have no
buffer:
(gdb) pp Vwindow_list
(#<window 8> #<window 4>)
. one of these windows gets assigned a buffer, eventually, since it's
a selected-window, but the other window stays without a buffer, and
causes a crash in the following redisplay
This bug report was last modified 2 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.