all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 51007@debbugs.gnu.org, indrajeet.khandekar@taranawireless.com
Subject: bug#51007: 27.2; emacs hangs when using window-toggle-side-windows
Date: Sun, 10 Oct 2021 14:31:06 +0200	[thread overview]
Message-ID: <c8f0884b-7089-79cc-48be-02351c15976c@gmx.at> (raw)
In-Reply-To: <838rz1rvwm.fsf@gnu.org>

 >> How would I do that?  These are structures like
 >>
 >> (gdb) p r->glyphs[TEXT_AREA]
 >> $1 = (struct glyph *) 0xe2df90
 >> (gdb) p fr->glyphs[TEXT_AREA]
 >> $2 = (struct glyph *) 0xe36690
 >
 > These are the values I meant: the above shows the window's glyph
 > matrix and the frame's glyph matrix are unrelated.  Not sure how that
 > happened; perhaps one of them was recently reallocated?

IIUC these are the beginning of the root's and the frame's text areas
where on TTYs the former must be embedded in the latter (1) when mapped
to the screen and (2) within the memory of my computer.  So if the root
matrix starts before the frame matrix in my memory I have a bug.  Is
that interpretation correct?

 >> BTW, the bug is easily reproducible using the following scenario: With
 >> a master emacs -Q in an -nw session I evaluate
 >
 > So you want me to debug it?

Don't bother.  The culprit sits in 'delete-other-windows-internal'.  I
apparently was just lucky that the assertion error triggered in one
scenario while in the other scenario Emacs somehow bypassed that check,
went into redisplay with bogus values and just got hung.

 >> I suppose 'delete-other-windows-internal' mangles the window dimensions
 >> but the scenarios work on GUI frames and pass all internal checks here
 >> so it will take me some time to sort this out ...
 >
 > On GUI frames, the window's glyph matrices are allocated separately
 > and there's no frame glyph matrix to begin with.

Which means that my first scenario cannot happen on GUIs.  I'm still
surprised that GUI frames apparently swallow quite a number of bogus
values without serious implications.

martin






  reply	other threads:[~2021-10-10 12:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04 13:36 bug#51007: 27.2; emacs hangs when using window-toggle-side-windows Indrajeet Khandekar
2021-10-04 18:22 ` martin rudalics
     [not found]   ` <01944062-1C37-4B9A-98B9-F79F29D3B8F4@taranawireless.com>
2021-10-05  8:09     ` martin rudalics
2021-10-05 10:53   ` Indrajeet Khandekar
2021-10-05 12:37     ` martin rudalics
     [not found]       ` <6D2FC628-BF92-4C35-8552-FBBEF0C7FDDC@taranawireless.com>
2021-10-09 18:57         ` martin rudalics
2021-10-10  6:20           ` Eli Zaretskii
2021-10-10  8:58             ` martin rudalics
2021-10-10  9:48               ` martin rudalics
2021-10-10 10:55               ` Eli Zaretskii
2021-10-10 12:31                 ` martin rudalics [this message]
2021-10-10 13:09                   ` Eli Zaretskii
2021-10-10 17:16         ` martin rudalics
2021-10-12  8:11           ` martin rudalics

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

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

  git send-email \
    --in-reply-to=c8f0884b-7089-79cc-48be-02351c15976c@gmx.at \
    --to=rudalics@gmx.at \
    --cc=51007@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=indrajeet.khandekar@taranawireless.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.