From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#56561: 29.0.50; Infloop in try_window Date: Thu, 14 Jul 2022 14:57:40 -0400 Message-ID: <874jzjwmhn.fsf@md5i.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27918"; mail-complaints-to="usenet@ciao.gmane.io" To: 56561@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 21:00:36 2022 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 1oC44h-00074z-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 21:00:35 +0200 Original-Received: from localhost ([::1]:57290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC44e-0002je-Tj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 15:00:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC42G-0007hl-4J for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oC42F-0005kX-5D for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oC42D-0002f4-Ve for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56561 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165782507410211 (code B ref -1); Thu, 14 Jul 2022 18:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2022 18:57:54 +0000 Original-Received: from localhost ([127.0.0.1]:38894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC425-0002ec-PK for submit@debbugs.gnu.org; Thu, 14 Jul 2022 14:57:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oC422-0002eT-Es for submit@debbugs.gnu.org; Thu, 14 Jul 2022 14:57:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC422-00070h-13 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:57:50 -0400 Original-Received: from md5i.com ([75.151.244.229]:54372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC41y-0005Pp-Tg for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:57:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=kP+PzACyg+tjjmU063XbtXsVDjWM0eMDuUzA8GmgNCQ=; b=pb27Uo56VcD+sktfPnxPdn40n/ J6vMYGUo8GPkwenAAAME7HTQf9QT9m4olNDD1bHuSDZ9+7WGXzH+kKaC7IoHP/vJKBfPPu1ZA+8+m gVxb9xbsyozwiVTsCl03xjYF+; Original-Received: from abode ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oC41x-00HRDY-BZ for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 14:57:45 -0400 Received-SPF: pass client-ip=75.151.244.229; envelope-from=md5i@md5i.com; helo=md5i.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:237035 Archived-At: No recipe for this. In the course of using Emacs, I ended up in an infloop in `try_window`. I've connected to this in gdb. `try_window' is calling `display_line' in a loop until the iterator hits a certain point. But `display_line', in this case, isn't modifying the iterator, so the loop never ends. Here follows part of the debugging session demonstrating this. I'll keep this gdb session alive for a while. try_window (window=window@entry=XIL(0x55555b4301f5), pos=..., flags=flags@entry=2) at ../../md5i/src/xdisp.c:20208 20208 if (f->fonts_changed && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) (gdb) n 20204 while (it.current_y < it.last_visible_y) (gdb) p it.current_y $11 = 595 (gdb) p it.last_visible_y $12 = 680 (gdb) n 20206 if (display_line (&it, cursor_vpos)) (gdb) s display_line (it=it@entry=0x7fffffffb770, cursor_vpos=cursor_vpos@entry=0) at ../../md5i/src/xdisp.c:24140 24140 { (gdb) n 24141 struct glyph_row *row = it->glyph_row; (gdb) 24154 ptrdiff_t min_pos = ZV + 1, max_pos = 0; (gdb) 24157 int tab_line = window_wants_tab_line (it->w); (gdb) 24158 int header_line = window_wants_header_line (it->w); (gdb) 24159 bool hscroll_this_line = (cursor_vpos >= 0 (gdb) 24162 int first_visible_x = it->first_visible_x; (gdb) 24163 int last_visible_x = it->last_visible_x; (gdb) 24169 if (MATRIX_ROW_VPOS (row, it->w->desired_matrix) (gdb) 24172 it->w->nrows_scale_factor++; (gdb) p it->w->nrows_scale_factor $13 = 2064109537 (gdb) n 24173 it->f->fonts_changed = true; (gdb) 24174 return false; (gdb) try_window (window=window@entry=XIL(0x55555b4301f5), pos=..., flags=flags@entry=2) at ../../md5i/src/xdisp.c:20208 20208 if (f->fonts_changed && !(flags & TRY_WINDOW_IGNORE_FONTS_CHANGE)) (gdb) 20204 while (it.current_y < it.last_visible_y) In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2022-07-03 built on miko Repository revision: e41ba8ab89a125c91dee672845679f2dec19853a Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid --with-native-compilation --with-xinput2 'CFLAGS=-Og -ggdb'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: flyspell-mode: t display-time-mode: t magit-wip-initial-backup-mode: t magit-wip-before-change-mode: t magit-wip-after-apply-mode: t magit-wip-after-save-mode: t magit-wip-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t line-number-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/md5i/.config/emacs/elpa/transient-20220514.945/transient hides /home/md5i/src/emacs/md5i/lisp/transient Features: (shadow sort mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud gnus-spec gnus-win emacsbug goto-addr bug-reference thingatpt mule-util face-remap dired-aux flyspell ispell view pacproxy descr-text tramp tramp-loaddefs trampver tramp-integration cus-edit pp cus-load files-x tramp-compat parse-time iso8601 ls-lisp time sieve-manage sasl sasl-anonymous sasl-login sasl-plain rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util sgml-mode facemenu dom python ps-print ps-print-loaddefs ps-def lpr picture nm dbus xml magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode easy-mmode git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete server magit-mode transient comp comp-cstr warnings rx cl-extra edmacro kmacro help-mode magit-git magit-base magit-section format-spec crm dash compat-27 compat-26 compat nnimap nnmail gnus-int mail-source gnus-range message sendmail yank-media rfc822 mml mml-sec epa mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader utf7 netrc nnoo gnus wid-edit nnheader gnus-util time-date mail-utils range gnus-o365-oauth2 oauth2 url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny plstore generated generic-x epg rfc6068 epg-config ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util dired-x dired dired-loaddefs compile text-property-search comint ring ansi-color cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs derived debian-el rainbow-delimiters-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map byte-opt gv bytecomp byte-compile cconv url-vars cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 380223 18419) (symbols 48 27063 2) (strings 32 95513 5733) (string-bytes 1 3154480) (vectors 16 56391) (vector-slots 8 955380 21517) (floats 8 665 186) (intervals 56 3263 950) (buffers 992 18)) -- Michael Welsh Duggan (md5i@md5i.com)