Subject: bug#57364: 28.1.91; asynchronous X server error when creating a second frame on alternate DISPLAY

From: Andrés Ramírez <[email-masked]>
Date: Tue, 23 Aug 2022 17:51:52 +0000

Hi. There.

,---- [ previous thread about this behaviour ]
| https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00922.html
`----

In case You need to put the breakpoints. You would need to add three lines at the end of src/.gdbinit
--8<---------------cut here---------------start------------->8---
set breakpoint pending on
b xterm.c:x_delete_terminal
b xterm.c:x_error_handler
--8<---------------cut here---------------end--------------->8---

REQUIREMENT-for-reproducing-the-bug: having xephyr installed and xterm or wmaker
launching xephyr:
--8<---------------cut here---------------start------------->8---
(Xephyr -ac -br -noreset -screen 1024x768 :1.0 &);sleep 1;(GNUSTEP_USER_ROOT="${HOME}/GNUstep"  DISPLAY=:1.0 wmaker &)
--8<---------------cut here---------------end--------------->8---

Steps for reproducing the bug:
1. gdb -i=mi --args ./emacs -Q -f toogle-debug-on-error --fg-daemon
2. @host emacsclient -c -n --eval '(eshell)'
3. on eshell-buffer emacs-version Return
4. @remoteMachine emacsclient -c -n ~/.bashrc {requires xephyr launched see above}
5. M-x dired-jump
6. M-x close-display-connection 

Expected Output:
emacs commits suicide
So Both opened frames are closed

NOTE: on gdb window You are going to get the message
'X protocol error: RenderBadGlyph (invalid Glyph parameter) on protocol request 139'
NOTE-THREE: this problem is not reproducible on emacs-29 
Simple-Question: How to know or capture|cleaning the X error before calling close-display-connection?

IDEA: I think the step 4 {opening a new X frame on a different DISPLAY causes the error}

VIDEO-of-debug-session: https://disk.yandex.com/i/vK-VEOTjP5_OGA
VIDEO-DETAILS:
gdb runs on DISPLAY 1.0 and the second frame is opened in DISPLAY :0 {second display not been showed on the video}

0m10s starting gdb
0m40s starting first emacs frame on DISPLAY 1:0
1m06s starting second frame on DISPLAY :0
1m16s doing M-x dired-jump on the second frame {not showed on video}
1m16s back to the video focused
1m30s M-x close-display-connection on first emacs frame
1m40s back on the gdb terminal {which shows the hitted breakpoints}
1m50s end the gdb session
1m57s ending the video

JIC: I am attaching three backtraces
* x_terminal_delete

Thread 1 "emacs" hit Breakpoint 3, x_delete_terminal (terminal=0x555556036688) at ../../src/xterm.c:13450
13450	  struct x_display_info *dpyinfo = terminal->display_info.x;
(gdb) bt
#0  x_delete_terminal (terminal=0x555556036688) at ../../src/xterm.c:13450
#1  0x000055555571d53c in Fx_close_connection (terminal=XIL(0x5555560dfd84)) at ../../src/xfns.c:5785
#2  0x0000555555830de7 in funcall_subr (subr=0x555555e24380 <Sx_close_connection>, numargs=1, args=0x7fffffffc3f0) at ../../src/eval.c:3098
#3  0x0000555555830826 in Ffuncall (nargs=2, args=0x7fffffffc3e8) at ../../src/eval.c:3023
#4  0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff2d214f4), vector=XIL(0x7ffff2d21355), maxdepth=make_fixnum(7), args_template=make_fixnum(257), nargs=1, args=0x7fffffffcc18) at ../../src/bytecode.c:632
#5  0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff2d211fd), syms_left=make_fixnum(257), nargs=1, args=0x7fffffffcc10) at ../../src/eval.c:3147
#6  0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff2d211fd), nargs=1, arg_vector=0x7fffffffcc10) at ../../src/eval.c:3228
#7  0x000055555583087a in Ffuncall (nargs=2, args=0x7fffffffcc08) at ../../src/eval.c:3027
#8  0x00005555558239a3 in Ffuncall_interactively (nargs=2, args=0x7fffffffcc08) at ../../src/callint.c:260
#9  0x0000555555830cb4 in funcall_subr (subr=0x555555e2c340 <Sfuncall_interactively>, numargs=2, args=0x7fffffffcc08) at ../../src/eval.c:3078
#10 0x0000555555830826 in Ffuncall (nargs=3, args=0x7fffffffcc00) at ../../src/eval.c:3023
#11 0x000055555582f4bf in Fapply (nargs=3, args=0x7fffffffcc00) at ../../src/eval.c:2610
#12 0x0000555555823e46 in Fcall_interactively (function=XIL(0x2aaa9ce6cfe8), record_flag=XIL(0xc6c0), keys=XIL(0x55555937e265)) at ../../src/callint.c:353
#13 0x0000555555830e47 in funcall_subr (subr=0x555555e2c380 <Scall_interactively>, numargs=3, args=0x7fffffffcdb0) at ../../src/eval.c:3103
#14 0x0000555555830826 in Ffuncall (nargs=4, args=0x7fffffffcda8) at ../../src/eval.c:3023
#15 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff28b4b4c), vector=XIL(0x7ffff28b47b5), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=2, args=0x7fffffffd340) at ../../src/bytecode.c:632
#16 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff28b4785), syms_left=make_fixnum(1025), nargs=2, args=0x7fffffffd330) at ../../src/eval.c:3147
#17 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff28b4785), nargs=2, arg_vector=0x7fffffffd330) at ../../src/eval.c:3228
#18 0x000055555583087a in Ffuncall (nargs=3, args=0x7fffffffd328) at ../../src/eval.c:3027
#19 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff2ac40a4), vector=XIL(0x7ffff2ac3815), maxdepth=make_fixnum(17), args_template=make_fixnum(769), nargs=3, args=0x7fffffffda08) at ../../src/bytecode.c:632
#20 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff2ac2d8d), syms_left=make_fixnum(769), nargs=3, args=0x7fffffffd9f0) at ../../src/eval.c:3147
#21 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff2ac2d8d), nargs=3, arg_vector=0x7fffffffd9f0) at ../../src/eval.c:3228
#22 0x000055555583087a in Ffuncall (nargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3027
#23 0x00005555558239a3 in Ffuncall_interactively (nargs=4, args=0x7fffffffd9e8) at ../../src/callint.c:260
#24 0x0000555555830cb4 in funcall_subr (subr=0x555555e2c340 <Sfuncall_interactively>, numargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3078
#25 0x0000555555830826 in Ffuncall (nargs=5, args=0x7fffffffd9e0) at ../../src/eval.c:3023
#26 0x000055555582f895 in Fapply (nargs=3, args=0x7fffffffdc20) at ../../src/eval.c:2653
#27 0x0000555555823e46 in Fcall_interactively (function=XIL(0x2aaa9cc0eb58), record_flag=XIL(0), keys=XIL(0x55555921b71d)) at ../../src/callint.c:353
#28 0x0000555555830e47 in funcall_subr (subr=0x555555e2c380 <Scall_interactively>, numargs=3, args=0x7fffffffddd0) at ../../src/eval.c:3103
#29 0x0000555555830826 in Ffuncall (nargs=4, args=0x7fffffffddc8) at ../../src/eval.c:3023
#30 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff28b4b4c), vector=XIL(0x7ffff28b47b5), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=1, args=0x7fffffffe320) at ../../src/bytecode.c:632
#31 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff28b4785), syms_left=make_fixnum(1025), nargs=1, args=0x7fffffffe318) at ../../src/eval.c:3147
#32 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff28b4785), nargs=1, arg_vector=0x7fffffffe318) at ../../src/eval.c:3228
#33 0x000055555583087a in Ffuncall (nargs=2, args=0x7fffffffe310) at ../../src/eval.c:3027
#34 0x0000555555830019 in call1 (fn=XIL(0x4590), arg1=XIL(0x2aaa9cc0eb58)) at ../../src/eval.c:2883
#35 0x0000555555745a6c in command_loop_1 () at ../../src/keyboard.c:1505
#36 0x000055555582be77 in internal_condition_case (bfun=0x5555557451a3 <command_loop_1>, handlers=XIL(0x90), hfun=0x555555744586 <cmd_error>) at ../../src/eval.c:1450
#37 0x0000555555744d5c in command_loop_2 (handlers=XIL(0x90)) at ../../src/keyboard.c:1133
#38 0x000055555582b006 in internal_catch (tag=XIL(0xe850), func=0x555555744d32 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1181
#39 0x0000555555744cfe in command_loop () at ../../src/keyboard.c:1111
#40 0x0000555555744032 in recursive_edit_1 () at ../../src/keyboard.c:720
#41 0x0000555555744254 in Frecursive_edit () at ../../src/keyboard.c:803
#42 0x000055555573fd00 in main (argc=5, argv=0x7fffffffe828) at ../../src/emacs.c:2358

Lisp Backtrace:
"x-close-connection" (0xffffc3f0)
"close-display-connection" (0xffffcc10)
"funcall-interactively" (0xffffcc08)
"call-interactively" (0xffffcdb0)
"command-execute" (0xffffd330)
"execute-extended-command" (0xffffd9f0)
"funcall-interactively" (0xffffd9e8)
"call-interactively" (0xffffddd0)
"command-execute" (0xffffe318)
(gdb) 
* x_error_handler

Thread 1 "emacs" hit Breakpoint 4, x_error_handler (display=0x5555567b8200, event=0x7fffffffcf00) at ../../src/xterm.c:10270
10270	  if (x_error_message)
(gdb) bt
#0  x_error_handler (display=0x5555567b8200, event=0x7fffffffcf00) at ../../src/xterm.c:10270
#1  0x00007ffff7bf61ac in _XError () at /usr/lib/libX11.so.6
#2  0x00007ffff7bf62b8 in  () at /usr/lib/libX11.so.6
#3  0x00007ffff7bf6355 in  () at /usr/lib/libX11.so.6
#4  0x00007ffff7bf640a in _XEventsQueued () at /usr/lib/libX11.so.6
#5  0x00007ffff7be2c48 in XPending () at /usr/lib/libX11.so.6
#6  0x00005555557042cf in XTread_socket (terminal=0x555556722160, hold_quit=0x7fffffffd1e0) at ../../src/xterm.c:9492
#7  0x0000555555755cec in gobble_input () at ../../src/keyboard.c:6980
#8  0x00005555557562e8 in handle_async_input () at ../../src/keyboard.c:7211
#9  0x0000555555756307 in process_pending_signals () at ../../src/keyboard.c:7225
#10 0x000055555582c7dc in maybe_quit () at ../../src/eval.c:1724
#11 0x00005555558306b3 in Ffuncall (nargs=2, args=0x7fffffffd328) at ../../src/eval.c:2995
#12 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff2ac40a4), vector=XIL(0x7ffff2ac3815), maxdepth=make_fixnum(17), args_template=make_fixnum(769), nargs=3, args=0x7fffffffda08) at ../../src/bytecode.c:632
#13 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff2ac2d8d), syms_left=make_fixnum(769), nargs=3, args=0x7fffffffd9f0) at ../../src/eval.c:3147
#14 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff2ac2d8d), nargs=3, arg_vector=0x7fffffffd9f0) at ../../src/eval.c:3228
#15 0x000055555583087a in Ffuncall (nargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3027
#16 0x00005555558239a3 in Ffuncall_interactively (nargs=4, args=0x7fffffffd9e8) at ../../src/callint.c:260
#17 0x0000555555830cb4 in funcall_subr (subr=0x555555e2c340 <Sfuncall_interactively>, numargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3078
#18 0x0000555555830826 in Ffuncall (nargs=5, args=0x7fffffffd9e0) at ../../src/eval.c:3023
#19 0x000055555582f895 in Fapply (nargs=3, args=0x7fffffffdc20) at ../../src/eval.c:2653
#20 0x0000555555823e46 in Fcall_interactively (function=XIL(0x2aaa9cc0eb58), record_flag=XIL(0), keys=XIL(0x55555921b71d)) at ../../src/callint.c:353
#21 0x0000555555830e47 in funcall_subr (subr=0x555555e2c380 <Scall_interactively>, numargs=3, args=0x7fffffffddd0) at ../../src/eval.c:3103
#22 0x0000555555830826 in Ffuncall (nargs=4, args=0x7fffffffddc8) at ../../src/eval.c:3023
#23 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff28b4b4c), vector=XIL(0x7ffff28b47b5), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=1, args=0x7fffffffe320) at ../../src/bytecode.c:632
#24 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff28b4785), syms_left=make_fixnum(1025), nargs=1, args=0x7fffffffe318) at ../../src/eval.c:3147
#25 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff28b4785), nargs=1, arg_vector=0x7fffffffe318) at ../../src/eval.c:3228
#26 0x000055555583087a in Ffuncall (nargs=2, args=0x7fffffffe310) at ../../src/eval.c:3027
#27 0x0000555555830019 in call1 (fn=XIL(0x4590), arg1=XIL(0x2aaa9cc0eb58)) at ../../src/eval.c:2883
#28 0x0000555555745a6c in command_loop_1 () at ../../src/keyboard.c:1505
#29 0x000055555582be77 in internal_condition_case (bfun=0x5555557451a3 <command_loop_1>, handlers=XIL(0x90), hfun=0x555555744586 <cmd_error>) at ../../src/eval.c:1450
#30 0x0000555555744d5c in command_loop_2 (handlers=XIL(0x90)) at ../../src/keyboard.c:1133
#31 0x000055555582b006 in internal_catch (tag=XIL(0xe850), func=0x555555744d32 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1181
#32 0x0000555555744cfe in command_loop () at ../../src/keyboard.c:1111
#33 0x0000555555744032 in recursive_edit_1 () at ../../src/keyboard.c:720
#34 0x0000555555744254 in Frecursive_edit () at ../../src/keyboard.c:803
#35 0x000055555573fd00 in main (argc=5, argv=0x7fffffffe828) at ../../src/emacs.c:2358

Lisp Backtrace:
"execute-extended-command" (0xffffd9f0)
"funcall-interactively" (0xffffd9e8)
"call-interactively" (0xffffddd0)
"command-execute" (0xffffe318)
(gdb) 
* _exit

Thread 1 "emacs" hit Breakpoint 5, __GI_exit (status=-1) at exit.c:142
142	{
(gdb) bt
#0  __GI_exit (status=-1) at exit.c:142
#1  0x00005555557406b4 in Fkill_emacs (arg=make_fixnum(-1)) at ../../src/emacs.c:2717
#2  0x0000555555830de7 in funcall_subr (subr=0x555555e24b00 <Skill_emacs>, numargs=1, args=0x7fffffffc168) at ../../src/eval.c:3098
#3  0x0000555555830826 in Ffuncall (nargs=2, args=0x7fffffffc160) at ../../src/eval.c:3023
#4  0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x5555563acfa4), vector=XIL(0x5555592cd455), maxdepth=make_fixnum(40), args_template=make_fixnum(128), nargs=2, args=0x7fffffffc7b8) at ../../src/bytecode.c:632
#5  0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x5555592cd71d), syms_left=make_fixnum(128), nargs=2, args=0x7fffffffc7b8) at ../../src/eval.c:3147
#6  0x0000555555831584 in funcall_lambda (fun=XIL(0x5555592cd71d), nargs=2, arg_vector=0x7fffffffc7b8) at ../../src/eval.c:3228
#7  0x000055555583087a in Ffuncall (nargs=3, args=0x7fffffffc7b0) at ../../src/eval.c:3027
#8  0x000055555582f895 in Fapply (nargs=2, args=0x7fffffffc860) at ../../src/eval.c:2653
#9  0x000055555582ffa0 in apply1 (fn=XIL(0x50d0), arg=XIL(0x555559315283)) at ../../src/eval.c:2869
#10 0x0000555555828216 in call_debugger (arg=XIL(0x555559315283)) at ../../src/eval.c:345
#11 0x000055555582d53c in maybe_call_debugger (conditions=XIL(0x7ffff27dfdd3), sig=XIL(0x90), data=XIL(0x5555593152b3)) at ../../src/eval.c:2039
#12 0x000055555582cbdc in signal_or_quit (error_symbol=XIL(0x90), data=XIL(0x5555593152b3), keyboard_quit=false) at ../../src/eval.c:1846
#13 0x000055555582c846 in Fsignal (error_symbol=XIL(0x90), data=XIL(0x5555593152b3)) at ../../src/eval.c:1747
#14 0x0000555555827538 in xsignal (error_symbol=XIL(0x90), data=XIL(0x5555593152b3)) at ../../src/lisp.h:4154
#15 0x000055555582ce99 in xsignal1 (error_symbol=XIL(0x90), arg=XIL(0x5555592a0c24)) at ../../src/eval.c:1904
#16 0x000055555582d7d2 in verror (m=0x555555968457 "%s", ap=0x7fffffffca80) at ../../src/eval.c:2096
#17 0x000055555582d883 in error (m=0x555555968457 "%s") at ../../src/eval.c:2107
#18 0x0000555555706347 in x_connection_closed (dpy=0x5555567b8200, error_message=0x7fffffffcd50 "X protocol error: RenderBadGlyph (invalid Glyph parameter) on protocol request 139", ioerror=false) at ../../src/xterm.c:10251
#19 0x0000555555706440 in x_error_quitter (display=0x5555567b8200, event=0x7fffffffcf00) at ../../src/xterm.c:10300
#20 0x000055555570638b in x_error_handler (display=0x5555567b8200, event=0x7fffffffcf00) at ../../src/xterm.c:10273
#21 0x00007ffff7bf61ac in _XError () at /usr/lib/libX11.so.6
#22 0x00007ffff7bf62b8 in  () at /usr/lib/libX11.so.6
#23 0x00007ffff7bf6355 in  () at /usr/lib/libX11.so.6
#24 0x00007ffff7bf640a in _XEventsQueued () at /usr/lib/libX11.so.6
#25 0x00007ffff7be2c48 in XPending () at /usr/lib/libX11.so.6
#26 0x00005555557042cf in XTread_socket (terminal=0x555556722160, hold_quit=0x7fffffffd1e0) at ../../src/xterm.c:9492
#27 0x0000555555755cec in gobble_input () at ../../src/keyboard.c:6980
#28 0x00005555557562e8 in handle_async_input () at ../../src/keyboard.c:7211
#29 0x0000555555756307 in process_pending_signals () at ../../src/keyboard.c:7225
#30 0x000055555582c7dc in maybe_quit () at ../../src/eval.c:1724
#31 0x00005555558306b3 in Ffuncall (nargs=2, args=0x7fffffffd328) at ../../src/eval.c:2995
#32 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff2ac40a4), vector=XIL(0x7ffff2ac3815), maxdepth=make_fixnum(17), args_template=make_fixnum(769), nargs=3, args=0x7fffffffda08) at ../../src/bytecode.c:632
#33 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff2ac2d8d), syms_left=make_fixnum(769), nargs=3, args=0x7fffffffd9f0) at ../../src/eval.c:3147
#34 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff2ac2d8d), nargs=3, arg_vector=0x7fffffffd9f0) at ../../src/eval.c:3228
#35 0x000055555583087a in Ffuncall (nargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3027
#36 0x00005555558239a3 in Ffuncall_interactively (nargs=4, args=0x7fffffffd9e8) at ../../src/callint.c:260
#37 0x0000555555830cb4 in funcall_subr (subr=0x555555e2c340 <Sfuncall_interactively>, numargs=4, args=0x7fffffffd9e8) at ../../src/eval.c:3078
#38 0x0000555555830826 in Ffuncall (nargs=5, args=0x7fffffffd9e0) at ../../src/eval.c:3023
#39 0x000055555582f895 in Fapply (nargs=3, args=0x7fffffffdc20) at ../../src/eval.c:2653
#40 0x0000555555823e46 in Fcall_interactively (function=XIL(0x2aaa9cc0eb58), record_flag=XIL(0), keys=XIL(0x55555921b71d)) at ../../src/callint.c:353
#41 0x0000555555830e47 in funcall_subr (subr=0x555555e2c380 <Scall_interactively>, numargs=3, args=0x7fffffffddd0) at ../../src/eval.c:3103
#42 0x0000555555830826 in Ffuncall (nargs=4, args=0x7fffffffddc8) at ../../src/eval.c:3023
#43 0x0000555555890e41 in exec_byte_code (bytestr=XIL(0x7ffff28b4b4c), vector=XIL(0x7ffff28b47b5), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=1, args=0x7fffffffe320) at ../../src/bytecode.c:632
#44 0x00005555558310bd in fetch_and_exec_byte_code (fun=XIL(0x7ffff28b4785), syms_left=make_fixnum(1025), nargs=1, args=0x7fffffffe318) at ../../src/eval.c:3147
#45 0x0000555555831584 in funcall_lambda (fun=XIL(0x7ffff28b4785), nargs=1, arg_vector=0x7fffffffe318) at ../../src/eval.c:3228
#46 0x000055555583087a in Ffuncall (nargs=2, args=0x7fffffffe310) at ../../src/eval.c:3027
#47 0x0000555555830019 in call1 (fn=XIL(0x4590), arg1=XIL(0x2aaa9cc0eb58)) at ../../src/eval.c:2883
#48 0x0000555555745a6c in command_loop_1 () at ../../src/keyboard.c:1505
#49 0x000055555582be77 in internal_condition_case (bfun=0x5555557451a3 <command_loop_1>, handlers=XIL(0x90), hfun=0x555555744586 <cmd_error>) at ../../src/eval.c:1450
#50 0x0000555555744d5c in command_loop_2 (handlers=XIL(0x90)) at ../../src/keyboard.c:1133
#51 0x000055555582b006 in internal_catch (tag=XIL(0xe850), func=0x555555744d32 <command_loop_2>, arg=XIL(0x90)) at ../../src/eval.c:1181
#52 0x0000555555744cfe in command_loop () at ../../src/keyboard.c:1111
#53 0x0000555555744032 in recursive_edit_1 () at ../../src/keyboard.c:720
#54 0x0000555555744254 in Frecursive_edit () at ../../src/keyboard.c:803
#55 0x000055555573fd00 in main (argc=5, argv=0x7fffffffe828) at ../../src/emacs.c:2358

Lisp Backtrace:
"kill-emacs" (0xffffc168)
"debug" (0xffffc7b8)
"execute-extended-command" (0xffffd9f0)
"funcall-interactively" (0xffffd9e8)
"call-interactively" (0xffffddd0)
"command-execute" (0xffffe318)
(gdb) 

Best Regards

In GNU Emacs 28.1.91 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars)
 of 2022-08-23 built on huana84
System Description: Arch Linux

Configured using:
 'configure --enable-checking=yes,glyphs --enable-check-lisp-object-type
 'CFLAGS=-O0 -g3' --with-cairo --with-harfbuzz --with-modules
 --with-wide-int --with-x-toolkit=lucid --with-json=yes'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11
XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv
bytecomp byte-compile cconv server cus-start cus-load iso-transl tooltip
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 62490 10558)
 (symbols 48 7763 1)
 (strings 32 20300 1896)
 (string-bytes 1 630786)
 (vectors 16 10975)
 (vector-slots 8 133722 15303)
 (floats 8 30 425)
 (intervals 56 195 0)
 (buffers 992 11))