From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27668: 26.0.50; Crash with display-line-numbers t Date: Fri, 14 Jul 2017 11:03:48 +0300 Message-ID: <83zic7fnrv.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500019458 19479 195.159.176.226 (14 Jul 2017 08:04:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 08:04:18 +0000 (UTC) To: 27668@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 14 10:04:15 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 1dVva1-0004RM-IO for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 10:04:05 +0200 Original-Received: from localhost ([::1]:36072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVva7-0002ff-6a for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 04:04:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVva1-0002fa-UB for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVvZy-0002PC-QN for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVvZy-0002P7-N6 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVvZy-0007UY-FC for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 08:04:02 +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.150001943928787 (code B ref -1); Fri, 14 Jul 2017 08:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2017 08:03:59 +0000 Original-Received: from localhost ([127.0.0.1]:37689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVvZu-0007UF-QD for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:03:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVvZt-0007U2-EH for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVvZn-0002OA-Ay for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:03:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVvZn-0002O6-7k for submit@debbugs.gnu.org; Fri, 14 Jul 2017 04:03:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVvZl-0002eI-VK for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:03:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVvZi-0002NW-Rp for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:03:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVvZi-0002NS-OO for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:03:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4050 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dVvZi-0006zM-4T for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 04:03:46 -0400 In-reply-to: <87iniwku3y.fsf@gmail.com> (message from Robert Pluim on Thu, 13 Jul 2017 21:35:45 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:134533 Archived-At: > From: Robert Pluim > Date: Thu, 13 Jul 2017 21:35:45 +0200 > > Eli Zaretskii writes: > > >> From: Robert Pluim > >> Date: Thu, 13 Jul 2017 20:17:51 +0200 > >> > >> (gdb) p it->glyph_row->used[TEXT_AREA] > >> $1 = 66 > >> > >> (gdb) bt > >> #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:363 > >> #1 0x00000000005a5084 in die (msg=msg@entry=0x6987d8 "pdl->kind == SPECPDL_BACKTRACE", file=file@entry=0x698448 "eval.c", line=line@entry=150) at alloc.c:7348 > >> #2 0x0000000000419f3b in backtrace_function (pdl=) at eval.c:150 > >> #3 > >> #4 maybe_produce_line_number (it=it@entry=0x7fffffff8130) at xdisp.c:21010 > >> #5 0x0000000000465365 in display_line (it=it@entry=0x7fffffff8130, cursor_vpos=cursor_vpos@entry=16) at xdisp.c:21225 > >> #6 0x00000000004672bd in try_window (window=..., window@entry=XIL(0x146d7d5), pos=..., flags=flags@entry=1) at xdisp.c:17544 > >> #7 0x000000000047f9ab in redisplay_window (window=XIL(0x146d7d5), just_this_one_p=just_this_one_p@entry=false) at xdisp.c:16991 > >> #8 0x00000000004831fb in redisplay_window_0 (window=..., window@entry=XIL(0x146d7d5)) at xdisp.c:14751 > > > > Curiouser and curiouser... > > > > OK, in frame #5, the one in display_line, what do these produce: > > > > (gdb) p it->current > > (gdb) pgrowx it->glyph_row > > (gdb) p it->current > $2 = { > pos = { > charpos = 37180, > bytepos = 37180 > }, > overlay_string_index = -1, > string_pos = { > charpos = -1, > bytepos = -1 > }, > dpvec_index = -1 > } > (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. Thanks.