X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 12:23:01 +0000 Resent-Message-ID: <handler.61704.B.167706854325917 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 61704 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.167706854325917 (code B ref -1); Wed, 22 Feb 2023 12:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2023 12:22:23 +0000 Received: from localhost ([127.0.0.1]:58191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUo8c-0006jw-VP for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:22:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:39784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1pUo8a-0006jo-AR for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:22:21 -0500 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 <luangruo@HIDDEN>) id 1pUo8Z-0000Gy-AA for bug-gnu-emacs@HIDDEN; Wed, 22 Feb 2023 07:22:19 -0500 Received: from sonic303-48.consmr.mail.ne1.yahoo.com ([66.163.188.174]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>) id 1pUo8W-0007XC-Al for bug-gnu-emacs@HIDDEN; Wed, 22 Feb 2023 07:22:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677068532; bh=bhwgdvhcptjg6hnrjl7qpmlwdXrMm6vvOssNT/FK1O4=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=UENIK1dccx/ZeEAkQlNMpaSVWcqKNaL99uwkt4agju8jtJZ5LWVQuSFK341WTcd9Jq3igTULI5869GQs4qJLjIhKEJ7n2WhlE4K+XvOSJxzL4TBbuaBGMWnOxIE0ojUgKi9i4Nsz9S9oDnrYxPJC8TuEisWaZIv4q6ZEi6ka9QEtsQrjl1+p07ZdfI8liTXTREWg3Xu8EWfVU8z6iQ15DWhsMWsYr3H5bKxkCPKpPKixYAys5S4lzHtF0XaOnuotOXDCgQM2Mi2boDIL0zWXVJrhhUCx+rr1yrmvEzx0EednJhyJHm6/CkK9e1KFn2skF+KfppEluo3uspMxMk0U9A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677068532; bh=CzLpweOHWc5PR11zrqznd3FS3zUZuf+jv/mSx1LPl33=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=DnoDutPwSRMZe5sOTzT5WTK0ZA6/FxqEAyZ6a3qZA/pNf5Sah2GXYOx8TUATHF4CBju5d7iw+TSh7YoLq1aVuRY5f7g1Kj6WnGzJXVosww5eTBC+CQMs36w9j/Jwh0qP/Zh131/Pky5EBMrS9AptI7eKfYymSkkcTInNq6ClGrSy2M4ApTdZwzdpSnwpGRz86wJ/NpS6JrUbwpXy5VodwpyDP6o1Iep2u/x3lf5nQsp1J/EHBhAKP76cVAVTkKqKiSWi0uzYHC5yg5974hONHf3MYd2/VmCq/J7Y5qqJ0PWB5wHULS4xnhf7Rfrhym+9vvqzJhiBxMLy8o6nSc4gdg== X-YMail-OSG: 5zry4poVM1nzsmAbXOyqGACXZ1DtRgrgWSDBx_hwRt38rFPqQJJ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w7w505Kohvh64Yv 1SfD1gEA2sd9zsFVYS6VE9.EJGoX_bl_giYilFuPhaU2SvMIDHKpjIBqviIvsdHcv72v3miDprDe v91.h0sPxjdeYXCfgraNC02vP2DugtG6XR0O9Mggl3MdjbOK_W76m6qGZS8ZpOGjS5YXpZ7A- X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Feb 2023 12:22:12 +0000 Received: by hermes--production-sg3-9fc5746c8-qs9hb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1a505333ec2cc49eeda28a5e9e9b9fa6; Wed, 22 Feb 2023 12:20:09 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> Date: Wed, 22 Feb 2023 20:20:02 +0800 Message-ID: <874jrdq4ct.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain References: <874jrdq4ct.fsf.ref@HIDDEN> X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 4738 Received-SPF: pass client-ip=66.163.188.174; envelope-from=luangruo@HIDDEN; helo=sonic303-48.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.6 (-) I just got the following crash: #0 0x00007f43164b0e7c in __pthread_kill_implementation () at /lib64/libc.so.6 #1 0x00007f4316460aa6 in raise () at /lib64/libc.so.6 #2 0x000000000041dd7d in terminate_due_to_signal (sig=sig@entry=8, backtrace_limit=backtrace_limit@entry=40) at emacs.c:464 #3 0x000000000041e244 in handle_fatal_signal (sig=sig@entry=8) at sysdep.c:1783 #4 0x000000000055f118 in deliver_thread_signal (sig=8, handler=0x41e239 <handle_fatal_signal>) at sysdep.c:1775 #5 0x000000000055f1f9 in deliver_fatal_thread_signal (sig=<optimized out>) at sysdep.c:1795 #6 0x00007f4316460b50 in <signal handler called> () at /lib64/libc.so.6 #7 0x0000000000453617 in get_narrowed_begv (w=<optimized out>, pos=13523) at xdisp.c:3519 #8 0x0000000000456ee5 in reseat (it=0x7ffc4e7ed560, pos=..., force_p=<optimized out>) at xdisp.c:7468 #9 0x00000000004574fb in init_iterator (it=<optimized out>, w=<optimized out>, charpos=<optimized out>, bytepos=<optimized out>, row=<optimized out>, base_face_id=<optimized out>) at xdisp.c:3488 #10 0x000000000045cac2 in start_display (it=it@entry=0x7ffc4e7ed560, w=w@entry=0xef69700, pos=...) at xdisp.c:3595 #11 0x000000000046bc16 in try_window (window=window@entry=0xef69705, pos=..., flags=flags@entry=1) at xdisp.c:20561 #12 0x000000000048abb8 in redisplay_window (window=<optimized out>, just_this_one_p=<optimized out>) at xdisp.c:19953 #13 0x000000000048d65b in redisplay_window_0 (window=window@entry=0xef69705) at xdisp.c:17439 #14 0x00000000005cac14 in internal_condition_case_1 (bfun=bfun@entry=0x48d630 <redisplay_window_0>, arg=arg@entry=0xef69705, handlers=<optimized out>, hfun=hfun@entry=0x444e20 <redisplay_window_error>) at eval.c:1498 #15 0x0000000000442254 in redisplay_windows (window=0xef69705) at xdisp.c:17409 #16 0x0000000000442275 in redisplay_windows (window=0x5649ac75) at xdisp.c:17403 #17 0x00000000004755db in redisplay_internal () at xdisp.c:16863 #18 0x000000000054ef03 in read_char (commandflag=1, map=0x20219f93, prev_event=0x0, used_mouse_menu=0x7ffc4e7f2bcb, end_time=0x0) at keyboard.c:2627 #19 0x0000000000551bc5 in read_key_sequence (keybuf=<optimized out>, prompt=0x0, dont_downcase_last=<optimized out>, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:10074 #20 0x0000000000553a67 in command_loop_1 () at keyboard.c:1376 #21 0x00000000005cab87 in internal_condition_case (bfun=bfun@entry=0x5538c0 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x547210 <cmd_error>) at eval.c:1474 #22 0x000000000053fc4a in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1125 #23 0x00000000005caae1 in internal_catch (tag=tag@entry=0xff30, func=func@entry=0x53fc30 <command_loop_2>, arg=arg@entry=0x90) at eval.c:1197 #24 0x000000000053fbef in command_loop () at keyboard.c:1103 #25 0x0000000000546dc1 in recursive_edit_1 () at keyboard.c:712 #26 0x000000000054713e in Frecursive_edit () at keyboard.c:795 #27 0x00000000004264c2 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2529 The cause is an arithmetic trap in get_narrowed_begv: return max ((pos / len - 1) * len, BEGV); where len is 0. The window was previously being resized, and has a pixel width of 24. In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu) of 2022-12-24 built on trinity Repository revision: 0e39ad6fa56d50b4710157f0b6f396e492da0dfb Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101099 System Description: Fedora Linux 37 (Workstation Edition) Configured using: 'configure --with-native-compilation --with-x-toolkit=no --without-cairo --without-tree-sitter' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF WEBP X11 XDBE XFT XIM XINPUT2 XPM ZLIB Important settings: value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: electric-pair-mode: t desktop-save-mode: t global-telega-mnz-mode: t telega-root-auto-fill-mode: t telega-active-locations-mode: t telega-patrons-mode: t display-time-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t lost-selection-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Po Lu <luangruo@HIDDEN> Subject: bug#61704: Acknowledgement (29.0.60; Crash in get_narrowed_begv) Message-ID: <handler.61704.B.167706854325917.ack <at> debbugs.gnu.org> References: <874jrdq4ct.fsf@HIDDEN> X-Gnu-PR-Message: ack 61704 X-Gnu-PR-Package: emacs Reply-To: 61704 <at> debbugs.gnu.org Date: Wed, 22 Feb 2023 12:23:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 61704 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 61704: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61704 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 12:49:01 +0000 Resent-Message-ID: <handler.61704.B61704.16770700875171 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770700875171 (code B ref 61704); Wed, 22 Feb 2023 12:49:01 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 12:48:07 +0000 Received: from localhost ([127.0.0.1]:58233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUoXX-0001LI-Cu for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:48:07 -0500 Received: from heytings.org ([95.142.160.155]:39800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1pUoXU-0001Ks-DA for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:48:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1677070082; bh=L7OwG2oXjQWsJ8DWH8ne7rPdQthVrSMY/cOfxnGKpL4=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=oZlkDOJb3K8ZzsEEDV2maVI248Vfa3qhqxqvpYr7joKloKLM7TOOoUbrA9YMC0PaV 1o6/9ALP0rb2gnzt/LDgj6Gkljd/mjBcG9eaZE5oJCWOcWeXagR2Cnj4ArzvnBP30u 1oZUyKien2dofedCEfUZpKGLQBP9fXRoezrBdzBWzqI2VqFCsTmaV9/zgmk9nq9d6e pcssKzS+eecw1VyaQaRHTkD6M6cEzrANndExOddSNoBRXltcbTRVloCgKagg+O1sYh wfTM224J/xK535o2VFPv0EOuxEkjtBgPWpehVXu8CLzCdYvzu+JLLajPq1EDgcqUlK bmcCjhgiHXLjQ== Date: Wed, 22 Feb 2023 12:48:02 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <874jrdq4ct.fsf@HIDDEN> Message-ID: <e737b605e9c064e56128@HIDDEN> References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > > The cause is an arithmetic trap in get_narrowed_begv: > > return max ((pos / len - 1) * len, BEGV); > > where len is 0. The window was previously being resized, and has a > pixel width of 24. > How can len possibly be 0 at that point? It is (in short) window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) * window_body_height (w, WINDOW_BODY_IN_CANONICAL_CHARS). We could add a condition in get_narrowed_len to return 1 when the result is 0, but it could be a bug somewhere else (can a window body have a zero width and/or height?), in which case it would be better to fix the bug there.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 12:58:02 +0000 Resent-Message-ID: <handler.61704.B61704.16770706586226 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770706586226 (code B ref 61704); Wed, 22 Feb 2023 12:58:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 12:57:38 +0000 Received: from localhost ([127.0.0.1]:58243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUogj-0001cL-Mf for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:57:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1pUogg-0001c5-Ul for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:57:36 -0500 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 <eliz@HIDDEN>) id 1pUogb-000620-JL; Wed, 22 Feb 2023 07:57:29 -0500 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=oW8Gb9AZqZZ5WFSzka+qHYSBfGffg1QeJ7UPOnjC3Rw=; b=pL7OdOCpphJK rTCK29NYBoeLGhAe1oTfd0IzeELmNvQU4oDuqNr+LhoRntRxQX+JuOknRUkq92HvjJOcFqDlAPN/X g7EKHp5KdofLmd86sT8BVrB8NunNCTz0LUpsQr2iJjfBWrOidM+EOKzMYTWUBm3HiF2RVqddo2efv DlsdC8R+Cd6f/M3MS3mZPSDWq9g5590C57EtjyrNbak4MNA7Z9H5Bfz1Rj8ceWur/EFTYrjjRaSAu tLH5FZgRCerp4uep93XckUgKnL2RDILfJTx0myThdshFDo94H0RYWnAVB5Z2LN32+UL1l8K9w6Fkj /fjWxY+bSxNZjJpy5VzBFw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pUoga-0007aK-Vd; Wed, 22 Feb 2023 07:57:29 -0500 Date: Wed, 22 Feb 2023 14:57:42 +0200 Message-Id: <83edqhsvqx.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <874jrdq4ct.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 22 Feb 2023 20:20:02 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > The cause is an arithmetic trap in get_narrowed_begv: > > return max ((pos / len - 1) * len, BEGV); > > where len is 0. The window was previously being resized, and has a > pixel width of 24. How do you get such windows? I thought we never allowed windows that are so small. Anyway, I installed a possible fix on the emacs-29 branch, please see if it solves this.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:00:02 +0000 Resent-Message-ID: <handler.61704.B61704.16770707846445 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770707846445 (code B ref 61704); Wed, 22 Feb 2023 13:00:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 12:59:44 +0000 Received: from localhost ([127.0.0.1]:58248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUoim-0001ft-7l for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:59:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1pUoil-0001ff-1r for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 07:59:43 -0500 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 <eliz@HIDDEN>) id 1pUoif-0007Bd-Qh; Wed, 22 Feb 2023 07:59:37 -0500 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=6z8v/tQOSYPlOhVds/oFCFArkrBztkiipM4ddJchwXE=; b=Qad6PDUsQwp7 m2dHSmiPHvUK/k1USh/JktBxLyiZtC7jGxayaYJRrcIxuuM3bBW9ayU+Dz555puWsZi/5KO8mfrDI 49irXyUFYEzFVCBsgz+OHRs6Jtuj16fYxgqVO7DdVJoTN1iHsrJIftEwDCPosmppZqVkcOc0A66MD pCx0MegKLilDQgO5cf+R5au3a+ctq24uojy6+6I0AJmFialUG9wRPrJWwvWcWQzJbDTyFbfztgQO6 yCA1IZTPEgQeCgNWKQdZqayvWYh7uMxE6youeOc/J+ocjqdlb2neVP9cPajMAt418i4ZLrAsgbbWr tXqFl1z+jwYI7UZM1voodg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pUoif-0002Sx-6u; Wed, 22 Feb 2023 07:59:37 -0500 Date: Wed, 22 Feb 2023 14:59:51 +0200 Message-Id: <83cz61svnc.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <e737b605e9c064e56128@HIDDEN> (message from Gregory Heytings on Wed, 22 Feb 2023 12:48:02 +0000) References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 61704 <at> debbugs.gnu.org > Date: Wed, 22 Feb 2023 12:48:02 +0000 > From: Gregory Heytings <gregory@HIDDEN> > > > > The cause is an arithmetic trap in get_narrowed_begv: > > > > return max ((pos / len - 1) * len, BEGV); > > > > where len is 0. The window was previously being resized, and has a > > pixel width of 24. > > > > How can len possibly be 0 at that point? It is (in short) > window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) * window_body_height > (w, WINDOW_BODY_IN_CANONICAL_CHARS). We could add a condition in > get_narrowed_len to return 1 when the result is 0, but it could be a bug > somewhere else (can a window body have a zero width and/or height?), in > which case it would be better to fix the bug there. I agree that we should understand how this happened (and asked a similar question), but I installed a defensive protection anyway. It cannot do any harm.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:18:02 +0000 Resent-Message-ID: <handler.61704.B61704.16770718518343 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770718518343 (code B ref 61704); Wed, 22 Feb 2023 13:18:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:17:31 +0000 Received: from localhost ([127.0.0.1]:58276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUozy-0002AV-Ng for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:17:30 -0500 Received: from heytings.org ([95.142.160.155]:39866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1pUozw-0002AN-Ne for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:17:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1677071847; bh=r53jAQ6jDMPRDM4UbXsrI0n4HJXqeQxwhohvPx68ob0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=XBcqJyUG/o9ecSMClo+gFgyUlGmA2z7x0UEoSVgXE6OIX7VRd3Q9hz+TAX/Wxu204 +FNwF1SbBK3xJUEn22dG4Ucuk+cLWbmRyDavS5mqP2LRJC+qDF8PYSUFNayXb6KNPH Hii8nGoUficu8mzZ39qot1GvfpJb8h1rtxXt9M60RXD/OWZ6TOQOy4AUtrh14W9EgO V6nP1sCLnkiH4X2zOSo5yHhrCCSRZ06RXNTGqYQujXyxWQEnK3wHC4ICxOYL8tR+Wb gh0Xg1yyTs6X0frMuKyuhyDjqq+xpnBN0to/gwdVEwIXCy+1txzFqaIv3b3mTtbysn 15zECDV5EAnyg== Date: Wed, 22 Feb 2023 13:17:27 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <83cz61svnc.fsf@HIDDEN> Message-ID: <e737b605e91bf92bec61@HIDDEN> References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> How can len possibly be 0 at that point? It is (in short) >> window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) * >> window_body_height (w, WINDOW_BODY_IN_CANONICAL_CHARS). We could add a >> condition in get_narrowed_len to return 1 when the result is 0, but it >> could be a bug somewhere else (can a window body have a zero width >> and/or height?), in which case it would be better to fix the bug there. > > I agree that we should understand how this happened (and asked a similar > question), but I installed a defensive protection anyway. It cannot do > any harm. > Okay. Let's hope this will not hide another real bug. I found a way to get such small windows: set window-min-width, window-min-height, window-safe-min-width and window-safe-min-heigth to 0. Of course doing that ignores the fact that the docstring of the window-safe-min-* variables say that "Anything less might crash Emacs", and that their values are 2 (width) and 1 (height). Which makes me wonder why these variables can be changed / exist.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:19:01 +0000 Resent-Message-ID: <handler.61704.B61704.16770719318470 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: Gregory Heytings <gregory@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770719318470 (code B ref 61704); Wed, 22 Feb 2023 13:19:01 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:18:51 +0000 Received: from localhost ([127.0.0.1]:58281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUp1H-0002CX-4w for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:18:51 -0500 Received: from sonic303-48.consmr.mail.ne1.yahoo.com ([66.163.188.174]:37679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1pUp1E-0002CK-Lh for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:18:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677071922; bh=1qk1lzI0ONLpHfgHGSNmhDJgtlS98rdRTIVk4ovg204=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=pKiscYEGoY1dBcUP3aMvyOTn0103CSusl9yf2x8U1QyCoRiJb2MkAbwD2NluiRnWLYh0YW2y4tf15SVnLZtfjRQ9JIOBkqwLLyKhqq72hCHOS0QqFCE9X+hCLMmne0iFokZ4y6mQGEvMEYy5IZ9d0D+82Rsf60n6MwTGYASHcK9nz6kJMF4Ld0LKb0HXQwZUFDK/UQw55Y32/oXQjIqe4wXXxREh0sMewJAvYE8jst4KFB1YfyUpao2XmuC6WXFjqVy0pxWvqxLkvEwtYZAR5gJCo/pImCW/3MjktwqMN+yWBg3XqzlNhAKYSeIFRGuBSIlY9QZhoX0ppsGPBFwVwA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677071922; bh=agtuvQ+By3ZgeiuoaG3Agjqsmnsf67dmg9eNwVcOeCT=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=fA5eyeKJFRhY23KqpaqiEoYpU6tODymska70Ytf5nW8te4dfjWyC8EpA9t+V8LNBZhKmhiKdwNv/Ns9t6sG423VCKE0eFrrZs9F5JWR1vkcZUwKHVyjNA2wZG8sglKrJz5vP1pueovbLysm7BTEUdPicaI8I+5lHZNTGArd5z1Z9NSsp/gT8uuoaYnI1WLLeGizK8Mp2irvJpJXtJUOzZBr1PoJw54IdDKhv2tn4gwCW2MihQiThF37PaTDm/vZvtOwn5KGGkQJGXtDZU4phytdrXl+4yXcjslQu4ij8UssOka2CD0Y6evhCHXZJPMEX0/4n4QEGivkcRmMhkWvKtg== X-YMail-OSG: eBR_FN8VM1kILaAwgooxLrZ0uI.lxVRmOlJd9pDLL6jfhLFjk6S0sNnoBeZJws6 M2m_iB4p5L7pxetkz8uxaHk3g_hmuvlLcn7Li16G_hsWOsX3eX.X_3WthxL6AbPex0RZ9IsduGO6 0czBhESNhOchQA.CDNv3dHY1PbeUQb1N6w8I3vugfMfstnZDIiRQKAqggYPK_d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1b Q8gs6o1nz X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Feb 2023 13:18:42 +0000 Received: by hermes--production-sg3-9fc5746c8-pz6sb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4cd3d3ddf6a1bf0d8f406b50b11d69c7; Wed, 22 Feb 2023 13:16:37 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> In-Reply-To: <83cz61svnc.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 22 Feb 2023 14:59:51 +0200") References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> Date: Wed, 22 Feb 2023 21:16:31 +0800 Message-ID: <87zg95on68.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 994 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: >> How can len possibly be 0 at that point? It is (in short) Because the pixel width of W is less than its frame's column width. The division performed window_body_width is truncating, i.e: 24 / 25 = 0 and I suspect the actual width being divded at that point is less than w->pixel_width, since that window had fringes. >> window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) * window_body_height >> (w, WINDOW_BODY_IN_CANONICAL_CHARS). We could add a condition in >> get_narrowed_len to return 1 when the result is 0, but it could be a bug >> somewhere else (can a window body have a zero width and/or height?), in >> which case it would be better to fix the bug there. > > I agree that we should understand how this happened (and asked a > similar question), but I installed a defensive protection anyway. It > cannot do any harm. I did say that this happened while resizing the window. It was being displayed in an ediff-created frame.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:27:02 +0000 Resent-Message-ID: <handler.61704.B61704.16770723669270 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16770723669270 (code B ref 61704); Wed, 22 Feb 2023 13:27:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:26:06 +0000 Received: from localhost ([127.0.0.1]:58306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUp8H-0002PS-PM for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:26:06 -0500 Received: from sonic302-48.consmr.mail.ne1.yahoo.com ([66.163.186.174]:32874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1pUp8F-0002Ox-EK for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:26:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677072357; bh=M/eU2YtljLvpSdf2rAPyg70s2pIcTYV0HuhUJf+25Rg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=clPT307WeartCXJhpyc52NyRgtBvAu7Jq9BXaQv8zj7Vqo1PmIJjJF4DLcHD39wl91qpsUIaa3qc0GOKy+X/WWM9SE4NkiT8hUdYScRUySiVbr+WCKuM4oI2G4RdxqU9/B3Blvd5kA0Qw3P1KZXIsuhmkWbhJTuCsf+TsG/N46aEfTayZ2hF0JahdAkGJa3JolTqbH3KNwZuAAuTSf/JfkstNqn9eR8ziHsz6xk3+xq4elpRtGLD0wWDLzF8itW48O11Zi1UuLSL0j/aWCSyFYr57lO1bfSUsXNUJ1gO/VgXEGoc8NKTEeZU6qKIc9KFRlKdwzPMdcSC8WmK+pnhYQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677072357; bh=6q8JQ209t6kE4H5HB110g5XH0dTIDj81XLC8eE4C0tf=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=pw+f5XvyT0TyDRt6gUB5pCawXjCXeeIM50A7Lb4B+UGRQCElz88A6mbhFSwTkR1xPCplqKYlapXi2D89NIjMAdyDx/AEQG1hm6aKgqjxV0soD0YLonI47SKFJbPpokXUb1UMNcPFfhNxoce9/VJp7jDq+VjsvWtgcEvVKGaVBzP3rMxhSOxbo2+wwCMPedOkHKcpbKz9iFMhrdJhJK/Q1pR55V/43pS+dPaZCIc51O0ydiKTplGxblofAnGClBkAOjDYG4XFuGEcjMYxkuPkZUq362xg0arkICKfmLFhfwool4p9a1avhXUC1A4lKAV/otAvH6JjSYk4yJorxEVOHg== X-YMail-OSG: UwTNTBMVM1nSyf6a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MVkjWZQid87wh2 .aFKE1ZyuMow0lPEv_VHa7zg0fKPS7Rxg8vMr8sAW.P1EmRqqB1aRxog06oKDP6u70bJGsCXrlr9 gBxAT1E949ZzPQrROQrYMQAtgoErX63j_ch44fQrWFaaoAtQ29UybX7iLchoDCGKWAg.d159.zuE Lfg1THeQ3EA-- X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Feb 2023 13:25:57 +0000 Received: by hermes--production-sg3-9fc5746c8-8hlql (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 30f70ec542f6b23f28b3b18b23515c76; Wed, 22 Feb 2023 13:23:54 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> In-Reply-To: <83edqhsvqx.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 22 Feb 2023 14:57:42 +0200") References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <83edqhsvqx.fsf@HIDDEN> Date: Wed, 22 Feb 2023 21:23:43 +0800 Message-ID: <87v8jtomu8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 411 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: > How do you get such windows? I thought we never allowed windows that > are so small. I tried resizing an ediff frame. > Anyway, I installed a possible fix on the emacs-29 branch, please see > if it solves this. We'll have to wait another 30 days to find out, I guess, because that was my uptime up to this point. Resizing the ediff popup no longer crashes. Thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:41:02 +0000 Resent-Message-ID: <handler.61704.B61704.167707324610838 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.167707324610838 (code B ref 61704); Wed, 22 Feb 2023 13:41:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:40:46 +0000 Received: from localhost ([127.0.0.1]:58335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUpMT-0002ok-QT for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:40:46 -0500 Received: from heytings.org ([95.142.160.155]:39924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1pUpMR-0002oa-8p for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:40:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1677073242; bh=8xbVIBupYd9YMMPddl3njkFY3YAmTl769paEAGVT8oQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=p5FLBJblBMdwT9BibsOnl/6ZlTweHcUi9VYNI5CYtV49R6UKS/kXWVFUHpJzTZlkw WI85mf7pKLTHENuZDA8iUkDHy/x48Urhd8n+7AqQvbEADnXJfm/CqG28imwQx7otN3 1XyhYi86fHk6VILF3YPHmSZ3hNKIIB6A/OeEZW7/ryHOXc2VXqMp48t67iBSQl9JyM JEHfxqD0fTjm4x2mcCj98ewFenIpj+Hnvd2WYUovJsse3D67NgfxHXJwMc+kdYGW1i B3QJ+BlUqyRnhSVFBl6p8Ec9kcsaSuWiD08I9Xjg4dUajIW4UCLaBajeF6NDNa9IuY O7dbXZNm7KLTg== Date: Wed, 22 Feb 2023 13:40:41 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <87zg95on68.fsf@HIDDEN> Message-ID: <e737b605e94095710e94@HIDDEN> References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <87zg95on68.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >>> How can len possibly be 0 at that point? It is (in short) > > Because the pixel width of W is less than its frame's column width. The > division performed window_body_width is truncating, i.e: > > 24 / 25 = 0 > > and I suspect the actual width being divded at that point is less than > w->pixel_width, since that window had fringes. > In that case it's a bug in window_body_width I guess, which should do /* Don't return a non-positive value. */ return max (width / denom, 1); > > I did say that this happened while resizing the window. It was being > displayed in an ediff-created frame. > You mean, the ediff popup control frame?
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:45:02 +0000 Resent-Message-ID: <handler.61704.B61704.167707345811199 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN>, martin rudalics <rudalics@HIDDEN> Cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.167707345811199 (code B ref 61704); Wed, 22 Feb 2023 13:45:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:44:18 +0000 Received: from localhost ([127.0.0.1]:58345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUpPt-0002uZ-Mp for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:44:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1pUpPr-0002uM-OM for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:44:16 -0500 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 <eliz@HIDDEN>) id 1pUpPm-0000Np-7v; Wed, 22 Feb 2023 08:44:10 -0500 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=5TS2SgFshSA3BzsV9ofnHZ7Ynz7Cxa2dlvbj4wZ9yoo=; b=htI+efzAOFYA Apkl1fPgvQcAbKd+IUrp13sregZWNvSTFy2EwwKf66Hjgcc7ySgmgtnSy+pmSXRZInMXXyp/4ox30 oWu1x3sdkTQJBoMYG7cV5t844RYJGGqUATs2CH8V2Ng/1QmL3YNbAWpIZGRu2EXhiaGISNVjeeLoL Qu2zMHNr2WqyZQaqUl4Ga1R8sbLbfBpUNuO/dmfyJehpNhtKTmihus+jE/sCYaHSHbI/Y7fJLy0eH zhU7B875rFamkYHB1vxPjL0Zf98u/NXtzwG5yfKb/o2z62fdGgvlNN2Rt5bO2gly44CDeDBySt4du eb7ecE+RGvx3o3tCqeei5w==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pUpPl-0004hi-Mi; Wed, 22 Feb 2023 08:44:10 -0500 Date: Wed, 22 Feb 2023 15:44:23 +0200 Message-Id: <834jrdstl4.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <e737b605e91bf92bec61@HIDDEN> (message from Gregory Heytings on Wed, 22 Feb 2023 13:17:27 +0000) References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <e737b605e91bf92bec61@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 22 Feb 2023 13:17:27 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org > > > >> How can len possibly be 0 at that point? It is (in short) > >> window_body_width (w, WINDOW_BODY_IN_CANONICAL_CHARS) * > >> window_body_height (w, WINDOW_BODY_IN_CANONICAL_CHARS). We could add a > >> condition in get_narrowed_len to return 1 when the result is 0, but it > >> could be a bug somewhere else (can a window body have a zero width > >> and/or height?), in which case it would be better to fix the bug there. > > > > I agree that we should understand how this happened (and asked a similar > > question), but I installed a defensive protection anyway. It cannot do > > any harm. > > > > Okay. Let's hope this will not hide another real bug. > > I found a way to get such small windows: set window-min-width, > window-min-height, window-safe-min-width and window-safe-min-heigth to 0. > Of course doing that ignores the fact that the docstring of the > window-safe-min-* variables say that "Anything less might crash Emacs", > and that their values are 2 (width) and 1 (height). Which makes me wonder > why these variables can be changed / exist. Maybe Martin (CC'ed) can answer that.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 13:47:02 +0000 Resent-Message-ID: <handler.61704.B61704.167707361911521 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.167707361911521 (code B ref 61704); Wed, 22 Feb 2023 13:47:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 13:46:59 +0000 Received: from localhost ([127.0.0.1]:58365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUpSU-0002zl-LJ for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:46:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1pUpST-0002zY-Lj for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 08:46:57 -0500 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 <eliz@HIDDEN>) id 1pUpSO-0001OZ-5g; Wed, 22 Feb 2023 08:46:52 -0500 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=AjRHoGY2yd+1QjY1xPLViB0u1FmMJh0KCX9C4dIrXac=; b=HkfD+5tHC5zk +B/QVfWBBd2Rk6A96RuAy1ML0I/KAjKjQMrQ/+NjGqmpnca23USN+o13OEEv7wzOehtIv63V50amK ZAFq3C1mNK+SXkBUKuHb2tREePMYgTwhKuMbj1x+Fcn4gglWSVXlzcRQKeO1MkO8mIoCpuxbAq24G 3UqvTSyZMmlbEmmoZx1hOTxWyc1+O/dJKI8JW0Jc/AMBabQRTsI+4b8siozHMtwHBGVzWv7C25HXp c974PjoEqGdfonBC3KgBaE4qHI04x0nbLMM51Z6ffEHhyNimH9VPKbzzZ5vRQusoho5nQNgxN9S1d OEtsb7aQ9WKPJl2XM/e4EQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1pUpSN-00051c-IQ; Wed, 22 Feb 2023 08:46:51 -0500 Date: Wed, 22 Feb 2023 15:47:05 +0200 Message-Id: <83356xstgm.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <e737b605e94095710e94@HIDDEN> (message from Gregory Heytings on Wed, 22 Feb 2023 13:40:41 +0000) References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <87zg95on68.fsf@HIDDEN> <e737b605e94095710e94@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 22 Feb 2023 13:40:41 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: Eli Zaretskii <eliz@HIDDEN>, 61704 <at> debbugs.gnu.org > > > >>> How can len possibly be 0 at that point? It is (in short) > > > > Because the pixel width of W is less than its frame's column width. The > > division performed window_body_width is truncating, i.e: > > > > 24 / 25 = 0 > > > > and I suspect the actual width being divded at that point is less than > > w->pixel_width, since that window had fringes. > > > > In that case it's a bug in window_body_width I guess, which should do > > /* Don't return a non-positive value. */ > return max (width / denom, 1); I won't object to that, if Martin agrees. But the protection I installed should IMO remain there, just in case.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 14:15:02 +0000 Resent-Message-ID: <handler.61704.B61704.167707527114427 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.167707527114427 (code B ref 61704); Wed, 22 Feb 2023 14:15:02 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 14:14:31 +0000 Received: from localhost ([127.0.0.1]:58407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUpt8-0003kd-Pl for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 09:14:30 -0500 Received: from sonic313-35.consmr.mail.ne1.yahoo.com ([66.163.185.58]:40057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1pUpt4-0003kP-V6 for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 09:14:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677075260; bh=2CPxsFLo+gJYcSw+vFjXYeeAt6opC9Y95LcdDQMydAc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=mC5MktgtBG+vVAE0TSyaDi+JQSi2j8A45cEMJ11RSuYVgTv8dqMVXXnNMRFA1suHHT3rTllWOBHbRaFbZzMOzAbYBbgcN4a4BIuwfNgw3Qr+8fIS/DKYeT3kZHCPXKCB8YhAEnlNps9Y0UduWrKeu+jXqIF6zU62OkdWpLD4T7x1a8l6CtiTVMMeP6artrzZLybEhKpcImsJiz51HSSRGVEz0cYwHoYIcBstOwbekmWp4skqzgmMd4F9E2GlV2F1zozVPwWnORCibMZrcLVvicFBM6eTKYsylzlj7DqSGQKZj+yXL/FWI6nyKwXKAX11YCbwX07WQ2nJxKTLjxjsZg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677075260; bh=dRBNWuUQ2Gwvzj+9gNoC+F4uNuUz0qz/nJMrbPRfM5D=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Lmq9U037wfUVxFiRdHkFIXxQN+3/+Qk5I/Wl48ULQEh296v+fWY6g2BbAgUJR8ensvwbMajIeOL8rT7IqDhB/QVgi6JBomr5NCkjvFFre35rURYFEojNbEgwYuvwHiaqSZR0kxzmnqdoYjOJQYsfWpnQSsrEzG20RKzjpaCX4FPnPAI5yVGhj1MfDPo21B4ULlJcAk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40rtzVQ_G1TF08izwnIb8MjYtVHcybqpmbo2eQxKd0KZ1W55 tOzGHgvCK8kBP_PK672sYuJ8gbVVHvmcoqfmi09nikVhpbmFdszk1qSP7IJa3ZUYcVh4xCIh4Ej7 GvTIoBWRTP1S1oaWxxvD6FQXPiB4MZoh9YeLYE_DTNjLvGGcf9c2HlY0KJMaDdfYiPRTJlG7ZJut KmjyxrspZCMVQU.qRX9W0354ye80sBKJ7qyfJbzbKaHHIfcgJxsLqO8JbBSSgf5.TVeJ4g7TiGy2 lajgG__tjpz4.fojzDtg6S53eJ2OSdcYCRdpWGfyXD5WFEGPopy27cfgwMF31y27RUUUWPWEWHqQ 2ntIcYUC249gi X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Feb 2023 14:14:20 +0000 Received: by hermes--production-sg3-9fc5746c8-r2vxw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1b2af696b9d80233eef051816912f641; Wed, 22 Feb 2023 14:12:18 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> In-Reply-To: <e737b605e94095710e94@HIDDEN> (Gregory Heytings's message of "Wed, 22 Feb 2023 13:40:41 +0000") References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <87zg95on68.fsf@HIDDEN> <e737b605e94095710e94@HIDDEN> Date: Wed, 22 Feb 2023 22:12:11 +0800 Message-ID: <87k009oklg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 114 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Gregory Heytings <gregory@HIDDEN> writes: > You mean, the ediff popup control frame? Yes, that's correct.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Feb 2023 14:19:01 +0000 Resent-Message-ID: <handler.61704.B61704.167707552214824 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.167707552214824 (code B ref 61704); Wed, 22 Feb 2023 14:19:01 +0000 Received: (at 61704) by debbugs.gnu.org; 22 Feb 2023 14:18:42 +0000 Received: from localhost ([127.0.0.1]:58411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pUpxC-0003r2-C2 for submit <at> debbugs.gnu.org; Wed, 22 Feb 2023 09:18:42 -0500 Received: from heytings.org ([95.142.160.155]:40008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1pUpx8-0003qr-W3 for 61704 <at> debbugs.gnu.org; Wed, 22 Feb 2023 09:18:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1677075517; bh=zArTK24S/voLar9CBpwCIK+ZFbY5MCyMN25Vf6RaG1E=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=jKAOelk36unv5PYcvSUDYCTcxHmcRI/U4ukxLcb3+NVQMzp/MOeSxWpK1rjg6uc/u Bvy0gXU14eWwS+W9eMbWLDlFK+LPAjCDwy9TuWvDDnKYFN0mCNNjAfqwNn+uWnbssK S1hpR8EZczcDgjBtlUOLfCPvK31ya9ljDGoG5kuUImKaqxo054TCvoHaHEcwTi8qe+ GxjIdOVhpreQYTj31VvGtjAfqakWaruJAiUpzJtYGuR+9Gy8vTcU0d+k2IQklyCNG5 1haTwyorl4XECRI/dkQneTQ4V4jS63IZd/xLNTZrHuMIrSme+F3kZtHGUlZRP++wSp OvwZO8xtVDdsg== Date: Wed, 22 Feb 2023 14:18:37 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <87k009oklg.fsf@HIDDEN> Message-ID: <e737b605e91c357204bd@HIDDEN> References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <87zg95on68.fsf@HIDDEN> <e737b605e94095710e94@HIDDEN> <87k009oklg.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> You mean, the ediff popup control frame? > > Yes, that's correct. > Then I'm even more puzzled. That code is not executed in that frame, it is only executed in buffers with long lines.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: martin rudalics <rudalics@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Feb 2023 09:34:02 +0000 Resent-Message-ID: <handler.61704.B61704.16771448417936 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN>, Gregory Heytings <gregory@HIDDEN> Cc: luangruo@HIDDEN, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16771448417936 (code B ref 61704); Thu, 23 Feb 2023 09:34:02 +0000 Received: (at 61704) by debbugs.gnu.org; 23 Feb 2023 09:34:01 +0000 Received: from localhost ([127.0.0.1]:32960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pV7zD-00023u-P3 for submit <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:34:01 -0500 Received: from mout.gmx.net ([212.227.17.21]:47605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1pV7z8-00023X-72 for 61704 <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:33:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1677144826; i=rudalics@HIDDEN; bh=zjQcl6mYOc1LERae560BmN0wqTciUbVZeDjsNSIDjzw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=t/9Rz1YDh9Wwc3nC199fYhPyGK+9DboWGeK8BCKd+48sjHkG8wgeaxbparNNdv011 PQhxMNut9ekbhmwwwZGP2Rb4fTAAE8M9jZfVPEw3GYb7gjRt4k1PQrnO71/63tJz09 b8DAKzuWGv2jCBKWejKZwC2yxmaADET7FnP2rHoEP0emo2vLrJX9XdCfzAIcZUTxjx uURaBrrLl0XZiqn10KmDJxJdKxE8GbHRWjTOFCKI5UstbhMbul4j/iUWanq1WFX3pV klUYAWigtDya7bbM0iX24bE7ya4QBXgUI8qy+OowpNpLBBWINyNhU6LqI+dDjgqboG EFI0F82pcYqKg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.100] ([213.142.97.165]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAOJP-1pNfzF0VJL-00BuXX; Thu, 23 Feb 2023 10:33:46 +0100 Message-ID: <f6e15cac-011c-038b-784b-3714068573a2@HIDDEN> Date: Thu, 23 Feb 2023 10:33:42 +0100 MIME-Version: 1.0 Content-Language: en-US References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <e737b605e91bf92bec61@HIDDEN> <834jrdstl4.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <834jrdstl4.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content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+LpjuouDCjyr56MkRxcN0JwKUrV3hjkkx92+PGAnWw0UlcujmaPIdVGnZNaSgsY YlidjGcZno5zk/8BtF2dAIzrX6VlFKaCEAR1PBf92e3HkWz8E5bxs/ag94Ypy8SSJS4pSbHV6 qWoJKvA8ttYtJaOr8N18Ca2AyC8O2GfEdZqcYtruTUfBshRc/NSnMoQJERQ+RhlMwS11Y+sC+ LyMBurIKSgHv9p7GRd8JRlnWbXY= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> I found a way to get such small windows: set window-min-width, >> window-min-height, window-safe-min-width and window-safe-min-heigth to 0. >> Of course doing that ignores the fact that the docstring of the >> window-safe-min-* variables say that "Anything less might crash Emacs", >> and that their values are 2 (width) and 1 (height). Which makes me wonder >> why these variables can be changed / exist. > > Maybe Martin (CC'ed) can answer that. I don't recall the details - if memory doesn't deceive me, the "Anything less might crash Emacs" phrase was coined by Kim, albeit in a different context. These variables exist and can be changed because at the time they were implemented, there was no real consensus as to which sizes could really crash Emacs. The window code itself does not care and the redisplay code is nowhere explicit about it. Nowadays these variables are a bad idea because they count (1) lines and columns and (2) represent total window sizes. (1) is hampered by the fact that we now remap faces (do we know whether the return value of 'window-safe-min-pixel-height' is meaningful in such case?) and (2) is hampered by the presence of window decorations whose sizes are more and more undetermined so we have to apply brute force measures like /* Don't return a negative value. */ return max (height / denom, 0); which appear amateurish (aren't we able to calculate 'height' correctly in the first place?). But the real problem here seems that resize_frame_windows has to do what frame resizing wants and (as _might_ happen with Po's ediff control frame) there's no guarantee that 'height' is really greater than zero (or one) there. So OT1H we really should set proper minimum size hints for the WM to avoid that resize_frame_windows has to deal with frame sizes it intrinsically cannot handle and OTOH the redisplay engine should be able to handle zero window sizes to avoid crashes the window code cannot prevent. martin
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: Po Lu <luangruo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Feb 2023 09:39:02 +0000 Resent-Message-ID: <handler.61704.B61704.16771450958369 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics <rudalics@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, Gregory Heytings <gregory@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16771450958369 (code B ref 61704); Thu, 23 Feb 2023 09:39:02 +0000 Received: (at 61704) by debbugs.gnu.org; 23 Feb 2023 09:38:15 +0000 Received: from localhost ([127.0.0.1]:32974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pV83L-0002Av-I1 for submit <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:38:15 -0500 Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:37740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1pV83K-0002Ah-0K for 61704 <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:38:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677145088; bh=wBp6kHEB/oHPpz72TkZMwca6RWwSfamBWtqKCvgZtiQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=eiO8yUczdE24Ov7S7y6PpQRYHAtIwQ/ODUAQoxfTC28Yz7Z93o1vey/8cFy+Rj49xxqY5Aps27yQ4vTdTocQ1C0CM5N6nnLIEu8XF/uNdM9cwq80jADIGHk4koop5ov3JIhahChIOIPq7VDIx2mi/GCJwW7QfXt3dSsO0WchmLXvQsbiqP1Hplxtc01wyH8ttX/sw5bhLLtVfeyq2SZEznXyedEy6Q+vDebCpPNZCmtGsyG8czpM0X2+4rolZRC90prrKugCam7SdaqpmL0p0Pf1FlHlBDkQqYqZd65OhAPV+f/Ionb0aBmqxPFm/EjtIHWt7RfZyDJSjevODDiVDg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677145088; bh=7CWdVdh5tcV4lpy/e+rrp7yVDnBE87GDratbUyWIAGn=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=eet+qHzTaUFRh2NNIsPR2bpCtLQAOgizcAj2I2JjfOPbTAMx52XbR6wC2ygJMtAYz81+X+l0pSs85WJxfqgDfZBMX58io6BW3h6Al55wGtOKqpiaeqBGIRKQ+/i4BhZK4R5CcAovKKuAeIY2oLOWNhEmCH/JIFYZwXz0lpva9ShhRiuUCAz9BIRS6zyFNp8uLr0HhDG0R51R0Y/uEQspWbz84YoZZYrtORPnY99o2r31C0xlwBxYFrD9uXWgjIEn3sWWchlqRWL8O/ffUpkeiYPIHia1N1EySZfAaHEUHvv0t5zzFXbiwCEdDX0WgEQtYpVBAgAJFT/h6Qo4eYRflg== X-YMail-OSG: .uEz0qYVM1kJgOGU3mhtfB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v6sNEP3nIYq6KzlPbR UTEe3stPP0RjswsE2FigTku8fmmAIbU0AHESXZZE8N4JJIpn5l1wsAYOD5kjThkZOuVSnap88LjV YOpLvrw270yDl81XS6QZm5zW1QDlW429MygcCMhiYHcjKdwJ.b7DBZMY5.oVeEA88aPrM X-Sonic-MF: <luangruo@HIDDEN> Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 23 Feb 2023 09:38:08 +0000 Received: by hermes--production-sg3-9fc5746c8-pz6sb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d26a5df00a0e75023b88e62fcaa9f417; Thu, 23 Feb 2023 09:38:01 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> In-Reply-To: <f6e15cac-011c-038b-784b-3714068573a2@HIDDEN> (martin rudalics's message of "Thu, 23 Feb 2023 10:33:42 +0100") References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <e737b605e91bf92bec61@HIDDEN> <834jrdstl4.fsf@HIDDEN> <f6e15cac-011c-038b-784b-3714068573a2@HIDDEN> Date: Thu, 23 Feb 2023 17:37:48 +0800 Message-ID: <87bklkoh77.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 593 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) martin rudalics <rudalics@HIDDEN> writes: > So OT1H we really should set proper minimum size hints for the WM to > avoid that resize_frame_windows has to deal with frame sizes it > intrinsically cannot handle Now this is not possible, as the window manager (or any X client, for that matter) has free reign to do whatever it wants with another client's window. Unless of course X server security policy prevents it. > and OTOH the redisplay engine should be able to handle zero window > sizes to avoid crashes the window code cannot prevent. This is the only reasonable approach under X.
X-Loop: help-debbugs@HIDDEN Subject: bug#61704: 29.0.60; Crash in get_narrowed_begv Resent-From: martin rudalics <rudalics@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Feb 2023 09:48:01 +0000 Resent-Message-ID: <handler.61704.B61704.16771456279297 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 61704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu <luangruo@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, Gregory Heytings <gregory@HIDDEN>, 61704 <at> debbugs.gnu.org Received: via spool by 61704-submit <at> debbugs.gnu.org id=B61704.16771456279297 (code B ref 61704); Thu, 23 Feb 2023 09:48:01 +0000 Received: (at 61704) by debbugs.gnu.org; 23 Feb 2023 09:47:07 +0000 Received: from localhost ([127.0.0.1]:32989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pV8Bv-0002Pt-52 for submit <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:47:07 -0500 Received: from mout.gmx.net ([212.227.17.20]:34457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1pV8Bs-0002PO-PF for 61704 <at> debbugs.gnu.org; Thu, 23 Feb 2023 04:47:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1677145617; i=rudalics@HIDDEN; bh=3lXOTKR/VL7SAIP3O2/+/SvW+GMRMV2R2K6sIk0OLv0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=BF4XUGBX8PFs5XLAFkJ3/EraGWtqsNXAJLR+BeAO9E+CXGSWu4r+75oMy66Xgkya9 Ct5/K9Snt/XNl6yEvZs6avMN4UAvI0oMzGJqiRTWMJh6wSFwBTEho4yls2ssljPaEk F8TAFBT/Owlla9cR3Qb2IZ67CLtRHq1wh5NT8lN7wXtyLWpqIDmU6dLk9Jl3Xd6Zge Fnl0fOnzR+jx104Kvdb0UEvivPnyxa5x7gEFlDeEDqltJ8mZPETRS3Z+67BHC1k1Px SzkPW1hnKzNTu2REi16hrRk7Ku5bL6Th2oT+7Oj1STx80AdBVmt+2Ii/W24l44JuIA W3OBN/zRPxSEw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.100] ([213.142.97.165]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhlKy-1oredM44NE-00dqxH; Thu, 23 Feb 2023 10:46:57 +0100 Message-ID: <4eb8c0f7-558a-db4d-1989-afba973c2327@HIDDEN> Date: Thu, 23 Feb 2023 10:46:56 +0100 MIME-Version: 1.0 Content-Language: en-US References: <874jrdq4ct.fsf.ref@HIDDEN> <874jrdq4ct.fsf@HIDDEN> <e737b605e9c064e56128@HIDDEN> <83cz61svnc.fsf@HIDDEN> <e737b605e91bf92bec61@HIDDEN> <834jrdstl4.fsf@HIDDEN> <f6e15cac-011c-038b-784b-3714068573a2@HIDDEN> <87bklkoh77.fsf@HIDDEN> From: martin rudalics <rudalics@HIDDEN> In-Reply-To: <87bklkoh77.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:V/WbgTWl770xiLJC9a7sDQ93xE6OEGxuTYug69K3IyPIM86IlCv 5aDkDRhkSqimLy6HToDabtjwQg3rMfxDu6lASbaBowKroCXc2Ry306ZzrIqZFDcH3vn/dVP vAKHWJVZzQbRC+SwGtI800idRAOIUFVeKvNO2wmTqj/MKGu22N0c3mWzarMqixuz5oCoJ/D f8q6tdfYukF2uGvZf+rXA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:uiFcR60a3rg=;0Iqaj21DuRCvlVd2VivWVEvZYhb jiT9Gtj/oCJ1JU/SR5+NM468BN0c+SAlLAi5GIuV3TCGlI32rb8S4iHoOM/fT5HsG/lZrJDp8 lpJOvn6BdZn1EBNgKv+G5Qocus+Mg7v/p5Q9k6VDnyRv66x5erXsrYhTAV/MKT8Yfn2lP3DV2 NfftaUelwvPsjfcplb9NAGPkxg5WtDaP3Qtx24HPriqDw0Zd+lTvmxOMmeXVdN3COx2QWNG2J SF6bMs19vli+/uaaJGlCRXAwzN5wofQtgqB1wq/52oHLZlH02P6AjLAdr6SI2M30N31B4Y9fn BeIVN+JFD/qRNYmCahPxwnPE8n6FPQXGOtxg8sV/30/txmPNZwfHWISAqde8/6UJ4y++JFKit YJsKaS1q5m5O3LT0HLzUZn8HGCu/TrcIYKkOIO098sz/XHn/rq1FdOl3gF8yjeVtVVuGpJJE2 mrZikoTS6recTAqk8TNCxpWXEMNPq7H9s7psqw4bvI4SjqVrnArbGVRYQ8aB8S8sz30d6+yRH 7i53RcmALRx9W+3eVjC1XeqilCKqG0fKBj9LFmpLxGXv0JglVBCub/MPb6Woa2nXJDsXo62k6 OU9X9HuU44VX568OEC+EtMYK0zPU2QtkG6FZOIE0obJMJnwzSt4C8+y1xs9rLfePb2TMPFqpt 9Ex60GyztfsePVFeDYu1ecZlQPUXcLmAOo/S7O/tGenpgEL3VzD0ZDF+rpdt8Yoi8lHjbH1+l 4Q+Vv5/gx9NnBx7vamWVPaJVjtBazVGO2z6JJZ8zeEJtPqJmKuRr+VugjdFB37fyPBvMMMLXS q2RcUn5E9j/VwqzJxGjSZpotKFVdGqqFVahOVAVHTuPw0iytZAN1vHD70nyHbLXPRHovKrtib Va8Il8sJwnLLo2+Mdw47keZATp73zzg3LdkJEDDqYF3hUiOuCqB4eF3BARQO7dMwTkjwRJGXi XiL2UMgtm81NUQeSyKD0L6Moekg= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> So OT1H we really should set proper minimum size hints for the WM to >> avoid that resize_frame_windows has to deal with frame sizes it >> intrinsically cannot handle > > Now this is not possible, as the window manager (or any X client, for > that matter) has free reign to do whatever it wants with another > client's window. Unless of course X server security policy prevents it. If a window manager ignores our size hints, a user is free to choose one which doesn't. xfwm here respectfully honors the size hints it gets from Firefox or Thunderbird. Windows respects minimum size constraints just as well, BTW. martin
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.