Subject: Re: bug#77046: 31.0.50; Emacs sometimes crashes

From: Eli Zaretskii <[email-masked]>
Date: Sat, 22 Mar 2025 17:39:45 +0200

> From: Markus Triska <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked],  [email-masked]
> Date: Sat, 22 Mar 2025 15:19:09 +0100
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x000055555559de87 in first_enabled_row (matrix=0x0) at dispnew.c:3499
> 3499	  for (int i = 0; i < matrix->nrows; ++i)
> #0  0x000055555559de87 in first_enabled_row (matrix=0x0) at dispnew.c:3499
> #1  0x000055555559deb9 in make_matrix_current (f=0x555555c57ae8) at dispnew.c:3511
> #2  0x000055555559e719 in copy_child_glyphs (root=0x555555b15660, child=0x555555c57ae8) at dispnew.c:3715
> #3  0x000055555559f5ba in combine_updates_for_frame (f=0x555555b15660, inhibit_scrolling=false) at dispnew.c:4020
> #4  0x000055555559f944 in combine_updates (roots=XIL(0x7ffff7345eb3)) at dispnew.c:4073
> #5  0x00005555556021e4 in redisplay_internal () at xdisp.c:17748

That's exactly the crash that I fixed with commit 412a6fad98e7 a week
ago, after which I could no longer reproduce the problem.  So either
your source tree is out of sync with the master branch, or some other
factor is at work here.  Or maybe this backtrace is from Emacs before
my fix?

What does the below produce in GDB?

  (gdb) frame 1
  (gdb) print f->after_make_frame