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 21:17:50 +0300 Message-ID: <86cyp1q20h.fsf@gnu.org> References: <86o78mp6wg.fsf@gnu.org> 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="18054"; 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 20:19:22 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 1sD6qX-0004O9-2X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 May 2024 20:19:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD6q5-0006jP-Fo; Fri, 31 May 2024 14:18: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 1sD6q3-0006ir-Ud for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 14:18:52 -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 1sD6q3-0004g0-M0 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 14:18:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD6qE-00043d-At for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 14:19: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 18:19: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.171717950615516 (code B ref 71289); Fri, 31 May 2024 18:19:02 +0000 Original-Received: (at 71289) by debbugs.gnu.org; 31 May 2024 18:18:26 +0000 Original-Received: from localhost ([127.0.0.1]:55329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD6pd-00042C-LT for submit@debbugs.gnu.org; Fri, 31 May 2024 14:18:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD6pZ-00041h-Cg for 71289@debbugs.gnu.org; Fri, 31 May 2024 14:18:24 -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 1sD6pH-0004aV-Tu; Fri, 31 May 2024 14:18:04 -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=973z4ZEZ8oweAX+HoIHu1jmW9LpfNu5Gsl6+px9xSRs=; b=qKUL4jr+i+uqCBmtU9pk /wdsMDKUltJcuAtluaWFbEcBFtoQCcQ8ss2HYUnte6DMADPfpLmdIc2xfHNxADosXl/970WNGbPvf ednP4VXRQrH6bLmBT8/ciIyVW2+TOW5ROwvV0MYdfLQ2PVpbeA3+7KAjrD9l8DJBR2lKx8hPw5/3D EfeOucGmEVCQMVzhNf+zNPkA0nhvZnsCTAE+qyuEWdTYRKaybHqvTzS0P4rLe1fW56pkD4XCOFcyl YbsSSMVfPI2TZ8Mer0zdzNSvGr4Sa2dFt+c/dq3xksdAaSokdF+M9MlnLyo7CwRyrueuiGRgrTXl1 UwJpqkTJ4RpO6Q==; In-Reply-To: (message from Daniel Clemente on Fri, 31 May 2024 17:07:45 +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:286295 Archived-At: > From: Daniel Clemente > Date: Fri, 31 May 2024 17:07:45 +0000 > Cc: 71289@debbugs.gnu.org > > > 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 (); > > > These were the variables just before emacs_abort, and (abort==1) when aborting. > > At point cmcheckmagic, ¿abort? 0. MagicWrap 1, curY 0, vs. 3 - 1. Now > tty has 3 rows, 14 cols > At point cmcheckmagic, ¿abort? 0. MagicWrap 1, curY 1, vs. 3 - 1. Now > tty has 3 rows, 14 cols > At point cmcheckmagic, ¿abort? 1. MagicWrap 1, curY 3, vs. 3 - 1. Now > tty has 3 rows, 14 cols So you are saying that the terminal lies to us? It has 3 rows, but somehow wraps the cursor to the 4th row? What are the window and frame dimensions at this point?