Subject: bug#70385: Crash in note_fringe_highlight

From: Juri Linkov <[email-masked]>
Date: Mon, 15 Apr 2024 19:39:19 +0300

> Can you reproduce at will?

It's not reproducible at will,
and now I got a new crash.

> If so, what does the below show in GDB,
> when Emacs segfaults and GDB kicks in?
>
>   (gdb) p w->current_matrix
>   (gdb) p w->current_matrix->rows
>   (gdb) p w->current_matrix->nrows
>   (gdb) p w->window_end_valid
>   (gdb) p window_outdated (w)

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x0000555555612343 in note_fringe_highlight (part=<optimized out>, y=<optimized out>, x=<optimized out>, window=XIL(0x55555641d7cd), f=0x55555641d338) at xdisp.c:35774
35774	  if (window_outdated (w)
(gdb) p w->current_matrix
$6 = (struct glyph_matrix *) 0x55555a95b6f0
(gdb) p w->current_matrix->rows
$7 = (struct glyph_row *) 0x555556c14310
(gdb) p w->current_matrix->nrows
$8 = 7
(gdb) p w->window_end_valid
$9 = false
(gdb) p window_outdated (w)
$10 = false