From unknown Tue Aug 19 02:53:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard 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-GNU-PR-Keywords: To: 71473@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171803715318296 (code B ref -1); Mon, 10 Jun 2024 16:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jun 2024 16:32:33 +0000 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 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 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 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 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) MIME-Version: 1.0 From: Daniel Clemente Date: Mon, 10 Jun 2024 16:05:29 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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)) From unknown Tue Aug 19 02:53:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2024 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71473 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Clemente Cc: 71473@debbugs.gnu.org Received: via spool by 71473-submit@debbugs.gnu.org id=B71473.171804962111848 (code B ref 71473); Mon, 10 Jun 2024 20:01:02 +0000 Received: (at 71473) by debbugs.gnu.org; 10 Jun 2024 20:00:21 +0000 Received: from localhost ([127.0.0.1]:56271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGlBk-00034z-Cj for submit@debbugs.gnu.org; Mon, 10 Jun 2024 16:00:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGlBh-00034Q-Vw; Mon, 10 Jun 2024 16:00:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGkhi-0002zR-HQ; Mon, 10 Jun 2024 15:29:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=468vF4zFBd7Hx6IT80pLzrhtPa7gbn2TgZYc3/RGiRA=; b=Cl81O/ge2z2E6pyjlyez NWp7zW0a+YDFKuv599YNl9fM1Ju1TgcSMEl0J45jgk180ZiCCvExXRzANBx1QHS2/R/YtOcluHZSy /KcV0Dpr3KO4oIr9BgPXW8zsxmUZeaU6TYrgEBnX6nz44KfrT0rM6mrkOyzDvIZrH9DfbEMor6ZIj YoXdL5d4ir/0hJf20z1HcCXvcEMylwq7r3z+cdOHAaATsjvRmzZ7vIYnR+cZVHtm7WEn8vUxqJpTh AtkkoPFngCI+xrulb4hFoYIQc+pABfVlODUpZHgaVIz7kKK+cCb55wfHs7PXnuaADVsZ2g/Ks437L omLHB2XYXzVgcQ==; Date: Mon, 10 Jun 2024 22:29:15 +0300 Message-Id: <86wmmw7g1g.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Daniel Clemente on Mon, 10 Jun 2024 16:05:29 +0000) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 71473 wontfix thanks > From: Daniel Clemente > Date: Mon, 10 Jun 2024 16:05:29 +0000 > > 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 ‘recurse’: (excessive-lisp-nesting 1601) > Error running timer ‘recurse’: (excessive-lisp-nesting 1601) > Error running timer ‘recurse’: (excessive-lisp-nesting 1601) > Error running timer ‘recurse’: (excessive-lisp-nesting 1601) > > Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:443 > 443 signal (sig, SIG_DFL); > > (gdb) bt > > #0 terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:443 > #1 0x00005555556bd46e in emacs_abort () at sysdep.c:2391 > #2 0x00005555556901b3 in restore_kboard_configuration (was_locked=1) > at keyboard.c:960 > #3 0x0000555555772540 in do_one_unbind (this_binding=0x7fffffff8bd0, > unwinding=true, > bindflag=SET_INTERNAL_UNBIND) at eval.c:3702 > #4 0x00005555557728e5 in unbind_to (count=..., value=XIL(0)) at eval.c:3834 > #5 0x000055555576be9a in unwind_to_catch (catch=0x55555605c950, > type=NONLOCAL_EXIT_THROW, value=XIL(0)) > at eval.c:1349 > #6 0x000055555576c002 in Fthrow (tag=XIL(0xfc90), value=XIL(0)) at eval.c:1378 > #7 0x0000555555690a5b in Ftop_level () at keyboard.c:1219 > #8 0x0000555555770a79 in funcall_subr (subr=0x555555eb81e0 > , numargs=0, args=0x7fffffff8e10) > at eval.c:3159 Sorry, I'm going to drop the ball on this one. You've somehow caused Emacs to enter the debugger while in redisplay, which causes us to throw to top-level. I think it's okay for Emacs to commit suicide in that case. From unknown Tue Aug 19 02:53:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard Resent-From: Daniel Clemente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2024 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71473 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix To: Eli Zaretskii Cc: 71473@debbugs.gnu.org Received: via spool by 71473-submit@debbugs.gnu.org id=B71473.171812483320855 (code B ref 71473); Tue, 11 Jun 2024 16:54:02 +0000 Received: (at 71473) by debbugs.gnu.org; 11 Jun 2024 16:53:53 +0000 Received: from localhost ([127.0.0.1]:36150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH4kr-0005QH-4H for submit@debbugs.gnu.org; Tue, 11 Jun 2024 12:53:53 -0400 Received: from mail-ua1-f54.google.com ([209.85.222.54]:50502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH4kp-0005Q3-76 for 71473@debbugs.gnu.org; Tue, 11 Jun 2024 12:53:51 -0400 Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-80b9c393c8cso714837241.1 for <71473@debbugs.gnu.org>; Tue, 11 Jun 2024 09:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718124767; x=1718729567; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8/qMR4btft5+FZCitimAcH5VZ2IwiU1ZAzmb+875/1o=; b=fcGfJjYPFKGd/rkQPEIVWgaeN+6Pz2g+RxJoXxvOEq1TDpKxUnnZ3jr6CV/yJUYkzk qi+o9eGyhcTdZ4dX1iIcoRLJ9eIxbsK156ugw/0IsXCE/1mF9TlCrN0de+vBlks7dJ6G bgFWJVqBK5XcSEQKgYOLYEkiFkNoYDpuyl+kqQQqSF+2ht9baF+pAO5iYWCKutyY24Vd G2WB3wiyRNRUFM6bIVY1eZ2U/WncTxFjK9Rmb9crXHjzRZLPey9TIEnou7y4nqUK42fg PQaND+4VegLDvvlE8/0WkmyfrsEQb7KKYxeVpwTyNMUQYVeiZT6tlvKKD8ORrG3OIxhJ EQmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718124767; x=1718729567; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8/qMR4btft5+FZCitimAcH5VZ2IwiU1ZAzmb+875/1o=; b=AMXDPufprXRar1O1p9pb3FrQxWZh4EsVbfVdmsG0B6KE9MRk3BQp77WjI9g3RLboQ8 7QtIy3lX+eGUvG8vyqw0SWMC9fPlkwFkxlp/IqWgezEJrpgUeO/vQk0co3qDI76Rkwsb EHbBAlFTmPWmuua/uWbR4ZyMO0xUcYRJaVvrvWOiFsBdc29qqwOGRWFIhiTiM71qYfJx R61k33aAj/hT6QpymRm1kA9UhyVcavfkr+7XkF4DUBv4PswIU+WtRYsvQ60yY7aGb7Ua xWC34viywZBtJ3vjHaHX8IscDOTusk3zLZGMXDAoBVN/SRRo+mTuYNGcmGDJTD+VvDQj 26CA== X-Gm-Message-State: AOJu0YwFj6cMjFGi84UWOcv8PQm4qaMPMR7M4uom+423PXYVzBI+8T5f HYldqRbs8vBc9vsuBVW4BJk9EntE+88oxcUYATR8JBr8Uh5n/bgkTekR4rgsJ0IyQLFLNbCSO+i p9lUySeEt4OpGzXOKm1rpFDGDBTk= X-Google-Smtp-Source: AGHT+IEVnGZSYIKFJONH1565R915MhtJIi4hfv9l9/seKbfw1GTkzq16bvqFqNS4kMtmLvaKaiGIcyS5hhWKpiecVNM= X-Received: by 2002:a05:6122:2089:b0:4ec:fc54:9f86 with SMTP id 71dfb90a1353d-4ecfc54a0f4mr1528712e0c.5.1718124767368; Tue, 11 Jun 2024 09:52:47 -0700 (PDT) MIME-Version: 1.0 References: <86wmmw7g1g.fsf@gnu.org> In-Reply-To: <86wmmw7g1g.fsf@gnu.org> From: Daniel Clemente Date: Tue, 11 Jun 2024 16:52:23 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Sorry, I'm going to drop the ball on this one. You've somehow caused > Emacs to enter the debugger while in redisplay, which causes us to > throw to top-level. I think it's okay for Emacs to commit suicide in > that case. Ok, since it's a rare bug. I'll remind myself that calling (debug) can in some cases crash the server, and I'll try to avoid using (debug) to reproduce other bugs. From unknown Tue Aug 19 02:53:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Clemente Subject: bug#71473: closed (Re: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard) Message-ID: References: X-Gnu-PR-Message: they-closed 71473 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: wontfix Reply-To: 71473@debbugs.gnu.org Date: Tue, 11 Jun 2024 20:02:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1718136122-7982-1" This is a multi-part message in MIME format... ------------=_1718136122-7982-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71473@debbugs.gnu.org. --=20 71473: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71473 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1718136122-7982-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71473-done) by debbugs.gnu.org; 11 Jun 2024 20:01:49 +0000 Received: from localhost ([127.0.0.1]:36271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH7gj-00024E-8J for submit@debbugs.gnu.org; Tue, 11 Jun 2024 16:01:49 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:57704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH7gh-00023z-Mp for 71473-done@debbugs.gnu.org; Tue, 11 Jun 2024 16:01:48 -0400 Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-57c83100c5fso1901656a12.3 for <71473-done@debbugs.gnu.org>; Tue, 11 Jun 2024 13:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718136043; x=1718740843; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=KNciXOTaR/6MlKtCIlVH9E8+QHmzkdmV5+Oybsy+D9g=; b=cT4uEr0LxjwhGepQZLNRH7fF9Jpp2qQJAbCqaoISIuI/kKVsNrFR4Uj579+fW2VD5K QpaQsosI+E0qTHHBZEtm6qn68Cp+FykMieAPwiOQ4DlO4k7OUr0pThrimTwRUFgKz1qG oM864qAFmZdXZmeoTroJaV6vTpIt7ThRIIdVI4H4TdYrTlOO+lZXdIFkc2zrk9A899qw iy7hRgvwzbnZcbPhRi4rvgXdoxHSOyJd/eL/52SMnrkrbNSaOEoIxGSSxs70X7d80vek OYZy1dcGpGB9I6Qprje9cubYHHxIC/gH/tUmeqaeh9cCE15fNMIvzJTVDP5qeESNF6fc f0EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718136043; x=1718740843; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KNciXOTaR/6MlKtCIlVH9E8+QHmzkdmV5+Oybsy+D9g=; b=g9HJsLd1z9+VnZ5o2bP1Bc4kiT17w3ZvwtctQ1SHfFhtdSj7bUrVFUfqJj9gNgNJNM 6GWJIJgsQjWP+KfvabrB4LL4z8n2kcEhc7X1iLTwcv6fKF7EAnP+Ne8qC/hKgRz+w17N QGcMr6B+fhpOMBIaMmomn195SpwpomCvq/TCJE6+Pnc2mNU2un+72pzmjd/qsNp6j6IZ +ADQaXG9CSilMeChIVHQV9GVkRgGLpQ7NsMkSpjnZb/My9IONmm+g0z7YbFkbDd4ws5d YD69FPDP9Ae3CroNw6i6vEJdm/NeSsDNwZDF8/5g0tjv/wNYeJypfBti2kh9KEG95aht QQvg== X-Gm-Message-State: AOJu0YzWflNHzsTgY6PLwJ7R4eVUbh9d3pSqGAVQA1cPsO5+Udb6iiL8 rMOnCIi7w9jJucf5I+mPkRtdkJNPnbKv5KAzThUYvRJABEBBwxnUV+L3xH7IOlZuwJESZURW6RR zh8zSSHfiV84EFa/7+K54EWCvaTs= X-Google-Smtp-Source: AGHT+IEwOd/BLl1ezo1MHiEEtpsg6pQZEmCczIWeLJf0j6CeBMV/TIPlNjNILgjawGGplF6jt5/LJ9IAKqSjzBT90xw= X-Received: by 2002:a50:d495:0:b0:57c:944b:af68 with SMTP id 4fb4d7f45d1cf-57c944bafa0mr1853026a12.3.1718136043117; Tue, 11 Jun 2024 13:00:43 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Jun 2024 20:00:42 +0000 From: Stefan Kangas In-Reply-To: References: <86wmmw7g1g.fsf@gnu.org> MIME-Version: 1.0 Date: Tue, 11 Jun 2024 20:00:42 +0000 Message-ID: Subject: Re: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard To: Daniel Clemente , Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71473-done Cc: 71473-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Clemente writes: >> Sorry, I'm going to drop the ball on this one. You've somehow caused >> Emacs to enter the debugger while in redisplay, which causes us to >> throw to top-level. I think it's okay for Emacs to commit suicide in >> that case. > > Ok, since it's a rare bug. > > I'll remind myself that calling (debug) can in some cases crash the > server, and I'll try to avoid using (debug) to reproduce other bugs. I'm consequently closing this bug report. ------------=_1718136122-7982-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Jun 2024 16:32:33 +0000 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 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 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 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 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) MIME-Version: 1.0 From: Daniel Clemente Date: Mon, 10 Jun 2024 16:05:29 +0000 Message-ID: Subject: 30.0.50; crash in restore_kboard_configuration after pop_kboard To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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)) ------------=_1718136122-7982-1-- From unknown Tue Aug 19 02:53:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2024 20:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71473 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix To: Daniel Clemente Cc: 71473@debbugs.gnu.org Received: via spool by 71473-submit@debbugs.gnu.org id=B71473.171813744610458 (code B ref 71473); Tue, 11 Jun 2024 20:25:04 +0000 Received: (at 71473) by debbugs.gnu.org; 11 Jun 2024 20:24:06 +0000 Received: from localhost ([127.0.0.1]:36348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH82H-0002iW-SD for submit@debbugs.gnu.org; Tue, 11 Jun 2024 16:24:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH82G-0002i3-Bu for 71473@debbugs.gnu.org; Tue, 11 Jun 2024 16:24:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sH74Q-0006PI-Vd; Tue, 11 Jun 2024 15:22:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0XDQc3j+T7is1dnq+HKOhLs07w/2DH56kJjjdoQKUvQ=; b=oGcle0FC+ZiF 3AEw7z/vGPuqHe63YX7hCEIV6GyI68i4mr2mUtKeWEgr7EyiFM/l+WZqd68ppbZqDZOrK9W47CUcC OO5LpDc+UEjTPTWWyFbjlK54+NirDYETzo/Mj7A8vok1oExG29JZEn2xRJ1PK/ANhB+EUHVbrtKHh P56pd2uOF0p6kYfI/JUsUNhIpRW7lqxiiaBfnwR+pZf2aSFxQF8HWVun2R6Cg5dDfmSOXC5z0/DZq RO10nkolfZ7ogGlZIYj2nB6/NNVDmZ461ERjqXu2VuT49fDtbFp5Lf7W0iALlTPaDzXKXPgQJDZ6O fkznYUtBYpl0UTnU62XnHQ==; Date: Tue, 11 Jun 2024 22:22:11 +0300 Message-Id: <86tthz5lp8.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Daniel Clemente on Tue, 11 Jun 2024 16:52:23 +0000) References: <86wmmw7g1g.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Daniel Clemente > Date: Tue, 11 Jun 2024 16:52:23 +0000 > Cc: 71473@debbugs.gnu.org > > > Sorry, I'm going to drop the ball on this one. You've somehow caused > > Emacs to enter the debugger while in redisplay, which causes us to > > throw to top-level. I think it's okay for Emacs to commit suicide in > > that case. > > Ok, since it's a rare bug. > > I'll remind myself that calling (debug) can in some cases crash the > server, and I'll try to avoid using (debug) to reproduce other bugs. I think the main problem is rather the infinite recursion, not debug. The latter just adds insult to injury.