From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Andreas Matthias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jan 2015 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19511@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142041365213305 (code B ref -1); Sun, 04 Jan 2015 23:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2015 23:20:52 +0000 Received: from localhost ([127.0.0.1]:36763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7uTb-0003SW-2c for submit@debbugs.gnu.org; Sun, 04 Jan 2015 18:20:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7teB-0002A2-Cq for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7te9-0001f4-F4 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te9-0001f0-C9 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te8-0000OX-0l for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7te4-0001eL-RC for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:39 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:36359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te4-0001eC-GO for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:36 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so2220660wid.15 for ; Sun, 04 Jan 2015 14:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=mDvUrzgP8ap+mWPiGnFJzHVkQ+N71wL+uIBLtcQvzDQ=; b=yilBP8ftlCJRbXbhrZySIFRZD1xnZ7q4zcYOmeGtZz+Hxvij24OLe3OqMPGaecpnNp NfTs9aCCq1i3WYT5JX65ytqy9xH7X3Hb1Rl0aNmp6E/4h4sZsGUsh6OU9FjpSi03U2BW 1iAMlEZ5/QatWqCYbUm111Tvh96lwRnRR4UMAglTqdDQl5dY9FX1raCX7ZopdNPxcuwC 8b/4VqcJrI26DHX3th9ntSokzVyw0oO0vzxBZokbLM+UEhEvM7k2LZBqpVcJthatP4XM SRI+gKdL0PxU+S7Na0aVUNI75mE+4nVaNBiXtrhM37w/fu5FICFe38Fobx8Ob+AgK/m7 EsCw== X-Received: by 10.180.37.142 with SMTP id y14mr19561808wij.47.1420410455673; Sun, 04 Jan 2015 14:27:35 -0800 (PST) Received: from winky.hogwarts (HSI-KBW-082-212-010-067.hsi.kabelbw.de. [82.212.10.67]) by mx.google.com with ESMTPSA id w3sm22656030wjf.3.2015.01.04.14.27.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 14:27:34 -0800 (PST) Received: by winky.hogwarts (Postfix, from userid 1000) id E4A9316E0317; Sun, 4 Jan 2015 23:27:33 +0100 (CET) From: Andreas Matthias Date: Sun, 04 Jan 2015 23:27:33 +0100 Message-ID: <878uhiji5m.fsf@winky.hogwarts> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sun, 04 Jan 2015 18:20:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain With the attached example code I can trigger two different assertions somewhere down the line of redisplay(): 1) dispnew.c:1405: Emacs fatal error: assertion failed: row >= 0 && row < matrix->nrows 2) xdisp.c:17524: Emacs fatal error: assertion failed: row->enabled_p Unfortunately I could not further isolate the elisp code which eventually causes these assertions to fail. The following packages from MELPA are involved: lua-mode, polymode. (version numbers see example code) This is the example code triggering the mentioned assertions. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=pm-01.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/.emacs.d/elpa/polymode-20141204.2346/") (add-to-list 'load-path "~/.emacs.d/elpa/lua-mode-20141025.1746/") (require 'lua-mode) (require 'poly-noweb) (defcustom pm-poly/noweb+foobar (pm-polymode-multi "noweb" :hostmode 'pm-host/latex :innermodes '(pm-inner/noweb+lua) :exporters '(pm-exporter/latexmk pm-exporter/pdflatex) :map '(("<" . poly-noweb-electric-<)) ) "Noweb typical configuration" :group 'polymodes :type 'object) (defcustom pm-inner/noweb+lua (pm-hbtchunkmode "noweb+lua" :mode 'lua-mode :head-reg "<<\\(.*\\)>>=3D" :tail-reg "\\(@ +%def .*\\)$\\|\\(@[ \n]\\)") "Noweb innermode for Lua" :group 'innermodes :type 'object) (define-polymode poly-noweb+foobar-mode pm-poly/noweb+foobar :lighter "PM-Lua") (find-file "pm-01.nw") (poly-noweb+foobar-mode) (next-line) (next-line) (next-line) (next-line) --=-=-= Content-Type: test/plain Content-Disposition: attachment; filename=pm-01.nw Content-Transfer-Encoding: base64 QAo8PHRlc3Q+Pj0KZnVuY3Rpb24gZm9vYmFyICgpCiAgIGlmIHRydWUgdGhlbgogCiAgICAgIGZv bygpCiAgIGVuZAplbmQKQAo= --=-=-= Content-Type: text/plain Note: With a recently checked out Emacs 25.0.50 I can trigger both assertions as described below. Concerning Emacs 24.3.1 I can trigger only the first assertion but not the second one. Kind regards, Andreas 1) The first assertion is triggered by: * run emacs -Q -l pm-01.el * press "delete" twice And this is the backtrace: #0 0x00007ffff37d120b in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x000000000057f286 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:386 #2 0x000000000060ca9d in die (msg=0x6f2768 "row >= 0 && row < matrix->nrows", file=0x6f2540 "dispnew.c", line=1405) at alloc.c:7108 #3 0x0000000000418d3e in matrix_row (matrix=0xf84b40, row=-1) at dispnew.c:1405 #4 0x0000000000479d85 in try_window_id (w=0x137c530) at xdisp.c:18436 #5 0x000000000046ee38 in redisplay_window (window=..., just_this_one_p=true) at xdisp.c:16396 #6 0x00000000004660e2 in redisplay_window_1 (window=...) at xdisp.c:14310 #7 0x000000000062cade in internal_condition_case_1 (bfun=0x4660a0 , arg=..., handlers=..., hfun=0x466024 ) at eval.c:1369 #8 0x000000000046529f in redisplay_internal () at xdisp.c:13953 #9 0x000000000046287a in redisplay () at xdisp.c:13158 #10 0x0000000000586ef8 in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd865, end_time=0x0) at keyboard.c:2643 #11 0x0000000000596ced in read_key_sequence (keybuf=0x7fffffffda90, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9257 #12 0x0000000000583e16 in command_loop_1 () at keyboard.c:1510 #13 0x000000000062c96d in internal_condition_case (bfun=0x583a3f , handlers=..., hfun=0x5831af ) at eval.c:1345 #14 0x00000000005836dd in command_loop_2 (ignore=...) at keyboard.c:1245 #15 0x000000000062bddb in internal_catch (tag=..., func=0x5836ba , arg=...) at eval.c:1106 #16 0x0000000000583691 in command_loop () at keyboard.c:1224 #17 0x0000000000582cdb in recursive_edit_1 () at keyboard.c:834 #18 0x0000000000582eab in Frecursive_edit () at keyboard.c:905 #19 0x0000000000580c10 in main (argc=4, argv=0x7fffffffde58) at emacs.c:1619 2) The second assertion is triggered by: * run emacs -Q -l pm-01.el * press "a" twice And this is the backtrace: #0 0x00007ffff37d120b in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x000000000057f286 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:386 #2 0x000000000060ca9d in die (msg=0x6f92ee "row->enabled_p", file=0x6f6640 "xdisp.c", line=17524) at alloc.c:7108 #3 0x00000000004772c9 in find_last_row_displaying_text (matrix=0x15f57d0, it=0x7fffffff8690, start=0x1d8c720) at xdisp.c:17524 #4 0x0000000000479fce in try_window_id (w=0x137c530) at xdisp.c:18485 #5 0x000000000046ee38 in redisplay_window (window=..., just_this_one_p=true) at xdisp.c:16396 #6 0x00000000004660e2 in redisplay_window_1 (window=...) at xdisp.c:14310 #7 0x000000000062cade in internal_condition_case_1 (bfun=0x4660a0 , arg=..., handlers=..., hfun=0x466024 ) at eval.c:1369 #8 0x000000000046529f in redisplay_internal () at xdisp.c:13953 #9 0x000000000046287a in redisplay () at xdisp.c:13158 #10 0x0000000000586ef8 in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd865, end_time=0x0) at keyboard.c:2643 #11 0x0000000000596ced in read_key_sequence (keybuf=0x7fffffffda90, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9257 #12 0x0000000000583e16 in command_loop_1 () at keyboard.c:1510 #13 0x000000000062c96d in internal_condition_case (bfun=0x583a3f , handlers=..., hfun=0x5831af ) at eval.c:1345 #14 0x00000000005836dd in command_loop_2 (ignore=...) at keyboard.c:1245 #15 0x000000000062bddb in internal_catch (tag=..., func=0x5836ba , arg=...) at eval.c:1106 #16 0x0000000000583691 in command_loop () at keyboard.c:1224 #17 0x0000000000582cdb in recursive_edit_1 () at keyboard.c:834 #18 0x0000000000582eab in Frecursive_edit () at keyboard.c:905 #19 0x0000000000580c10 in main (argc=4, argv=0x7fffffffde58) at emacs.c:1619 In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-04 on winky Repository revision: d7e858bcc6f353ea3e955ca2a91d7b5c33bb6611 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --prefix=/home/andreas/local/emacs --enable-checking=all --enable-check-lisp-object-type 'CFLAGS=-g3 -O0'' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76943 4320) (symbols 48 18291 1) (miscs 40 45 125) (strings 32 11760 3895) (string-bytes 1 323298) (vectors 16 10065) (vector-slots 8 395354 9010) (floats 8 72 61) (intervals 56 192 0) (buffers 976 11) (heap 1024 44733 1424)) --=-=-=-- From unknown Sun Aug 10 02:41:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Andreas Matthias Subject: bug#19511: closed (Re: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524)) Message-ID: References: <83tx058bjm.fsf@gnu.org> <878uhiji5m.fsf@winky.hogwarts> X-Gnu-PR-Message: they-closed 19511 X-Gnu-PR-Package: emacs Reply-To: 19511@debbugs.gnu.org Date: Mon, 05 Jan 2015 15:59:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1420473543-27549-1" This is a multi-part message in MIME format... ------------=_1420473543-27549-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xd= isp.c:17524) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19511@debbugs.gnu.org. --=20 19511: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19511 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1420473543-27549-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19511-done) by debbugs.gnu.org; 5 Jan 2015 15:58:11 +0000 Received: from localhost ([127.0.0.1]:37598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8A2k-000794-Os for submit@debbugs.gnu.org; Mon, 05 Jan 2015 10:58:11 -0500 Received: from mtaout29.012.net.il ([80.179.55.185]:42761) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8A2f-00078q-PZ for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 10:58:06 -0500 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NHP00O00O5U2900@mtaout29.012.net.il> for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 17:55:00 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHP00N77O7O3Q10@mtaout29.012.net.il>; Mon, 05 Jan 2015 17:55:00 +0200 (IST) Date: Mon, 05 Jan 2015 17:58:05 +0200 From: Eli Zaretskii Subject: Re: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) In-reply-to: <878uhiji5m.fsf@winky.hogwarts> X-012-Sender: halo1@inter.net.il To: Andreas Matthias Message-id: <83tx058bjm.fsf@gnu.org> References: <878uhiji5m.fsf@winky.hogwarts> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19511-done Cc: Vitalie Spinu , 19511-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Andreas Matthias > Date: Sun, 04 Jan 2015 23:27:33 +0100 > > With the attached example code I can trigger two different assertions > somewhere down the line of redisplay(): > > 1) dispnew.c:1405: Emacs fatal error: assertion failed: row >= 0 && row < matrix->nrows > > 2) xdisp.c:17524: Emacs fatal error: assertion failed: row->enabled_p > > > Unfortunately I could not further isolate the elisp code which eventually > causes these assertions to fail. The following packages from MELPA are > involved: lua-mode, polymode. (version numbers see example code) The reason for this is that Polymode does something unthinkable: it calls bury-buffer in the function it installs as font-lock-fontify-region-function, which buries the buffer being fontified, and as side effect switches the buffer displayed in the window. When this is called by redisplay, the effect is that the information about the window end point gets invalidated right from under the feet of the display engine, in the middle of the code that tries to use that information for one of redisplay optimizations. I have now disabled that optimization for packages which commit such atrocities, so Polymode is now merely a performance killer, not a crasher. I hope Polymode will be changed to not call bury-buffer in that situation (I always thought bury-buffer is strictly for interactive use, FWIW). > Note: With a recently checked out Emacs 25.0.50 I can trigger both assertions > as described below. Concerning Emacs 24.3.1 I can trigger only the first > assertion but not the second one. Emacs 24.3 escapes the 2nd assertion by sheer luck, AFAICS, and 24.4 is affected by both. So I installed the fix for this in the emacs-24 branch (commit d279e66). Thanks. ------------=_1420473543-27549-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jan 2015 23:20:52 +0000 Received: from localhost ([127.0.0.1]:36763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7uTb-0003SW-2c for submit@debbugs.gnu.org; Sun, 04 Jan 2015 18:20:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7teB-0002A2-Cq for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7te9-0001f4-F4 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te9-0001f0-C9 for submit@debbugs.gnu.org; Sun, 04 Jan 2015 17:27:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te8-0000OX-0l for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7te4-0001eL-RC for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:39 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:36359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7te4-0001eC-GO for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 17:27:36 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so2220660wid.15 for ; Sun, 04 Jan 2015 14:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=mDvUrzgP8ap+mWPiGnFJzHVkQ+N71wL+uIBLtcQvzDQ=; b=yilBP8ftlCJRbXbhrZySIFRZD1xnZ7q4zcYOmeGtZz+Hxvij24OLe3OqMPGaecpnNp NfTs9aCCq1i3WYT5JX65ytqy9xH7X3Hb1Rl0aNmp6E/4h4sZsGUsh6OU9FjpSi03U2BW 1iAMlEZ5/QatWqCYbUm111Tvh96lwRnRR4UMAglTqdDQl5dY9FX1raCX7ZopdNPxcuwC 8b/4VqcJrI26DHX3th9ntSokzVyw0oO0vzxBZokbLM+UEhEvM7k2LZBqpVcJthatP4XM SRI+gKdL0PxU+S7Na0aVUNI75mE+4nVaNBiXtrhM37w/fu5FICFe38Fobx8Ob+AgK/m7 EsCw== X-Received: by 10.180.37.142 with SMTP id y14mr19561808wij.47.1420410455673; Sun, 04 Jan 2015 14:27:35 -0800 (PST) Received: from winky.hogwarts (HSI-KBW-082-212-010-067.hsi.kabelbw.de. [82.212.10.67]) by mx.google.com with ESMTPSA id w3sm22656030wjf.3.2015.01.04.14.27.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 14:27:34 -0800 (PST) Received: by winky.hogwarts (Postfix, from userid 1000) id E4A9316E0317; Sun, 4 Jan 2015 23:27:33 +0100 (CET) From: Andreas Matthias To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Date: Sun, 04 Jan 2015 23:27:33 +0100 Message-ID: <878uhiji5m.fsf@winky.hogwarts> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 04 Jan 2015 18:20:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-=-= Content-Type: text/plain With the attached example code I can trigger two different assertions somewhere down the line of redisplay(): 1) dispnew.c:1405: Emacs fatal error: assertion failed: row >= 0 && row < matrix->nrows 2) xdisp.c:17524: Emacs fatal error: assertion failed: row->enabled_p Unfortunately I could not further isolate the elisp code which eventually causes these assertions to fail. The following packages from MELPA are involved: lua-mode, polymode. (version numbers see example code) This is the example code triggering the mentioned assertions. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=pm-01.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/.emacs.d/elpa/polymode-20141204.2346/") (add-to-list 'load-path "~/.emacs.d/elpa/lua-mode-20141025.1746/") (require 'lua-mode) (require 'poly-noweb) (defcustom pm-poly/noweb+foobar (pm-polymode-multi "noweb" :hostmode 'pm-host/latex :innermodes '(pm-inner/noweb+lua) :exporters '(pm-exporter/latexmk pm-exporter/pdflatex) :map '(("<" . poly-noweb-electric-<)) ) "Noweb typical configuration" :group 'polymodes :type 'object) (defcustom pm-inner/noweb+lua (pm-hbtchunkmode "noweb+lua" :mode 'lua-mode :head-reg "<<\\(.*\\)>>=3D" :tail-reg "\\(@ +%def .*\\)$\\|\\(@[ \n]\\)") "Noweb innermode for Lua" :group 'innermodes :type 'object) (define-polymode poly-noweb+foobar-mode pm-poly/noweb+foobar :lighter "PM-Lua") (find-file "pm-01.nw") (poly-noweb+foobar-mode) (next-line) (next-line) (next-line) (next-line) --=-=-= Content-Type: test/plain Content-Disposition: attachment; filename=pm-01.nw Content-Transfer-Encoding: base64 QAo8PHRlc3Q+Pj0KZnVuY3Rpb24gZm9vYmFyICgpCiAgIGlmIHRydWUgdGhlbgogCiAgICAgIGZv bygpCiAgIGVuZAplbmQKQAo= --=-=-= Content-Type: text/plain Note: With a recently checked out Emacs 25.0.50 I can trigger both assertions as described below. Concerning Emacs 24.3.1 I can trigger only the first assertion but not the second one. Kind regards, Andreas 1) The first assertion is triggered by: * run emacs -Q -l pm-01.el * press "delete" twice And this is the backtrace: #0 0x00007ffff37d120b in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x000000000057f286 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:386 #2 0x000000000060ca9d in die (msg=0x6f2768 "row >= 0 && row < matrix->nrows", file=0x6f2540 "dispnew.c", line=1405) at alloc.c:7108 #3 0x0000000000418d3e in matrix_row (matrix=0xf84b40, row=-1) at dispnew.c:1405 #4 0x0000000000479d85 in try_window_id (w=0x137c530) at xdisp.c:18436 #5 0x000000000046ee38 in redisplay_window (window=..., just_this_one_p=true) at xdisp.c:16396 #6 0x00000000004660e2 in redisplay_window_1 (window=...) at xdisp.c:14310 #7 0x000000000062cade in internal_condition_case_1 (bfun=0x4660a0 , arg=..., handlers=..., hfun=0x466024 ) at eval.c:1369 #8 0x000000000046529f in redisplay_internal () at xdisp.c:13953 #9 0x000000000046287a in redisplay () at xdisp.c:13158 #10 0x0000000000586ef8 in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd865, end_time=0x0) at keyboard.c:2643 #11 0x0000000000596ced in read_key_sequence (keybuf=0x7fffffffda90, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9257 #12 0x0000000000583e16 in command_loop_1 () at keyboard.c:1510 #13 0x000000000062c96d in internal_condition_case (bfun=0x583a3f , handlers=..., hfun=0x5831af ) at eval.c:1345 #14 0x00000000005836dd in command_loop_2 (ignore=...) at keyboard.c:1245 #15 0x000000000062bddb in internal_catch (tag=..., func=0x5836ba , arg=...) at eval.c:1106 #16 0x0000000000583691 in command_loop () at keyboard.c:1224 #17 0x0000000000582cdb in recursive_edit_1 () at keyboard.c:834 #18 0x0000000000582eab in Frecursive_edit () at keyboard.c:905 #19 0x0000000000580c10 in main (argc=4, argv=0x7fffffffde58) at emacs.c:1619 2) The second assertion is triggered by: * run emacs -Q -l pm-01.el * press "a" twice And this is the backtrace: #0 0x00007ffff37d120b in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x000000000057f286 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:386 #2 0x000000000060ca9d in die (msg=0x6f92ee "row->enabled_p", file=0x6f6640 "xdisp.c", line=17524) at alloc.c:7108 #3 0x00000000004772c9 in find_last_row_displaying_text (matrix=0x15f57d0, it=0x7fffffff8690, start=0x1d8c720) at xdisp.c:17524 #4 0x0000000000479fce in try_window_id (w=0x137c530) at xdisp.c:18485 #5 0x000000000046ee38 in redisplay_window (window=..., just_this_one_p=true) at xdisp.c:16396 #6 0x00000000004660e2 in redisplay_window_1 (window=...) at xdisp.c:14310 #7 0x000000000062cade in internal_condition_case_1 (bfun=0x4660a0 , arg=..., handlers=..., hfun=0x466024 ) at eval.c:1369 #8 0x000000000046529f in redisplay_internal () at xdisp.c:13953 #9 0x000000000046287a in redisplay () at xdisp.c:13158 #10 0x0000000000586ef8 in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd865, end_time=0x0) at keyboard.c:2643 #11 0x0000000000596ced in read_key_sequence (keybuf=0x7fffffffda90, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9257 #12 0x0000000000583e16 in command_loop_1 () at keyboard.c:1510 #13 0x000000000062c96d in internal_condition_case (bfun=0x583a3f , handlers=..., hfun=0x5831af ) at eval.c:1345 #14 0x00000000005836dd in command_loop_2 (ignore=...) at keyboard.c:1245 #15 0x000000000062bddb in internal_catch (tag=..., func=0x5836ba , arg=...) at eval.c:1106 #16 0x0000000000583691 in command_loop () at keyboard.c:1224 #17 0x0000000000582cdb in recursive_edit_1 () at keyboard.c:834 #18 0x0000000000582eab in Frecursive_edit () at keyboard.c:905 #19 0x0000000000580c10 in main (argc=4, argv=0x7fffffffde58) at emacs.c:1619 In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-04 on winky Repository revision: d7e858bcc6f353ea3e955ca2a91d7b5c33bb6611 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --prefix=/home/andreas/local/emacs --enable-checking=all --enable-check-lisp-object-type 'CFLAGS=-g3 -O0'' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76943 4320) (symbols 48 18291 1) (miscs 40 45 125) (strings 32 11760 3895) (string-bytes 1 323298) (vectors 16 10065) (vector-slots 8 395354 9010) (floats 8 72 61) (intervals 56 192 0) (buffers 976 11) (heap 1024 44733 1424)) --=-=-=-- ------------=_1420473543-27549-1-- From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 17:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Andreas Matthias , 19511-done@debbugs.gnu.org Received: via spool by 19511-done@debbugs.gnu.org id=D19511.14204771531066 (code D ref 19511); Mon, 05 Jan 2015 17:00:03 +0000 Received: (at 19511-done) by debbugs.gnu.org; 5 Jan 2015 16:59:13 +0000 Received: from localhost ([127.0.0.1]:37614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Azo-0000H8-SK for submit@debbugs.gnu.org; Mon, 05 Jan 2015 11:59:13 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:61984) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Azm-0000Gw-CZ for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 11:59:11 -0500 Received: by mail-pa0-f43.google.com with SMTP id kx10so29033644pab.16 for <19511-done@debbugs.gnu.org>; Mon, 05 Jan 2015 08:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=HvlLn5YCjgVdDud2Fa8U0fLEBGLtUF1n+e5XcaNX3sg=; b=vHc6QjeOftZfIFuCsmFiZERPXieKPRFmkFJEL03/MPKaEk8IaLOB51DpZCj0WxiKcN q75wnM27pntsjgn6tVfBB5IGQUSMP370Agk2CBk4neo4z0nECP3blIsG6C3MbTwzcI9o Offx/yiW6oYdlKAK+S1ZYfL09Or66EuH7hxhcmfuKi8nM5jyz3ia25m2f7sVClhGEvh5 qKJTxNUFUXKSWm/qtHj26gkenrgWvrY++nflGaZdJ+f/lJDNsgGnfJik9T8W0gNH4D1n nq37CpU+HwazPNguDz8V9CmSr+3mz0hSaPg49evcn++aXkSAZfzl3O3D3ZwgUjfl2JQj H86g== X-Received: by 10.67.13.12 with SMTP id eu12mr150638242pad.157.1420477148989; Mon, 05 Jan 2015 08:59:08 -0800 (PST) Received: from localhost ([172.56.31.229]) by mx.google.com with ESMTPSA id ug6sm55115348pab.7.2015.01.05.08.59.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jan 2015 08:59:07 -0800 (PST) From: Vitalie Spinu Organization: UCLA Anderson School of Management References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> Date: Mon, 05 Jan 2015 08:59:02 -0800 In-Reply-To: <83tx058bjm.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Jan 2015 17:58:05 +0200") Message-ID: <87y4phupt5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>> Eli Zaretskii on Mon, 05 Jan 2015 17:58:05 +0200 wrote: [...] > I hope Polymode will be changed to not call bury-buffer in that > situation (I always thought bury-buffer is strictly for interactive > use, FWIW). Bury-buffer is used to "hide" from the indirect buffer from the user. That was the easiest way to implement that and should have been rewritten anyways. Removing it doesn't change the fact that buffers are switched (with-current-buffer ...) inside font-lock-fontify-region-function. But I guess that's not an issue (right?). Would it be enough to remove `bury-buffer` call to get back the optimization? What are other elisp functions that can potentially invalidate window_end? Thanks, Vitalie From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 17:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vitalie Spinu Cc: Eli Zaretskii , Andreas Matthias , 19511-done@debbugs.gnu.org Received: via spool by 19511-done@debbugs.gnu.org id=D19511.142048046311965 (code D ref 19511); Mon, 05 Jan 2015 17:55:03 +0000 Received: (at 19511-done) by debbugs.gnu.org; 5 Jan 2015 17:54:23 +0000 Received: from localhost ([127.0.0.1]:37681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8BrD-00036u-FH for submit@debbugs.gnu.org; Mon, 05 Jan 2015 12:54:23 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:56375) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8BrB-00036m-1V for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 12:54:21 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 5BD808514A; Mon, 5 Jan 2015 12:54:20 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 51F761E5B8D; Mon, 5 Jan 2015 12:53:55 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 20BD3B4057; Mon, 5 Jan 2015 12:53:55 -0500 (EST) From: Stefan Monnier Message-ID: References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> <87y4phupt5.fsf@gmail.com> Date: Mon, 05 Jan 2015 12:53:54 -0500 In-Reply-To: <87y4phupt5.fsf@gmail.com> (Vitalie Spinu's message of "Mon, 05 Jan 2015 08:59:02 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Removing it doesn't change the fact that buffers are switched > (with-current-buffer ...) inside font-lock-fontify-region-function. with-current-buffer is basically equivalent to something like (let ((current-buffer ..)) ...) [ tho implemented differently for technical reasons. ] So it doesn't have any undesirable interactions with the redisplay code. > Would it be enough to remove `bury-buffer` call to get back the > optimization? What are other elisp functions that can potentially > invalidate window_end? Any function which changes which buffer is being displayed in a particular window. Stefan From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Andreas Matthias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 18:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Vitalie Spinu , 19511-done@debbugs.gnu.org Received: via spool by 19511-done@debbugs.gnu.org id=D19511.142048146318895 (code D ref 19511); Mon, 05 Jan 2015 18:12:01 +0000 Received: (at 19511-done) by debbugs.gnu.org; 5 Jan 2015 18:11:03 +0000 Received: from localhost ([127.0.0.1]:37720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8C7K-0004uh-W7 for submit@debbugs.gnu.org; Mon, 05 Jan 2015 13:11:03 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:39036) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8C7J-0004uI-84 for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 13:11:01 -0500 Received: by mail-we0-f172.google.com with SMTP id k11so8310868wes.17 for <19511-done@debbugs.gnu.org>; Mon, 05 Jan 2015 10:11:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Qy3tDM/6++61Udb6hcEKdRw3HbSquMCS9BRJYgJtzSs=; b=WD955Rl/J9KtyiSk5EI63K7iYRiFWS0eBKmuwr7mjGuJaWXphEUt4S5W33Qed3teNF k9vt8W8dG4G5ksoY1lzUAARiCxEIfjdBGcugN8gV0nx+796AKmM9H2n/87BOJ6q5DN7/ SbhRcoPoMphKP2Uu0XeNdVWsmo+yh/kPSYkdn5sx7om9/L5rqn0vrGzEX3XKrjq2P2NF eTN/sW/JXdBrfhZou5qyuUNIeRBn70exyfO0y6j8xc/obkKR+fPaIc9XbLJRNpFqfkKs SvzqPfQ2wCo1uNqF2jCB9KPq+wK35RrmC6caPYplScf1rL2EzFzwLGfEivBXVsd5cNYA Rp9g== X-Received: by 10.194.58.19 with SMTP id m19mr122907806wjq.52.1420481460731; Mon, 05 Jan 2015 10:11:00 -0800 (PST) Received: from winky.hogwarts (HSI-KBW-082-212-010-067.hsi.kabelbw.de. [82.212.10.67]) by mx.google.com with ESMTPSA id fm10sm10835400wib.7.2015.01.05.10.10.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jan 2015 10:11:00 -0800 (PST) Received: by winky.hogwarts (Postfix, from userid 1000) id D08FF16E04FD; Mon, 5 Jan 2015 19:10:59 +0100 (CET) From: Andreas Matthias References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> Date: Mon, 05 Jan 2015 19:10:59 +0100 In-Reply-To: <83tx058bjm.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Jan 2015 17:58:05 +0200") Message-ID: <87ioglxfm4.fsf@winky.hogwarts> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii wrote: > I have now disabled that optimization for packages which commit such > atrocities, so Polymode is now merely a performance killer, not a > crasher. The decrease in performance is noticeable, but this is definitely better than continuous crashes. > So I installed the fix for this in the emacs-24 branch (commit d279e66). Thank you. Andreas From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vitalie Spinu Cc: andreas.matthias@gmail.com, 19511@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19511-submit@debbugs.gnu.org id=B19511.142048226720237 (code B ref 19511); Mon, 05 Jan 2015 18:25:02 +0000 Received: (at 19511) by debbugs.gnu.org; 5 Jan 2015 18:24:27 +0000 Received: from localhost ([127.0.0.1]:37731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CKI-0005GI-L9 for submit@debbugs.gnu.org; Mon, 05 Jan 2015 13:24:27 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:51205) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CKF-0005G0-R9 for 19511@debbugs.gnu.org; Mon, 05 Jan 2015 13:24:25 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NHP00900UWZSO00@a-mtaout20.012.net.il> for 19511@debbugs.gnu.org; Mon, 05 Jan 2015 20:24:21 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHP009CWV4LOR30@a-mtaout20.012.net.il>; Mon, 05 Jan 2015 20:24:21 +0200 (IST) Date: Mon, 05 Jan 2015 20:24:27 +0200 From: Eli Zaretskii In-reply-to: <87y4phupt5.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83r3v984ro.fsf@gnu.org> References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> <87y4phupt5.fsf@gmail.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Vitalie Spinu > Cc: Andreas Matthias , 19511-done@debbugs.gnu.org > Date: Mon, 05 Jan 2015 08:59:02 -0800 > > > I hope Polymode will be changed to not call bury-buffer in that > > situation (I always thought bury-buffer is strictly for interactive > > use, FWIW). > > Bury-buffer is used to "hide" from the indirect buffer from the > user. That was the easiest way to implement that and should have been > rewritten anyways. bury-buffer is a command. A command typically does a lot of dwim-ish stuff that is not directly related to its main job. If you needed to merely put the buffer at the end of buffer-list, you could have called bury-buffer-internal instead, which does precisely that and nothing else. Assuming you really need to manipulate buffer-list at all. > Removing it doesn't change the fact that buffers are switched > (with-current-buffer ...) inside font-lock-fontify-region-function. But > I guess that's not an issue (right?). Right, that's not the issue. The problem is the call to switch-to-prev-buffer that bury-buffer does. That results in a call to set-window-buffer, which is the one that invalidates window_end_pos etc. > Would it be enough to remove `bury-buffer` call to get back the > optimization? Probably, but if you show me the changes, I can see if they achieve that. > What are other elisp functions that can potentially invalidate > window_end? Any function that calls apply_window_adjustment, for example. Which is called in just a handful of places, see window.c. Also set-window-start and functions that split or delete windows. Basically, those that really change the window's display (and therefore shouldn't be called in a fontification function). From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: spinuvit@gmail.com, andreas.matthias@gmail.com, 19511-done@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19511-done@debbugs.gnu.org id=D19511.142048269021012 (code D ref 19511); Mon, 05 Jan 2015 18:32:01 +0000 Received: (at 19511-done) by debbugs.gnu.org; 5 Jan 2015 18:31:30 +0000 Received: from localhost ([127.0.0.1]:37735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CR7-0005Sp-Sw for submit@debbugs.gnu.org; Mon, 05 Jan 2015 13:31:30 -0500 Received: from mtaout24.012.net.il ([80.179.55.180]:44569) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CR5-0005Sg-ND for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 13:31:28 -0500 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NHP00E00UP3ZN00@mtaout24.012.net.il> for 19511-done@debbugs.gnu.org; Mon, 05 Jan 2015 20:23:28 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHP00AN1V33UM50@mtaout24.012.net.il>; Mon, 05 Jan 2015 20:23:28 +0200 (IST) Date: Mon, 05 Jan 2015 20:31:32 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83oaqd84fv.fsf@gnu.org> References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> <87y4phupt5.fsf@gmail.com> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Stefan Monnier > Cc: Eli Zaretskii , Andreas Matthias , 19511-done@debbugs.gnu.org > Date: Mon, 05 Jan 2015 12:53:54 -0500 > > Any function which changes which buffer is being displayed in > a particular window. And also any function that changes the window display itself, like split-window, for example. From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 18:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Matthias Cc: spinuvit@gmail.com, 19511@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19511-submit@debbugs.gnu.org id=B19511.142048300721479 (code B ref 19511); Mon, 05 Jan 2015 18:37:01 +0000 Received: (at 19511) by debbugs.gnu.org; 5 Jan 2015 18:36:47 +0000 Received: from localhost ([127.0.0.1]:37739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CWE-0005aN-Md for submit@debbugs.gnu.org; Mon, 05 Jan 2015 13:36:47 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:40668) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8CWB-0005aD-GO for 19511@debbugs.gnu.org; Mon, 05 Jan 2015 13:36:44 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NHP00800VJ2WE00@a-mtaout23.012.net.il> for 19511@debbugs.gnu.org; Mon, 05 Jan 2015 20:36:42 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHP008J0VP5QCB0@a-mtaout23.012.net.il>; Mon, 05 Jan 2015 20:36:42 +0200 (IST) Date: Mon, 05 Jan 2015 20:36:48 +0200 From: Eli Zaretskii In-reply-to: <87ioglxfm4.fsf@winky.hogwarts> X-012-Sender: halo1@inter.net.il Message-id: <83mw5x8473.fsf@gnu.org> References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> <87ioglxfm4.fsf@winky.hogwarts> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Andreas Matthias > Cc: 19511-done@debbugs.gnu.org, Vitalie Spinu > Date: Mon, 05 Jan 2015 19:10:59 +0100 > > Eli Zaretskii wrote: > > > I have now disabled that optimization for packages which commit such > > atrocities, so Polymode is now merely a performance killer, not a > > crasher. > > The decrease in performance is noticeable There really is nothing else I can do under these circumstances. I initially tried not to reject so many optimizations, but that left strange artifacts on the screen, so I was forced to do it more thoroughly. Hopefully, the underlying problem will be solved in Polymode, and performance will be back where it was before. From unknown Sun Aug 10 02:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19511: 25.0.50; Failed assertions in redisplay() code. (dispnew.c:1405; xdisp.c:17524) Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jan 2015 18:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Andreas Matthias , 19511@debbugs.gnu.org Received: via spool by 19511-submit@debbugs.gnu.org id=B19511.142048328021942 (code B ref 19511); Mon, 05 Jan 2015 18:42:01 +0000 Received: (at 19511) by debbugs.gnu.org; 5 Jan 2015 18:41:20 +0000 Received: from localhost ([127.0.0.1]:37746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Cae-0005hp-EE for submit@debbugs.gnu.org; Mon, 05 Jan 2015 13:41:20 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:42538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Cac-0005hh-S6 for 19511@debbugs.gnu.org; Mon, 05 Jan 2015 13:41:19 -0500 Received: by mail-pd0-f174.google.com with SMTP id fp1so28516410pdb.5 for <19511@debbugs.gnu.org>; Mon, 05 Jan 2015 10:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=LUKorPcriPiQ4/ZHupRZZpW4VpJtCi6lBdDhwWAudss=; b=J5a0wiEehQ2Rz5EK5VxOw4qgsc5FWxJRfRZAY4Urn9rchH7eBpRZL42ZrPUAMymVsy byWlWc/1L1+azmTLHt03zJ67bc6nZe8XK0ZpnVJwTLSjbOQNesxSmL8iKa3ZfQDbamUa Aj1IYiaqbZTf08oTW86AmLp0aEerDSGRsCSa6J0kAIOpGRsumSvwAh7I9wavzie4lSNd uG8oFt724yfewdVWALVyTLS/fn2IVtD3qPvuchxjinbFXP3JfLeiZELfe7BOaaIMyGx1 almO+XtvJwH9Ofi5h/gmtqWOjCGQqhJyEhi1agGZQHpqrQJGCmt31Roo93cG9pokGgGY m64w== X-Received: by 10.70.108.193 with SMTP id hm1mr150290013pdb.167.1420483277849; Mon, 05 Jan 2015 10:41:17 -0800 (PST) Received: from localhost ([172.56.31.229]) by mx.google.com with ESMTPSA id fp13sm53010822pdb.30.2015.01.05.10.41.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jan 2015 10:41:16 -0800 (PST) From: Vitalie Spinu Organization: UCLA Anderson School of Management References: <878uhiji5m.fsf@winky.hogwarts> <83tx058bjm.fsf@gnu.org> <87ioglxfm4.fsf@winky.hogwarts> <83mw5x8473.fsf@gnu.org> Date: Mon, 05 Jan 2015 10:41:13 -0800 In-Reply-To: <83mw5x8473.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Jan 2015 20:36:48 +0200") Message-ID: <871tn9xe7q.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>> Eli Zaretskii on Mon, 05 Jan 2015 20:36:48 +0200 wrote: > Hopefully, the underlying problem will be solved in Polymode, and > performance will be back where it was before. I have removed bury-buffer from polymode and I will make sure not to get into this area again. Your explanation was very helpful. Thanks, Vitalie