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#73022: 31.0.50; Crash in build_frame_matrix_from_leaf_window after C-x 2 and reducing terminal size Date: Wed, 04 Sep 2024 16:23:37 +0300 Message-ID: <86ed5z5z8m.fsf@gnu.org> References: <86le07624j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: n142857@gmail.com, 73022@debbugs.gnu.org To: rudalics@gmx.at Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 04 15:25:38 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 1slq0u-0009mK-V3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Sep 2024 15:25:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slq0N-0008UQ-Tz; Wed, 04 Sep 2024 09:25:03 -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 1slq0J-0008FC-9E for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 09:24:59 -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 1slq0J-0007Wc-0T for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 09:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=VFeDbwn56k8ymaYreNQsOX8BQp1akwqz3kfRW0V77Tg=; b=G7RMjJqWpV6CKreCro+/s3ACEmWNMvnILeenwM8U5Ue1dY9JgfdA3FZMeQaQMVdU3nY07PJbWG6pt/qrUGbVATzen11TA/ZOr+oH4jizb0pbab/85lLx/ds5V9YQ0lMcoxnSOtgRiSsQRfjv+gF4kzonqABKpbY8xuq4rmZ849JIr+RGavnQHE7C42TyAcmnAl2u1haV3OXAlQ53okqcrbGTXDd2bvd/lkIZYhwg4geE8sF1hfreGmLLEbUHbG7EnZyN1ox5ncG6aSiLhgDBtZqzGBrAwcVWC0uMXL9qJMJDU3eo+Jem1W2xpMPf0KLGG3/LCu6Qmjg/OC5vS9r9NQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slq1K-0001Q6-J7 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 09:26: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: Wed, 04 Sep 2024 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73022 X-GNU-PR-Package: emacs Original-Received: via spool by 73022-submit@debbugs.gnu.org id=B73022.17254563074803 (code B ref 73022); Wed, 04 Sep 2024 13:26:02 +0000 Original-Received: (at 73022) by debbugs.gnu.org; 4 Sep 2024 13:25:07 +0000 Original-Received: from localhost ([127.0.0.1]:33868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slq0Q-0001FN-Mt for submit@debbugs.gnu.org; Wed, 04 Sep 2024 09:25:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slq0O-0001E0-Ru for 73022@debbugs.gnu.org; Wed, 04 Sep 2024 09:25:05 -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 1slpzH-0007Ew-Gr; Wed, 04 Sep 2024 09:23:55 -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=VFeDbwn56k8ymaYreNQsOX8BQp1akwqz3kfRW0V77Tg=; b=lIZvW0jO4zK6 b+665iqYaq/MS4DQNwypFvthY1tPWJWtGTZ4kiaz+SaUNqFADMJhPyxhn683ppyNF1cBL31oz5RU4 +GhmVKzvJ5XD/Jh9MsdrWCEQXNdNClIug6CFBmuGyp/mGGlTMYpTWQCFl53QBd5YJh9Lbb7iK8UiU dIB+GdWCKfEUf8Jny7aCVn2BtsujpI8KAY7Z+iCb9GEiqQPJEp0lAinSJtWKEG7xhto+Rh8a6Ek97 VlmJ/Yq6KsipKVnkNhB00QUOoybqrzxQCJahzLLs3OjDB28T0QUVLjk29HYzSP1uMx5AWmFFKjtqS Ud70uZZYO3oI65Ca6yqdAg==; In-Reply-To: <86le07624j.fsf@gnu.org> (message from Eli Zaretskii on Wed, 04 Sep 2024 15:21:16 +0300) 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:291204 Archived-At: > Cc: n142857@gmail.com, 73022@debbugs.gnu.org > Date: Wed, 04 Sep 2024 15:21:16 +0300 > From: Eli Zaretskii > > > Date: Wed, 4 Sep 2024 09:28:47 +0200 > > From: martin rudalics via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > > To reproduce: > > > 1. Open emacs -Q > > > 2. Press C-x 2 to split the frame (top/bottom) > > > 3. Make the terminal very small (I slowly resize the X window that's > > > running urxvt, to the minimum size, 1 row and 2 columns in my case). > > > This shrinking process alone can produce the crash when the window is > > > around 5 lines high > > > 4. It always crashes in my case. If it doesn't, make the terminal > > > larger again, and repeat the resizing for some seconds until it > > > crashes > > > > > > Note that the C-x 2 is required. The problem doesn't happen with a > > > left/right split (C-x 3). But it happens after a C-x 3 C-x 2. > > > > Kindly have a look at the fix I proposed here: > > > > https://lists.gnu.org/archive/html/emacs-devel/2024-09/msg00054.html > > Thanks, but could you tell how that change could have affected this > assertion violation? AFAICT, adjust_frame_glyphs is not in the > backtrace, so how could moving code inside of it affect what happens > here? In any case, I can cause the assertion violation even after making the change you suggested above.