From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Clemente Newsgroups: gmane.emacs.bugs Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard Date: Mon, 10 Jun 2024 16:05:29 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6935"; mail-complaints-to="usenet@ciao.gmane.io" To: 71473@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 10 18:33:07 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sGhxB-0001aN-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jun 2024 18:33:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGhwt-0002ov-L7; Mon, 10 Jun 2024 12:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGhws-0002oB-5X for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:32:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGhwr-0008IG-RF for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:32:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGhx8-0004mn-M3 for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Clemente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2024 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71473 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171803715318296 (code B ref -1); Mon, 10 Jun 2024 16:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2024 16:32:33 +0000 Original-Received: from localhost ([127.0.0.1]:45172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGhwd-0004kg-4X for submit@debbugs.gnu.org; Mon, 10 Jun 2024 12:32:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGhwZ-0004k3-JB for submit@debbugs.gnu.org; Mon, 10 Jun 2024 12:32:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGhWz-0008Uv-Ed for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:06:01 -0400 Original-Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGhWw-0001NI-G1 for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:06:00 -0400 Original-Received: by mail-vk1-xa29.google.com with SMTP id 71dfb90a1353d-4e4f05835b5so2696327e0c.0 for ; Mon, 10 Jun 2024 09:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718035557; x=1718640357; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HvzUhVcwmb6ldOJKF1829LlIUo5BdZGFTjUD2Gjfk34=; b=mooYnbbKx3otilFrf7D+vVA77oUgAVNtozxp4jaw8wBXElsl+Irx8U+mp7MsnUSR5o gbrV7WHydyyIB4sCLvbkGOD2SgVeW6fXqiiFXhbKHvZlOYTog7YeXDWlH6sXLJqEE6g2 mG0nMm/TIbiDfyvUZoWFAb9SlM52k1H4WexjL9pmOj1GQ5GUjKH1+ThhwLUv6HwxdLUt YQWQI4UDKLiocOZbncJ+mnftNf130lx3pWDRmxjPESjHq22FXO+ptDqcwXwX3BRmpeUx QZ5nWdeQFLyaLH4kkG2/KLNZT9k/xMzFom8ZG92Fg5Kg8TNCCPEWTgbsacr2q2ZyqV8h 90mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718035557; x=1718640357; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HvzUhVcwmb6ldOJKF1829LlIUo5BdZGFTjUD2Gjfk34=; b=PtCwqVoC7WIO5G0C3jnDL7DP44WNnWfZK0Q+p9ocpFZIYcwBcOpxlBZN1fDe5MCC2+ TqwbG0rG/vBjewGkDOavgkVrvF4MfX2K0ZiMe1kTkeCXLd4N/Q4XJIhMdGZk1obzumjx uYaZ1uHvNUJCky/30aoeoj9+b8jjqkWP9fd/cCEoR+PQ6crI1ySSAqTTsU2tddHUWXjz wx/o0rz2UfwXLBTKQTCnQO14FDl/pi+M2TsXSEmc7JMlVkP81S6lPY5NkD1uIlLl6Yic Lp5VZjENZQ1D+S1dWEIP6zqGJ0TxssHtCmjPf4BQH9zmxNr+/lACu/oJxbIU6AGf9YuC s4Kg== X-Gm-Message-State: AOJu0Yx/sAGG7rGHy+mX9qmMQEuRlrpi4GCXNt7uxQiG0goYLjoYahdE Leg7NxNPedKMEvip2e2ugu8VdQ2uh5E3Eq2mdzzkSeiXHus84Z9cPhUhG3d2HnaSYt7QJEjHdTQ BEN28PR9Yeb3BBlmJBr9kE5BKLz2YxYrA X-Google-Smtp-Source: AGHT+IEe63/IXk6Im4HGXoF11r7KXOTN8AKvAJ+IAgeVijazYuQqMKNpG7UBqCGmqf3AFaETJOSgISUFQlYcFgi5YjM= X-Received: by 2002:a05:6122:3c0e:b0:4da:ae51:b755 with SMTP id 71dfb90a1353d-4ecf280f5a7mr139017e0c.3.1718035557122; Mon, 10 Jun 2024 09:05:57 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::a29; envelope-from=n142857@gmail.com; helo=mail-vk1-xa29.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287050 Archived-At: This is a continuation of bug 71224 and it may be a similar issue. It's also similar to the last bug I just reported (see thisbugnumber-1) I'm using Emacs without X support but running it in an X terminal. With glyph debug enabled. emacsclient, with -Q. I was using the same reproduction procedure as in bug 71224. I was randomly mixing these actions: - automatically filling the Lisp stack by causing infinite recursion every 0.1 seconds, by launching the server like this: emacs --fg-daemon -Q --eval '(progn (defun recurse () (recurse)) (run-with-timer 0.1 0.1 (quote recurse)))' - call to (debug), once or twice, to open a backtrace window - opening new frames, just 2 or 3 - closing a frame, just 1 or 2 - moving the cursor a bit, normally After a few seconds, this happens. This is of course a rare crash, since Emacs is in stress conditions. But debugging and consuming the Lisp stack shouldn't crash the server. Besides, I could reproduce this several times using the methods above and some luck. I don't know whether a call to emacs_abort is considered a problem. Error running timer =E2=80=98recurse=E2=80=99: (excessive-lisp-nesting 1601= ) Error running timer =E2=80=98recurse=E2=80=99: (excessive-lisp-nesting 1601= ) Error running timer =E2=80=98recurse=E2=80=99: (excessive-lisp-nesting 1601= ) Error running timer =E2=80=98recurse=E2=80=99: (excessive-lisp-nesting 1601= ) Breakpoint 1, terminate_due_to_signal (sig=3D6, backtrace_limit=3D40) at em= acs.c:443 443 signal (sig, SIG_DFL); (gdb) bt #0 terminate_due_to_signal (sig=3D6, backtrace_limit=3D40) at emacs.c:443 #1 0x00005555556bd46e in emacs_abort () at sysdep.c:2391 #2 0x00005555556901b3 in restore_kboard_configuration (was_locked=3D1) at keyboard.c:960 #3 0x0000555555772540 in do_one_unbind (this_binding=3D0x7fffffff8bd0, unwinding=3Dtrue, bindflag=3DSET_INTERNAL_UNBIND) at eval.c:3702 #4 0x00005555557728e5 in unbind_to (count=3D..., value=3DXIL(0)) at eval.c= :3834 #5 0x000055555576be9a in unwind_to_catch (catch=3D0x55555605c950, type=3DNONLOCAL_EXIT_THROW, value=3DXIL(0)) at eval.c:1349 #6 0x000055555576c002 in Fthrow (tag=3DXIL(0xfc90), value=3DXIL(0)) at eva= l.c:1378 #7 0x0000555555690a5b in Ftop_level () at keyboard.c:1219 #8 0x0000555555770a79 in funcall_subr (subr=3D0x555555eb81e0 , numargs=3D0, args=3D0x7fffffff8e10) at eval.c:3159 #9 0x0000555555770459 in funcall_general (fun=3DXIL(0x555555eb81e5), numargs=3D0, args=3D0x7fffffff8e10) at eval.c:3040 #10 0x0000555555770762 in Ffuncall (nargs=3D1, args=3D0x7fffffff8e08) at ev= al.c:3093 #11 0x00007ffff2a44926 in F7365727665722d676f746f2d746f706c6576656c_server_goto_toplevel_0 () from /home/dc/.emacs.d/eln-cache/30.0.50-cd05323a/server-0cc44189-5a0bf1= 1b.eln #12 0x0000555555770a92 in funcall_subr (subr=3D0x555556079628, numargs=3D1, args=3D0x7fffffff9040) at eval.c:3161 #13 0x0000555555770459 in funcall_general (fun=3DXIL(0x55555607962d), numargs=3D1, args=3D0x7fffffff9040) at eval.c:3040 #14 0x0000555555770762 in Ffuncall (nargs=3D2, args=3D0x7fffffff9038) at ev= al.c:3093 #15 0x00007ffff2a45da3 in F7365727665722d2d70726f636573732d66696c7465722d31_server__process_filter_1_= 0 () from /home/dc/.emacs.d/eln-cache/30.0.50-cd05323a/server-0cc44189-5a0bf1= 1b.eln #16 0x0000555555770ab9 in funcall_subr (subr=3D0x55555607cda8, numargs=3D2, args=3D0x7fffffff9228) at eval.c:3163 #17 0x0000555555770459 in funcall_general (fun=3DXIL(0x55555607cdad), numargs=3D2, args=3D0x7fffffff9228) at eval.c:3040 #18 0x0000555555770762 in Ffuncall (nargs=3D3, args=3D0x7fffffff9220) at ev= al.c:3093 #19 0x00007ffff2a44e39 in F7365727665722d2d70726f636573732d66696c7465722d616c6c2d70656e64696e67_serve= r__process_filter_all_pending_0 () from /home/dc/.emacs.d/eln-cache/30.0.50-cd05323a/server-0cc44189-5a0bf1= 1b.eln #20 0x0000555555770a79 in funcall_subr (subr=3D0x55555607ccf8, numargs=3D0, args=3D0x7fffffff93b0) at eval.c:3159 #21 0x0000555555770459 in funcall_general (fun=3DXIL(0x55555607ccfd), numargs=3D0, args=3D0x7fffffff93b0) at eval.c:3040 #22 0x0000555555770762 in Ffuncall (nargs=3D1, args=3D0x7fffffff93a8) at ev= al.c:3093 #23 0x00007ffff2a44cde in F7365727665722d70726f636573732d66696c746572_server_process_filter_0 () from /home/dc/.emacs.d/eln-cache/30.0.50-cd05323a/server-0cc44189-5a0bf1= 1b.eln #24 0x0000555555770ab9 in funcall_subr (subr=3D0x55555607cca0, numargs=3D2, args=3D0x7fffffff9528) at eval.c:3163 #25 0x0000555555770459 in funcall_general (fun=3DXIL(0x55555607cca5), numargs=3D2, args=3D0x7fffffff9528) at eval.c:3040 #26 0x0000555555770762 in Ffuncall (nargs=3D3, args=3D0x7fffffff9520) at ev= al.c:3093 #27 0x000055555576fc0b in Fapply (nargs=3D2, args=3D0x7fffffff95d0) at eval= .c:2765 #28 0x00005555557701b6 in apply1 (fn=3DXIL(0x154140), arg=3DXIL(0x7ffff0cdde13)) at eval.c:2981 #29 0x00005555557ef4f7 in read_process_output_call (fun_and_args=3DXIL(0x7ffff0cddd93)) at process.c:6129 #30 0x000055555576ca19 in internal_condition_case_1 (bfun=3D0x5555557ef4c0 , arg=3DXIL(0x7ffff0cddd93), handlers=3DXIL(0x90), hfun=3D0x5555557ef4fd ) at eval.c:1637 #31 0x00005555557f072b in read_and_dispose_of_process_output (p=3D0x5555562= e3150, chars=3D0x55555665bc70 "\200R1VUU", nbytes=3D3784, coding=3D0x5555560ca910) at process.c:6483 #32 0x00005555557efad2 in read_process_output (proc=3DXIL(0x5555562e3155), channel=3D23) at process.c:6269 #33 0x00005555557eec9b in wait_reading_process_output (time_limit=3D30, nsecs=3D0, read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3DXIL(0), wait_proc=3D0x0, just_wait_proc=3D0) at process.c:5947 #34 0x0000555555594fbd in sit_for (timeout=3Dmake_fixnum(30), reading=3Dtrue, display_option=3D1) at dispnew.c:6334 #35 0x00005555556954a3 in read_char (commandflag=3D1, map=3DXIL(0x7ffff0ceec33), prev_event=3DXIL(0), used_mouse_menu=3D0x7fffffff9fef, end_time=3D0x0) at keyboard.c:2923 #36 0x00005555556a6a52 in read_key_sequence (keybuf=3D0x7fffffffa200, prompt=3DXIL(0), dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse, disable_text_conversion_p=3Dfalse) at keyboard.c:10728 #37 0x000055555569113a in command_loop_1 () at keyboard.c:1429 #38 0x000055555576c938 in internal_condition_case (bfun=3D0x555555690d0b , handlers=3DXIL(0x90), hfun=3D0x5555556901b6 ) at eval.c:1613 #39 0x00005555556908e9 in command_loop_2 (handlers=3DXIL(0x90)) at keyboard= .c:1168 --Type for more, q to quit, c to continue without paging-- #40 0x000055555576bd65 in internal_catch (tag=3DXIL(0x68d0), func=3D0x5555556908bf , arg=3DXIL(0x90)) at eval.c:1292 #41 0x00005555556907ff in command_loop () at keyboard.c:1138 #42 0x000055555568fc58 in recursive_edit_1 () at keyboard.c:754 #43 0x00005555556e383c in read_minibuf (map=3DXIL(0x7ffff2105ecb), initial= =3DXIL(0), prompt=3DXIL(0x5555561ac234), expflag=3Dfalse, histvar=3DXIL(0x2aaa9bfbc348), histpos=3Dmake_fixnum(0), defalt=3DXIL(0), allow_props=3Dfalse, inherit_input_method=3Dfalse) at minibuf.c:905 #44 0x00005555556e4f80 in Fread_from_minibuffer (prompt=3DXIL(0x5555561ac234), initial_contents=3DXIL(0), keymap=3DXIL(0x7ffff2105ecb), read=3DXIL(0), hist=3DXIL(0x2aaa9bfbc348)= , default_value=3DXIL(0), inherit_input_method=3DXIL(0)) at minibuf.c:1385 #45 0x0000555555770c28 in funcall_subr (subr=3D0x555555ebb6c0 , numargs=3D7, args=3D0x7ffff0dff0e8) at eval.c:3173 #46 0x00005555557cce11 in exec_byte_code (fun=3DXIL(0x7ffff2105b85), args_template=3D2050, nargs=3D8, args=3D0x7fffffffafa8) at bytecode.c:812 #47 0x000055555577110b in funcall_lambda (fun=3DXIL(0x7ffff2105b85), nargs=3D8, arg_vector=3D0x7fffffffaf68) at eval.c:3252 #48 0x00005555557704a5 in funcall_general (fun=3DXIL(0x7ffff2105b85), numargs=3D8, args=3D0x7fffffffaf68) at eval.c:3044 #49 0x0000555555770762 in Ffuncall (nargs=3D9, args=3D0x7fffffffaf60) at ev= al.c:3093 #50 0x00005555556e6a26 in Fcompleting_read (prompt=3DXIL(0x5555561ac234), collection=3DXIL(0x7ffff1f1e9dd), predicate=3DXIL(0x5555563bc6a5), require_match=3DXIL(0x30), initial_input=3DXIL(0), hist=3DXIL(0x2aaa9bfbc348), def=3DXIL(0), inherit_input_method=3DXIL(0)= ) at minibuf.c:2035 #51 0x00007ffff19caede in F726561642d657874656e6465642d636f6d6d616e642d31_read_extended_command_1_0 () from /opt/dc/emacs/bin/../lib/emacs/30.0.50/native-lisp/30.0.50-cd05323a= /preloaded/simple-fab5b0cf-ba5c37db.eln [=E2=80=A6] (gdb) xbacktrace "recursive-edit" (0xffffc5d0) "debug" (0xffffca50) "funcall-interactively" (0xffffca48) "command-execute" (0xffffcf38) "execute-extended-command" (0xffffd280) "funcall-interactively" (0xffffd278) "command-execute" (0xffffda38) (gdb) frame 2 #2 0x00005555556901b3 in restore_kboard_configuration (was_locked=3D1) at keyboard.c:960 li960 emacs_abort (); (gdb) list 955 { 956 struct kboard *prev =3D current_kboard; 957 pop_kboard (); 958 /* The pop should not change the kboard. */ 959 if (single_kboard && current_kboard !=3D prev) 960 emacs_abort (); 961 } 962 } 963 964 ^L (gdb) p single_kboard $1 =3D true (gdb) p current_kboard $2 =3D (KBOARD *) 0x555556266360 (gdb) p prev $3 =3D (struct kboard *) 0x5555562bb780 (gdb) (gdb) p *prev $6 =3D { next_kboard =3D 0x555556b7ae50, Voverriding_terminal_local_map_ =3D XIL(0), Vlast_command_ =3D XIL(0x2aaa9bc0bfc0), Vreal_last_command_ =3D XIL(0x2aaa9bc0bfc0), Vkeyboard_translate_table_ =3D XIL(0x5555562e32bd), Vlast_repeatable_command_ =3D XIL(0x2aaa9bc0bfc0), Vprefix_arg_ =3D XIL(0), Vlast_prefix_arg_ =3D XIL(0), kbd_queue_ =3D XIL(0), defining_kbd_macro_ =3D XIL(0), kbd_macro_buffer =3D 0x0, kbd_macro_ptr =3D 0xd69707803020008, kbd_macro_end =3D 0x72030200080e0008, kbd_macro_bufsize =3D 0, Vlast_kbd_macro_ =3D XIL(0), Vsystem_key_alist_ =3D XIL(0), system_key_syms_ =3D XIL(0), Vwindow_system_ =3D XIL(0), Vlocal_function_key_map_ =3D XIL(0x7ffff0d0e373), Vinput_decode_map_ =3D XIL(0x7ffff0d0e383), Vdefault_minibuffer_frame_ =3D XIL(0), reference_count =3D 1, echo_string_ =3D XIL(0), kbd_queue_has_data =3D false, immediate_echo =3D false, echo_prompt_ =3D XIL(0) } (gdb) p *current_kboard $7 =3D { next_kboard =3D 0x5555562bb780, Voverriding_terminal_local_map_ =3D XIL(0), Vlast_command_ =3D XIL(0), Vreal_last_command_ =3D XIL(0), Vkeyboard_translate_table_ =3D XIL(0x555555ff9dd5), Vlast_repeatable_command_ =3D XIL(0), Vprefix_arg_ =3D XIL(0), Vlast_prefix_arg_ =3D XIL(0), kbd_queue_ =3D XIL(0), defining_kbd_macro_ =3D XIL(0), kbd_macro_buffer =3D 0x0, kbd_macro_ptr =3D 0x267010200030e2e, kbd_macro_end =3D 0x230e00230d7a01, kbd_macro_bufsize =3D 0, Vlast_kbd_macro_ =3D XIL(0), Vsystem_key_alist_ =3D XIL(0), system_key_syms_ =3D XIL(0), Vwindow_system_ =3D XIL(0), Vlocal_function_key_map_ =3D XIL(0x7ffff0a60053), Vinput_decode_map_ =3D XIL(0x7ffff0a60063), Vdefault_minibuffer_frame_ =3D XIL(0), reference_count =3D 1, echo_string_ =3D XIL(0), kbd_queue_has_data =3D false, immediate_echo =3D false, echo_prompt_ =3D XIL(0) } (gdb) (gdb) p *prev->next_kboard->next_kboard->next_kboard->next_kboard->next_kbo= ard $12 =3D { next_kboard =3D 0x0, Voverriding_terminal_local_map_ =3D XIL(0), Vlast_command_ =3D XIL(0x2aaa9bd8f770), Vreal_last_command_ =3D XIL(0x2aaa9bd8f770), Vkeyboard_translate_table_ =3D XIL(0x5555560796fd), Vlast_repeatable_command_ =3D XIL(0x2aaa9bd8f770), Vprefix_arg_ =3D XIL(0), Vlast_prefix_arg_ =3D XIL(0), kbd_queue_ =3D XIL(0), defining_kbd_macro_ =3D XIL(0), kbd_macro_buffer =3D 0x0, kbd_macro_ptr =3D 0x0, kbd_macro_end =3D 0x0, kbd_macro_bufsize =3D 0, Vlast_kbd_macro_ =3D XIL(0), Vsystem_key_alist_ =3D XIL(0), system_key_syms_ =3D XIL(0), Vwindow_system_ =3D XIL(0), Vlocal_function_key_map_ =3D XIL(0x7ffff2bb09c3), Vinput_decode_map_ =3D XIL(0x7ffff2bb09b3), Vdefault_minibuffer_frame_ =3D XIL(0), reference_count =3D 0, echo_string_ =3D XIL(0), kbd_queue_has_data =3D false, immediate_echo =3D false, echo_prompt_ =3D XIL(0) } (gdb) p kboard_stack $4 =3D (struct kboard_stack *) 0x555556182f90 (gdb) p *kboard_stack $5 =3D { kboard =3D 0x555556266360, next =3D 0x0 } (gdb) (gdb) p *kboard_stack->kboard $14 =3D { next_kboard =3D 0x5555562bb780, Voverriding_terminal_local_map_ =3D XIL(0), Vlast_command_ =3D XIL(0), Vreal_last_command_ =3D XIL(0), Vkeyboard_translate_table_ =3D XIL(0x555555ff9dd5), Vlast_repeatable_command_ =3D XIL(0), Vprefix_arg_ =3D XIL(0), Vlast_prefix_arg_ =3D XIL(0), kbd_queue_ =3D XIL(0), defining_kbd_macro_ =3D XIL(0), kbd_macro_buffer =3D 0x0, kbd_macro_ptr =3D 0x267010200030e2e, kbd_macro_end =3D 0x230e00230d7a01, kbd_macro_bufsize =3D 0, Vlast_kbd_macro_ =3D XIL(0), Vsystem_key_alist_ =3D XIL(0), system_key_syms_ =3D XIL(0), Vwindow_system_ =3D XIL(0), Vlocal_function_key_map_ =3D XIL(0x7ffff0a60053), Vinput_decode_map_ =3D XIL(0x7ffff0a60063), Vdefault_minibuffer_frame_ =3D XIL(0), reference_count =3D 1, echo_string_ =3D XIL(0), kbd_queue_has_data =3D false, immediate_echo =3D false, echo_prompt_ =3D XIL(0) } define print_terminal_list set var $t =3D terminal_list while $t p $t->name set var $t =3D $t->next_terminal end end (gdb) print_terminal_list $1 =3D 0x5555560687b0 "/dev/pts/31" $2 =3D 0x5555561cd5b0 "/dev/pts/30" $3 =3D 0x55555618c9a0 "/dev/pts/26" $4 =3D 0x55555625aca0 "/dev/pts/29" $5 =3D 0x5555560d6e90 "/dev/pts/27" $6 =3D 0x555556a782a0 "/dev/pts/25" $7 =3D 0x5555563cbc20 "/dev/pts/24" $8 =3D 0x55555631e9a0 "/dev/pts/23" $9 =3D 0x555556182f40 "/dev/pts/18" $10 =3D 0x555555fe2870 "initial_terminal" (gdb) In GNU Emacs 30.0.50 (build 8, x86_64-pc-linux-gnu) of 2024-06-09 built on sonn Repository revision: 19806248167b9c4edaadbf4ed428a62fd8c5e412 Repository branch: master System Description: Devuan GNU/Linux 5 (daedalus) Configured using: 'configure --prefix=3D/opt/dc/emacs/ --with-tiff=3Dno --without-tiff --without-libsystemd --without-dbus --with-mailutils --with-native-compilation --with-x-toolkit=3Dno --without-imagemagick --without-xft --without-harfbuzz --without-freetype --without-libotf --without-xwidgets --without-xpm --without-jpeg --without-gif --without-png --without-webp --without-rsvg --without-cairo --without-x --enable-checking=3Dyes,glyphs 'CFLAGS=3D-g3 -O0'' Configured features: GMP GNUTLS LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3DSCIM locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: server-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr compile comint ansi-osc ansi-color ring tool-bar comp-run comp-common rx emacsbug message mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp dired-aux cl-loaddefs cl-lib regexp-opt dired dnd dired-loaddefs term/rxvt term/xterm xterm byte-opt gv bytecomp byte-compile server rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 79456 11259) (symbols 48 7266 2) (strings 32 19563 4524) (string-bytes 1 555520) (vectors 16 9518) (vector-slots 8 101651 9432) (floats 8 33 11518) (intervals 56 2220 0) (buffers 984 14))