From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#27668: 26.0.50; Crash with display-line-numbers t Date: Fri, 14 Jul 2017 10:59:17 +0200 Organization: not if I can help it Message-ID: <87d1931jiy.fsf@gmail.com> References: <87k23d7ovv.fsf@gmail.com> <83inixiv0m.fsf@gnu.org> <877ezd7luq.fsf@gmail.com> <83bmopitky.fsf@gnu.org> <87vamx65x0.fsf@gmail.com> <837ezdiq3z.fsf@gnu.org> <871spl5x5h.fsf@gmail.com> <834luhiinr.fsf@gnu.org> <8760ewviyt.fsf@gmail.com> <83pod4gv0i.fsf@gnu.org> <87r2xkl246.fsf@gmail.com> <83mv88gqzi.fsf@gnu.org> <87mv88kxps.fsf@gmail.com> <83eftkgn06.fsf@gnu.org> <87iniwku3y.fsf@gmail.com> <83zic7fnrv.fsf@gnu.org> Reply-To: bug-gnu-emacs@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500022829 16273 195.159.176.226 (14 Jul 2017 09:00:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 09:00:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27668@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 14 11:00:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVwSS-0003oq-LX for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 11:00:20 +0200 Original-Received: from localhost ([::1]:36342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVwSY-0001Hx-5i for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 05:00:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVwSG-00015k-IO for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 05:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVwSA-0004Ym-Fy for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 05:00:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVwSA-0004Yb-D5 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 05:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVwSA-0000Pv-1V for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 05:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87k23d7ovv.fsf@gmail.com> Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 09:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27668 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.15000227841552 (code B ref -1); Fri, 14 Jul 2017 09:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2017 08:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:37731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVwRs-0000Ox-9j for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:59:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVwRp-0000Ok-Rh for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:59:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVwRj-0004M8-0q for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:59:36 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVwRi-0004Lz-Tl for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:59:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVwRh-0000SH-En for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:59:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVwRd-0004IT-Hl for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:59:33 -0400 Original-Received: from [195.159.176.226] (port=35513 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVwRd-0004Hd-A5 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:59:29 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dVwRS-0000oF-2Z for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 10:59:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 83 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:Q6DhaFiIGOE+fJjss9jDxZ7ORdU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134535 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> (gdb) pgrowx it->glyph_row >> TEXT: 66 glyphs >> 0 0: CHAR[ ] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 1 16: CHAR[1] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 2 32: CHAR[2] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 3 48: CHAR[6] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 4 64: CHAR[1] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 5 80: CHAR[ ] pos=-1 blev=2,btyp=EN w=16 a+d=25+6 face=51 MB AVOID >> 6 96: CHAR[ ] pos=37180 blev=0,btyp=L w=16 a+d=25+6 MB > > Hmm... I'm not sure how this happened, but I have a theory. I've now > made a change in master based on that theory, and also added an > assertion where you previously had to set a breakpoint. Please see if > the current master fixes the problem and doesn't hit the assertion in > maybe_produce_line_number. git describe HEAD emacs-24.5-rc3-fixed-13053-g60d24e1681 (gdb) run Starting program: /home/rpluim/repos/emacs-master/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe4de5700 (LWP 6631)] [New Thread 0x7fffdffff700 (LWP 6632)] [New Thread 0x7fffdf5f1700 (LWP 6633)] xdisp.c:21012: Emacs fatal error: assertion failed: it->glyph_row == NULL || it->glyph_row->used[TEXT_AREA] == 0 Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:363 363 { (gdb) bt #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:363 #1 0x00000000005a4ed4 in die (msg=msg@entry=0x67aec0 "it->glyph_row == NULL || it->glyph_row->used[TEXT_AREA] == 0", file=file@entry=0x678e68 "xdisp.c", line=line@entry=21012) at alloc.c:7348 #2 0x000000000045befb in maybe_produce_line_number (it=it@entry=0x7fffffff8130) at xdisp.c:21012 #3 0x0000000000465335 in display_line (it=it@entry=0x7fffffff8130, cursor_vpos=cursor_vpos@entry=9) at xdisp.c:21227 #4 0x000000000046728d in try_window (window=..., window@entry=XIL(0x146e6c5), pos=..., flags=flags@entry=1) at xdisp.c:17544 #5 0x000000000047f8fb in redisplay_window (window=XIL(0x146e6c5), just_this_one_p=just_this_one_p@entry=false) at xdisp.c:16991 #6 0x000000000048314b in redisplay_window_0 (window=..., window@entry=XIL(0x146e6c5)) at xdisp.c:14751 #7 0x00000000005c7b44 in internal_condition_case_1 (bfun=bfun@entry=0x483120 , arg=..., handlers=..., hfun=hfun@entry=0x435900 ) at eval.c:1350 #8 0x000000000043d100 in redisplay_windows (window=...) at xdisp.c:14731 #9 0x000000000043d0c9 in redisplay_windows (window=...) at xdisp.c:14725 #10 0x000000000046c915 in redisplay_internal () at xdisp.c:14220 #11 0x000000000046eea5 in redisplay () at xdisp.c:13440 #12 0x0000000000545b4b in read_char (commandflag=commandflag@entry=1, map=..., map@entry=XIL(0x346a793), prev_event=..., used_mouse_menu=used_mouse_menu@entry=0x7fffffffd6cb, end_time=end_time@entry=0x0) at keyboard.c:2484 #13 0x0000000000548c2b in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd7b0, prompt=..., prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, bufsize=30) at keyboard.c:9151 #14 0x000000000054aee6 in command_loop_1 () at keyboard.c:1372 #15 0x00000000005c7a77 in internal_condition_case (bfun=bfun@entry=0x54ac40 , handlers=..., handlers@entry=XIL(0x4fb0), hfun=hfun@entry=0x53e5c0 ) at eval.c:1326 #16 0x0000000000537f2c in command_loop_2 (ignore=..., ignore@entry=XIL(0)) at keyboard.c:1114 #17 0x00000000005c79bc in internal_catch (tag=..., tag@entry=XIL(0xc1e0), func=func@entry=0x537f10 , arg=..., arg@entry=XIL(0)) at eval.c:1091 #18 0x0000000000537ee9 in command_loop () at keyboard.c:1093 #19 0x000000000053e0e6 in recursive_edit_1 () at keyboard.c:699 #20 0x000000000053e463 in Frecursive_edit () at keyboard.c:770 #21 0x000000000041aceb in main (argc=, argv=0x7fffffffdb58) at emacs.c:1706 Lisp Backtrace: eval.c:150: Emacs fatal error: assertion failed: pdl->kind == SPECPDL_BACKTRACE Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:363 363 { I was looking at a commit in Magit, and had just hit enter in a diff hunk to view the source file containing the change, so it's happening when we switch from non-line-number to line-number mode. Robert