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: Mon, 03 Jun 2024 19:21:32 +0300 Message-ID: <86mso2kneb.fsf@gnu.org> References: <86o78mp6wg.fsf@gnu.org> <86cyp1q20h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11444"; 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 Mon Jun 03 18:39: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 1sEAiJ-0002fJ-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 18:39:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEAhw-0001OG-8M; Mon, 03 Jun 2024 12:38: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 1sEAht-0001NU-RL for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:38:49 -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 1sEAht-0001TI-K2 for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:38:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEAi6-0002sF-FJ for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:39: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, 03 Jun 2024 16:39: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.171743270610913 (code B ref 71289); Mon, 03 Jun 2024 16:39:02 +0000 Original-Received: (at 71289) by debbugs.gnu.org; 3 Jun 2024 16:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:48478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEAhV-0002pv-TY for submit@debbugs.gnu.org; Mon, 03 Jun 2024 12:38:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEAhT-0002pR-Dj for 71289@debbugs.gnu.org; Mon, 03 Jun 2024 12:38: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 1sEARD-0003zD-OD; Mon, 03 Jun 2024 12:21:35 -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=0KUZQytw4XBe/UybDrwLyZBGZwbW799D1l3/dseirOM=; b=g/9XswtvpB+A JuCQpGK5Df839l4la6Qn4Z4+H8njRykxkp6ACNNH8n0OqT+POnHYQDa7kWp5GxgUxvQOOOFafrghl lmAwnxaZXozoW/3PNHbe2c0q27Yhd37cIdUPuefkmRU4/ScoIi6lQfmwWP6jIEUInAaBxpZZ51XFH FTdpr6BpxqMhTXDzl25CPPxJm7zpHdL49un16CltZ+/i6LuVpB2+b5xpH3TR6AL/jtpdWU5ACYcay C3JTocwv7oItpNf1Qg53FSDAd5xyZPt+dUzZ95WSZpfSAupJ860H24POe4vljtTSg8TkJtGH+U0uY fyc+RjWZq1n2O5P4R8k4yw==; In-Reply-To: (message from Daniel Clemente on Mon, 3 Jun 2024 15:35:20 +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:286466 Archived-At: > From: Daniel Clemente > Date: Mon, 3 Jun 2024 15:35:20 +0000 > Cc: 71289@debbugs.gnu.org > > > 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? > > I don't know enough to say whether the terminal is providing wrong numbers. > But it seems that the positions and terminal dimensions aren't wrong, they're just outdated. They were right a > moment ago (i.e. the terminal was really as large as reported) but I was resizing the window during a slow > operation (GC) that was trying to display a message due to garbage-collection-messages t, and it seems that > the GC message is using outdated information about the terminal size. That's my hypothesis. That hypothesis needs to be explained. Which is why I asked to investigate what happens when the SIGWINCH handler is called. > > What are the window and > > frame dimensions at this point? > > (I'm using the example mentioned above: 13, vs. 4 - 1). > The frame seems 4 lines 80 columns. > I'm not sure how to obtain the window dimensions from gdb, since there are several fields. Here are two > attempts to get it, but total_cols/total_lines are 0 so it seems I'm not looking at the right fields. We determine the actual dimensions of the frame in the SIGWINCH handler, and the new dimensions are recorded by the signal handler in f->new_width and f->new_height, see change_frame_size_1.