Current directory is /tmp/emacs/src/emacs-28.1/build/src/ GNU gdb (GDB) 11.2 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /tmp/emacs/src/emacs-28.1/build/src/emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = dumb Breakpoint 2 at 0x1b1caa: file ../../src/xterm.c, line 10285. (gdb) Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated. Use 'set mi-async'. run Starting program: /tmp/emacs/src/emacs-28.1/build/src/emacs -Q -f toggle-debug-on-error --fg-daemon [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Breakpoint 31, main (argc=5, argv=0x7fffffffe7e8) at ../../src/emacs.c:1186 1186 { (gdb) cont Continuing. [New Thread 0x7ffff258a640 (LWP 825)] [New Thread 0x7ffff1bdf640 (LWP 886)] [New Thread 0x7ffff124f640 (LWP 887)] [Detaching after vfork from child process 921] [Detaching after vfork from child process 922] Thread 1 "emacs" hit Breakpoint 37, delete_frame (frame=XIL(0x555556731a1d), force=XIL(0)) at ../../src/frame.c:1965 1965 struct frame *f = decode_any_frame (frame); (gdb) cont Continuing. Thread 1 "emacs" hit Breakpoint 33, x_delete_terminal (terminal=0x555556731800) at ../../src/xterm.c:13450 13450 struct x_display_info *dpyinfo = terminal->display_info.x; (gdb) cont Continuing. Thread 1 "emacs" hit Breakpoint 34, x_delete_display (dpyinfo=0x5555567b0d50) at ../../src/xterm.c:13317 13317 for (t = terminal_list; t; t = t->next_terminal) (gdb) cont Continuing. Thread 1 "emacs" hit Breakpoint 36, delete_terminal (terminal=0x555556731800) at ../../src/terminal.c:319 319 if (!terminal->name) (gdb) cont Continuing. Thread 1 "emacs" hit Breakpoint 35, x_error_handler (display=0x5555560e7c60, event=0x7fffffffceb0) at ../../src/xterm.c:10270 10270 if (x_error_message) (gdb) p *event $1 = { type = 0, display = 0x5555560e7c60, resourceid = 1, serial = 4605, error_code = 146 '\222', request_code = 139 '\213', minor_code = 22 '\026' } (gdb)