unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Clemente <n142857@gmail.com>
Cc: 71289@debbugs.gnu.org
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	[thread overview]
Message-ID: <86mso2kneb.fsf@gnu.org> (raw)
In-Reply-To: <CAJKAhPAQ4daADMjY+cMwf_tDw7zaHTdn3-pHvkJQXfGnyHZe7g@mail.gmail.com> (message from Daniel Clemente on Mon, 3 Jun 2024 15:35:20 +0000)

> From: Daniel Clemente <n142857@gmail.com>
> 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.





  reply	other threads:[~2024-06-03 16:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 10:18 bug#71289: 30.0.50; cmcheckmagic aborts when tty_write_glyphs writes "Garbage collecting..." in some cases Daniel Clemente
2024-05-31 11:17 ` Eli Zaretskii
2024-05-31 17:07   ` Daniel Clemente
2024-05-31 18:17     ` Eli Zaretskii
2024-06-03 15:35       ` Daniel Clemente
2024-06-03 16:21         ` Eli Zaretskii [this message]
2024-05-31 17:09 ` Daniel Clemente
2024-05-31 18:26   ` Eli Zaretskii
2024-06-03 15:56     ` Daniel Clemente
2024-06-03 16:03       ` Eli Zaretskii
2024-06-03 16:28         ` Daniel Clemente
2024-06-03 16:36           ` Eli Zaretskii
2024-06-03 16:51             ` Daniel Clemente
2024-06-03 17:44   ` Eli Zaretskii
2024-06-05 13:51     ` Daniel Clemente
2024-06-06  7:55       ` Eli Zaretskii
2024-06-03 15:36 ` Daniel Clemente
2024-06-03 16:25   ` Eli Zaretskii
2024-06-03 16:55     ` Daniel Clemente
2024-06-03 17:39       ` Eli Zaretskii
2024-06-05 13:50         ` Daniel Clemente
2024-06-05 15:06           ` Eli Zaretskii
2024-06-05 16:43             ` Eli Zaretskii
2024-06-06 12:36               ` Daniel Clemente
2024-06-06 12:34             ` Daniel Clemente
2024-06-06 14:53               ` Eli Zaretskii
2024-06-06 15:23                 ` Daniel Clemente
2024-06-06 16:13                   ` Eli Zaretskii
2024-06-06 16:44                     ` Daniel Clemente
2024-06-06 18:06                 ` Daniel Clemente
2024-06-07  6:11                   ` Eli Zaretskii
2024-06-07  6:42                     ` Daniel Clemente
2024-06-07  6:47                       ` Eli Zaretskii
2024-06-05 13:52     ` Daniel Clemente

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mso2kneb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71289@debbugs.gnu.org \
    --cc=n142857@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).