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

From: Steven Allen <[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
#12 0x000058a7c8fbe6c7 in Fdelete_frame (frame=<optimized out>, force=<optimized out>) at ../../src/frame.c:2743
#13 0x000071768fefb9e6 in F77696e646f772d2d64656c657465_window__delete_0 () from /usr/bin/../lib/emacs/31.0.50/native-lisp/31.0.50-523952f2/preloaded/window-0d1b8b93-d9709ebc.eln
#14 0x000058a7c91e6d57 in Ffuncall (nargs=4, args=0x7ffe4f3c90f0) at ../../src/eval.c:3079
#15 0x000071768fefc93b in F7265706c6163652d6275666665722d696e2d77696e646f7773_replace_buffer_in_windows_0 () from /usr/bin/../lib/emacs/31.0.50/native-lisp/31.0.50-523952f2/preloaded/window-0d1b8b93-d9709ebc.eln
#16 0x000058a7c91e6d57 in Ffuncall (nargs=2, args=0x7ffe4f3c91b0) at ../../src/eval.c:3079
#17 0x000058a7c91528e9 in replace_buffer_in_windows (buffer=XIL(0x58a7d89b4565)) at ../../src/window.c:3647
#18 replace_buffer_in_windows (buffer=XIL(0x58a7d89b4565)) at ../../src/window.c:3642
#19 Fkill_buffer (buffer_or_name=<optimized out>) at ../../src/buffer.c:2012
#20 0x000071768b655462 in F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_20 () from /home/steb/.config/emacs/eln-cache/31.0.50-523952f2/exwm-manage-481a2a54-1f060da2.eln
#21 0x000058a7c91e6d57 in Ffuncall (nargs=2, args=0x7ffe4f3c9360) at ../../src/eval.c:3079
#22 0x000058a7c91d7834 in Fapply (nargs=2, args=0x7ffe4f3c9360) at ../../src/eval.c:2708
#23 0x000058a7c91e6d57 in Ffuncall (nargs=3, args=0x7ffe4f3c9358) at ../../src/eval.c:3079
#24 0x000071768e47b468 in F74696d65722d6576656e742d68616e646c6572_timer_event_handler_0 () from /usr/bin/../lib/emacs/31.0.50/native-lisp/31.0.50-523952f2/preloaded/timer-3ee7cfd9-4017b895.eln
#25 0x000058a7c91e6d57 in Ffuncall (nargs=2, args=0x7ffe4f3c94a0) at ../../src/eval.c:3079
#26 0x000058a7c911d1ce in timer_check_2 (timers=<optimized out>, idle_timers=<optimized out>) at ../../src/keyboard.c:4804
#27 timer_check () at ../../src/keyboard.c:4869
#28 0x000058a7c930661b in wait_reading_process_output.constprop.1 (time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=-1, do_display=true, just_wait_proc=<optimized out>, wait_proc=<optimized out>, wait_for_cell=<optimized out>) at ../../src/process.c:5446
#29 0x000058a7c8fb60e0 in sit_for (timeout=<optimized out>, reading=<optimized out>, display_option=<optimized out>) at ../../src/dispnew.c:6889
#30 0x000058a7c9127880 in read_char (commandflag=1, map=XIL(0x58a7d5e4b153), prev_event=make_fixnum(27), used_mouse_menu=0x7ffe4f3ca0eb, end_time=0x0) at ../../src/keyboard.c:2925
#31 0x000058a7c92f837e in read_key_sequence.constprop.0 (keybuf=keybuf@entry=0x7ffe4f3ca270, prevent_redisplay=prevent_redisplay@entry=false, disable_text_conversion_p=<optimized out>, fix_current_buffer=<optimized out>, can_return_switch_frame=<optimized out>, dont_downcase_last=<optimized out>, prompt=<optimized out>) at ../../src/keyboard.c:10746
#32 0x000058a7c91196e3 in command_loop_1 () at ../../src/keyboard.c:1424
#33 0x000058a7c91d6977 in internal_condition_case (bfun=0x58a7c91194c0 <command_loop_1>, handlers=<optimized out>, hfun=0x58a7c91166e0 <cmd_error>) at ../../src/eval.c:1607
#34 0x000058a7c9118a5f in command_loop_2 (handlers=handlers@entry=XIL(0x90)) at ../../src/keyboard.c:1163
#35 0x000058a7c91d68b6 in internal_catch (tag=<optimized out>, func=0x58a7c9118a30 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1286
#36 0x000058a7c9118ecb in command_loop () at ../../src/keyboard.c:1141
#37 0x000058a7c9119086 in recursive_edit_1 () at ../../src/keyboard.c:749
#38 0x000058a7c9119330 in Frecursive_edit () at ../../src/keyboard.c:832
#39 0x000058a7c8fa3f8b in main (argc=<optimized out>, argv=<optimized out>) at ../../src/emacs.c:2625

Lisp Backtrace:
"window--delete" (0x4f3c90f8)
"replace-buffer-in-windows" (0x4f3c91b8)
0xcf2129c0 PVEC_SUBR
"apply" (0x4f3c9360)
"timer-event-handler" (0x4f3c94a8)
Detaching from program: /usr/bin/emacs-31.0.50, process 53461
[Inferior 1 (process 53461) detached]