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#71289: 30.0.50; cmcheckmagic aborts when tty_write_glyphs writes "Garbage collecting..." in some cases Date: Thu, 06 Jun 2024 10:55:36 +0300 Message-ID: <86bk4eijyf.fsf@gnu.org> References: <86cyoxly4o.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7600"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71289@debbugs.gnu.org To: Daniel Clemente Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 09:57: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 1sF7zd-0001mf-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 09:57:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF7zN-0007R3-2n; Thu, 06 Jun 2024 03:56:49 -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 1sF7zL-0007QV-Gt for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 03:56:47 -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 1sF7zL-0004O2-89 for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 03:56:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sF7zZ-0005V3-MA for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 03:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71289 X-GNU-PR-Package: emacs Original-Received: via spool by 71289-submit@debbugs.gnu.org id=B71289.171766056421008 (code B ref 71289); Thu, 06 Jun 2024 07:57:01 +0000 Original-Received: (at 71289) by debbugs.gnu.org; 6 Jun 2024 07:56:04 +0000 Original-Received: from localhost ([127.0.0.1]:48431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF7yd-0005SY-20 for submit@debbugs.gnu.org; Thu, 06 Jun 2024 03:56:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF7ya-0005RB-5J for 71289@debbugs.gnu.org; Thu, 06 Jun 2024 03:56:00 -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 1sF7yG-0004Bk-0T; Thu, 06 Jun 2024 03:55:40 -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=q+v8cQqC2OJ+CSeMN71xkiNayEsvcjnZwBhwG7twDOI=; b=KRRwIeCPOMf9 gqWTQN1WHZb8uOSHLfOpSyIf7DtJRc7QdvtmBVWgWzn2lvrWAgbFxINqblaabveAMzBt1ziPa20bO Shz2zQKwaLUo6s1H+Z+JbzHdhAWoIckBjrBxs9fd9PxbliOVL144W/iT7yGpkn2qg7j6+dqcMLxIs riRbz/k3gIuhhUoOv98HEX2W/hbmt2eDyP3xUwLyqgbFENChQub1fdHKDo6m2+EO7lxdwPtXE04fb KMEkXv0jxYIrSn76UVJBoSzlLwrtaY3672SLT4p536QECzBxFVnmKUNnu32jrahjY8VidCW87j6bf MOWrtbC5LL16meci3SNmdQ==; In-Reply-To: (message from Daniel Clemente on Wed, 5 Jun 2024 13:51:43 +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:286668 Archived-At: > From: Daniel Clemente > Date: Wed, 5 Jun 2024 13:51:43 +0000 > Cc: 71289@debbugs.gnu.org > > > > I also saw a new type of TTY+GC error (not sure if it's the same issue > > > as this bug): > > > > > > alloc.c:7517: Emacs fatal error: assertion failed: t->name != NULL > > > > > > Breakpoint 1, terminate_due_to_signal (sig=6, > > > backtrace_limit=2147483647) at emacs.c:443 > > > 443 signal (sig, SIG_DFL); > > > (gdb) bt > > > #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:443 > > > #1 0x000055555573591a in die (msg=0x55555586f838 "t->name != NULL", > > > file=0x55555586e97e "alloc.c", line=7517) at alloc.c:8082 > > > #2 0x00005555557346e8 in mark_terminals () at alloc.c:7517 > > > > If this was while you only resized the terminal, how come a terminal > > was deleted? Any idea what would cause this? > > I assume that it's t->name == NULL what tells you that a terminal was deleted. Yes. > But apparently this terminal wasn't fully deleted, because it's in the > terminal_list. If delete_terminal had run, shouldn't it have removed > it from the list? It should have, yes. > So I don't know what happened. reference_count is still 1. What's more important, kboard, keyboard_coding, and terminal_coding are not NULL. Which means delete_terminal_internal was never run for this terminal. I don't understand how that could happen, given the backtrace you show. I found some unsafe code in delete_terminal and installed a fix. I cannot explain how that code could have caused the assertion violation inside mark_terminals, but maybe it did.