From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71473: 30.0.50; crash in restore_kboard_configuration after pop_kboard Date: Mon, 10 Jun 2024 22:29:15 +0300 Message-ID: <86wmmw7g1g.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25087"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71473@debbugs.gnu.org To: Daniel Clemente Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 10 22:01:15 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 1sGlCd-0006Mw-2V for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jun 2024 22:01:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGlCG-0007rT-RI; Mon, 10 Jun 2024 16:00:52 -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 1sGlC9-0007pp-PM for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 16:00:45 -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 1sGlC9-0001OB-DI for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 16:00:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGlCQ-00037S-9E for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 16:01:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 71473-submit@debbugs.gnu.org id=B71473.171804962111848 (code B ref 71473); Mon, 10 Jun 2024 20:01:02 +0000 Original-Received: (at 71473) by debbugs.gnu.org; 10 Jun 2024 20:00:21 +0000 Original-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 Original-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 Original-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==; In-Reply-To: (message from Daniel Clemente on Mon, 10 Jun 2024 16:05:29 +0000) 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:287071 Archived-At: 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.