Subject: Re: bug#74902: 31.0.50; Segfault when deleting frames

From: Eli Zaretskii <[email-masked]>
Date: Sun, 29 Dec 2024 08:50:57 +0200

> From: Steven Allen <[email-masked]>
> Cc: [email-masked]
> Date: Sat, 28 Dec 2024 15:23:12 -0800
> 
> I was able to get a GDB backtrace after some button mashing. Let me know
> if you need anything else.
> 
> #0  format_mode_line_unwind_data (target_frame=target_frame@entry=0x58a7d5394680, obuf=<optimized out>, owin=<optimized out>, save_proptrans=save_proptrans@entry=false) at ../../src/xdisp.c:13716
> #1  0x000058a7c8feb3c6 in gui_consider_frame_title (frame=XIL(0x58a7d5394685)) at ../../src/xdisp.c:13910
> #2  0x000058a7c90d6b89 in SET_FRAME_ICONIFIED (f=0x58a7d5394680, i=1) at ../../src/frame.h:1468
> #3  handle_one_xevent (dpyinfo=<optimized out>, event=<optimized out>, finish=0x7ffe4f3c8c3c, hold_quit=<optimized out>) at ../../src/xterm.c:20090
> #4  0x000058a7c90e40b8 in XTread_socket (terminal=<optimized out>, hold_quit=0x7ffe4f3c8d60) at ../../src/xterm.c:25738
> #5  0x000058a7c912a962 in gobble_input () at ../../src/keyboard.c:7922
> #6  0x000058a7c91d7da6 in handle_async_input () at ../../src/keyboard.c:8161
> #7  process_pending_signals () at ../../src/keyboard.c:8175
> #8  probably_quit () at ../../src/eval.c:1788
> #9  0x000058a7c91f7826 in maybe_quit () at ../../src/lisp.h:3956
> #10 Fdelq (elt=XIL(0x58a7d5394685), list=<optimized out>) at ../../src/fns.c:2098
> #11 0x000058a7c8fbd444 in delete_frame (frame=XIL(0x58a7d5394685), force=XIL(0)) at ../../src/frame.c:2500

Thanks.  I guess we also need a FRAME_LIVE_P test in
gui_consider_frame_title?