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#51007: 27.2; emacs hangs when using window-toggle-side-windows Date: Sun, 10 Oct 2021 13:55:53 +0300 Message-ID: <838rz1rvwm.fsf@gnu.org> References: <77096009-372B-4C7E-9D2C-9FC72C983AA9@taranawireless.com> <717F6316-6D1B-409F-B4C5-41603EB63208@taranawireless.com> <6D2FC628-BF92-4C35-8552-FBBEF0C7FDDC@taranawireless.com> <83fst9s8oe.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51007@debbugs.gnu.org, indrajeet.khandekar@taranawireless.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 10 12:57:09 2021 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 1mZWVx-0007q0-Eb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Oct 2021 12:57:09 +0200 Original-Received: from localhost ([::1]:57234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZWVw-0004bn-4u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Oct 2021 06:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZWVq-0004bf-Jk for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 06:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZWVq-0003hA-BU for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 06:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZWVq-0004SZ-8m for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 06:57: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: Sun, 10 Oct 2021 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51007 X-GNU-PR-Package: emacs Original-Received: via spool by 51007-submit@debbugs.gnu.org id=B51007.163386338917101 (code B ref 51007); Sun, 10 Oct 2021 10:57:02 +0000 Original-Received: (at 51007) by debbugs.gnu.org; 10 Oct 2021 10:56:29 +0000 Original-Received: from localhost ([127.0.0.1]:54538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZWVC-0004Rd-63 for submit@debbugs.gnu.org; Sun, 10 Oct 2021 06:56:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZWV8-0004RP-Qp for 51007@debbugs.gnu.org; Sun, 10 Oct 2021 06:56:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49514) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZWV2-0003N0-Qz; Sun, 10 Oct 2021 06:56:12 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4597 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZWUy-0005g2-AD; Sun, 10 Oct 2021 06:56:12 -0400 In-Reply-To: (message from martin rudalics on Sun, 10 Oct 2021 10:58:12 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:216802 Archived-At: > Cc: indrajeet.khandekar@taranawireless.com, 51007@debbugs.gnu.org > From: martin rudalics > Date: Sun, 10 Oct 2021 10:58:12 +0200 > > > What are the actual values of the data in this assertion: > > > > eassert (r->glyphs[TEXT_AREA] >= fr->glyphs[TEXT_AREA] > > && r->glyphs[LAST_AREA] <= fr->glyphs[LAST_AREA]); > > 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? > 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? > 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.