From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Clemente 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: Sun, 8 Sep 2024 11:09:40 +0000 Message-ID: References: <86le07624j.fsf@gnu.org> <60579ab6-db81-4f6e-b281-0cee03dc3b82@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73022@debbugs.gnu.org, Eli Zaretskii To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 08 13:12:09 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 1snFpw-0005fY-MZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 13:12:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snFpp-00057R-W7; Sun, 08 Sep 2024 07:12:02 -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 1snFpn-000576-W0 for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:12:00 -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 1snFpn-00056b-Mo for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=QE07cERyDtP/gCwa1bjfglUiPe3CLB4ChkNzCYPNCO0=; b=axKUHxpdjxs8JtnCsHGo8KWljphHpmsEn5S9pflLVbdfUOSbd0+AYN/lE5R79cu6WVRh6mILM6j6M4u6htAf4zVoQyk3m1KgJAM7KPRa/Yqz9+pjbuZCGUpSi+QhExaRHaXZOHNyteRwUL38bFKix5ZagfvgcRj3ZtOJuo13yTCoKYwE2DstiWaZm1WF2l7YzQuUq/b0wllC4MgWVafrO2mNUzNnZRigBIDMNm+45MpG5UWQ+lpy7kobCWwE0HewAn13n68Ce2+a9RtELlefaa4QnG1SNR08Czu+tYPAikIl95S/qvdO04mYyaIznjAD5sxU9UeQYk4zQ4xfj7n3uQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snFpp-0005wL-NC for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Clemente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Sep 2024 11:12:01 +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.172579387322764 (code B ref 73022); Sun, 08 Sep 2024 11:12:01 +0000 Original-Received: (at 73022) by debbugs.gnu.org; 8 Sep 2024 11:11:13 +0000 Original-Received: from localhost ([127.0.0.1]:58044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snFp2-0005v5-T1 for submit@debbugs.gnu.org; Sun, 08 Sep 2024 07:11:13 -0400 Original-Received: from mail-ua1-f48.google.com ([209.85.222.48]:60684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snFp1-0005ut-UV for 73022@debbugs.gnu.org; Sun, 08 Sep 2024 07:11:12 -0400 Original-Received: by mail-ua1-f48.google.com with SMTP id a1e0cc1a2514c-846d536254fso1034799241.1 for <73022@debbugs.gnu.org>; Sun, 08 Sep 2024 04:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725793804; x=1726398604; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QE07cERyDtP/gCwa1bjfglUiPe3CLB4ChkNzCYPNCO0=; b=kQu1Xlqued/xTuCuVgCx8vZnu1JYCQ/AnZQy7kd67jgl7rlw1BOn+bDj0tLofhs9ZD 28FBJ1SUkzhZDp4YppF3Wt/++jHUGCcj5c15yGCz0LJgjNZpKzmUqJb5J/UNNfSykkZ1 IQDhTueKvV0wDaR95glfpxtFofZNHcghY12W2Q/A2xwHhrkPUjDIEbsEwpfNC8h0Z3hp 6/ynHgSv0t+ucs4lOUSqQ2JlegRCjO+Lib8QY0nZ58LZ8gnZH0iZRYAZdm35xgPJ5pu0 KEq06XsX0MdFsTn//0KE3G9doRzc0hFGqFrkp4cQRBl/zP01p8BP1s58BLjDQ0gRCuPt c3fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725793804; x=1726398604; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QE07cERyDtP/gCwa1bjfglUiPe3CLB4ChkNzCYPNCO0=; b=sg9NUUdQA37/rnX3b6MQGb1Y0HM1GwX15mT6cw2VHMC73Fmvll00bWS126d3IPL9LG LJq6ef6nzxUd8KaUairngZR/sfgKQpFoBjHjY1HYIzuWyBLto1HIi+aSMD1J8FAReXdB J7ieDtqxd0547dyoGKjqQU8yqHCK5bx3SuxGGota6OnIg9pu9QU2kX40Hk8h2ok+2Wqv uRcJwarUOgszWOOIG9HKoXUtkFdlROQzYWKeTFin2kcZ86RUVZyaTx5YrmfjMKcsDkpk FlzTxpt7ec3hTPDw7ojvHXkbovgBucT9eQ6VVrVoTfPXsUZGTfDFftT0jQijiPLyAkHR /HLA== X-Forwarded-Encrypted: i=1; AJvYcCU1j/CiywfFTD6hYQyhYmGEb8+G3ozhpkRWwEg4Vl1AIUMSxZGFysd6/MgXP5xVxYfck16q/Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyzVKbpQf5RLkXFefgZwQpFMIsOvBhsbhByifIVbXxeg731tuBV 0E6K/0c7hOFy59wJCkKSGDO9MhPaLpV7x2OH26CGhlhKwZpaIepI/Z2pDhX+IWVPHGF6Cw2rFdT v6OsrAoU/Y8Eu5IRybtkcN6Stw0WLG91VnRQ= X-Google-Smtp-Source: AGHT+IFOjVmkGnnV3HxUf/lJq3nNRryPlRY8/8HNl6VxNGwHqW2fPrgCMPYv2PjwWuvoPXg/2+DHNBdMgvqnHs2MDp4= X-Received: by 2002:a05:6102:4405:b0:48f:447d:7915 with SMTP id ada2fe7eead31-49bde1c58e8mr5711026137.15.1725793804281; Sun, 08 Sep 2024 04:10:04 -0700 (PDT) In-Reply-To: <60579ab6-db81-4f6e-b281-0cee03dc3b82@gmx.at> 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:291440 Archived-At: > I attach the patch now, sorry for not doing it earlier. > Please attach patches if I can help trying out things. I don't know this code so I may break it if I change the low-level behavior. But I can safely add many breakpoints and debug messages to research the bugs. Apparently we could use more assertions in other parts of the code, or move the existing ones (under glyph debug) to catch the problem earlier. In cmcheckmagic we have: if (!MagicWrap (tty) || curY (tty) >= FrameRows (tty) - 1) emacs_abort (); Is this an assertion that needs to always hold? I have tried copy-pasting it at the beginning of tty_write_glyphs and I found that it fails continuously (e.g. it tests: 62 >= 63-1). Actually I used a breakpoint instead of emacs_abort. Are there useful places where I could trace that the assertion holds true?, earlier places than the current place.