From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Matthias Newsgroups: gmane.emacs.bugs Subject: bug#19511: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1420413682 10366 80.91.229.3 (4 Jan 2015 23:21:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 23:21:22 +0000 (UTC) To: 19511@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 00:21:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7uTx-0004FZ-CO for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2015 00:21:13 +0100 Original-Received: from localhost ([::1]:58470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uTw-0003SZ-KY for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 18:21:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uTs-0003SI-0X for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:21:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7uTm-0007sP-Ps for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:21:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uTm-0007sL-MQ for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7uTm-0003T9-AH for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:21:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142041365213305 (code B ref -1); Sun, 04 Jan 2015 23:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jan 2015 23:20:52 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-Received: by winky.hogwarts (Postfix, from userid 1000) id E4A9316E0317; Sun, 4 Jan 2015 23:27:33 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98010 Archived-At: --=-=-= 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)) --=-=-=--