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: Fri, 31 May 2024 14:17:35 +0300 Message-ID: <86o78mp6wg.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32449"; 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 Fri May 31 13:18:21 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 1sD0H6-0008Ee-DB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 May 2024 13:18:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD0Gf-00010L-1o; Fri, 31 May 2024 07:17:53 -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 1sD0Gd-0000zd-O2 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 07:17:51 -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 1sD0Gd-0002r1-Fb for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 07:17:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD0Go-0000f9-7I for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 07:18: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: Fri, 31 May 2024 11:18:02 +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.17171542772537 (code B ref 71289); Fri, 31 May 2024 11:18:02 +0000 Original-Received: (at 71289) by debbugs.gnu.org; 31 May 2024 11:17:57 +0000 Original-Received: from localhost ([127.0.0.1]:53319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD0Gj-0000er-6i for submit@debbugs.gnu.org; Fri, 31 May 2024 07:17:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD0Gg-0000ed-SB for 71289@debbugs.gnu.org; Fri, 31 May 2024 07:17:56 -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 1sD0GQ-0002hl-C0; Fri, 31 May 2024 07:17:38 -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=PnpAJUjFnyv3WSMQ/i3nkbxR/6n/ab9Qs5wBbxqWMMw=; b=OZvDKLvRKcDg 7hmezs3aZeUOgTKFHuk3AMjb/FXIRnq2CG7jea+ZKlQqTcJAu5WFkPsvcPP5+CqWP9f4QwN9EiQep AIp9kznS9M7xKwUCKRs9BlkSxhzej5UNCLkS7h72iNYEl87lrbD89RUedOxyAI77hHQc9wGoaDA2o kR2rJ8d66PtzIcLAvY85tXZnXXnMY97I44VrJ74cTyQa1QwAuTx/4TVry63X4nT2Nz3FqWpNct33b dr0csrqTUCL3Os+Q9Kqqsj2os69bMDm6Wz0tip6CHvp6D/KJfosTaUSvotDAM/swpIcCJRcLeY9y2 SKlXZoILu1IYa5GBCe0phA==; In-Reply-To: (message from Daniel Clemente on Fri, 31 May 2024 10:18:35 +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:286273 Archived-At: > From: Daniel Clemente > Date: Fri, 31 May 2024 10:18:35 +0000 > > Running emacs --fg-daemon under gdb, and TTY emacs, with glyph debug > enabled. Using my full .emacs, which includes things like (setq > garbage-collection-messages t). > > I reproduced this 2 times: > > 1. I opened 2 or 3 emacsclient (inside urxvt) and started resizing the > X window of one of them, and using it a bit (open org agenda). I admit > I used weird X window sizes that created a 1x1 terminal, but this > still worked. After some time playing with the X window size (but > without opening/closing X windows), this assert failed. > I was using urxvt with no customizations (i.e. I was seeing a scroll > bar etc.). In this case I used icewm (non-tiled window manager) with > no customizations. > > See BT1 below. > > > 2. I just ran emacs --fg-daemon inside gdb, and I opened my first TTY > frame, in a normal window of normal size; nothing weird (no 1x1 frames > etc). It immediately crashed; this never happened before. I'm using > wmii, urxvt (many customizations), and a command like urxvt -e > emacsclient '-nw' '-e' '(dired "~")' & > > See BT2 below. > > > Maybe it's because of trying the display the "Garbage > collecting...done" message in a small window? (BT1) or in window which > isn't fully initialized yet? (BT2) Thanks, but these backtraces are not enough, because they don't explain why was emacs_abort called. We need to see all the values involved in this condition: if (curX (tty) == FrameCols (tty)) { if (!MagicWrap (tty) || curY (tty) >= FrameRows (tty) - 1) <<<<<<<<<<< emacs_abort ();