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#28710: 27.0.50; eassert failure in maybe_produce_line_number Date: Mon, 09 Oct 2017 15:40:40 +0300 Message-ID: <83376ssddj.fsf@gnu.org> References: <8760buwnne.fsf@gmail.com> <83d162xahp.fsf@gnu.org> <87bmllxieq.fsf@gmail.com> <83wp48vffr.fsf@gnu.org> <878tgmd0e9.fsf@gmail.com> <83d15ytan9.fsf@gnu.org> <874lracdw6.fsf@gmail.com> <837ew6t214.fsf@gnu.org> <871smd1muu.fsf@gmail.com> <83po9xs9ka.fsf@gnu.org> <87wp45z69y.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507552932 724 195.159.176.226 (9 Oct 2017 12:42:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2017 12:42:12 +0000 (UTC) Cc: 28710@debbugs.gnu.org To: Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 09 14:42:08 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 1e1XNm-0007vl-Qw for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 14:42:06 +0200 Original-Received: from localhost ([::1]:57692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1XNu-0006l0-3z for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 08:42:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1XNl-0006jz-5Q for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 08:42:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1XNi-0001GS-13 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 08:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1XNh-0001GL-Tk for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 08:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1XNh-0001Ol-N7 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 08:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2017 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28710 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 28710-submit@debbugs.gnu.org id=B28710.15075528645296 (code B ref 28710); Mon, 09 Oct 2017 12:42:01 +0000 Original-Received: (at 28710) by debbugs.gnu.org; 9 Oct 2017 12:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:57284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1XMm-0001NL-Ee for submit@debbugs.gnu.org; Mon, 09 Oct 2017 08:41:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1XMl-0001Mb-0O for 28710@debbugs.gnu.org; Mon, 09 Oct 2017 08:41:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1XMc-0000kY-G8 for 28710@debbugs.gnu.org; Mon, 09 Oct 2017 08:40:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1XMc-0000kO-CZ; Mon, 09 Oct 2017 08:40:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4932 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1XMb-0000NK-Op; Mon, 09 Oct 2017 08:40:54 -0400 In-reply-to: <87wp45z69y.fsf@gmail.com> (message from Alex on Sun, 08 Oct 2017 15:19:53 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:138116 Archived-At: > From: Alex > Cc: 28710@debbugs.gnu.org > Date: Sun, 08 Oct 2017 15:19:53 -0600 > > Eli Zaretskii writes: > > > OK, so we need to understand the path the code takes after try_window > > returns the value 1. This means, after typing "finish" 3 times, type > > "next", then continue pressing RET until redisplay_window returns. I > > need to see the path through the code until we exit redisplay_window > > to understand where to put the missing call to clear_glyph_matrix. > > Thread 1 "emacs" hit Hardware watchpoint 2: -location $1->desired_matrix->rows->enabled_p Thanks. I installed a change that should fix the problem, please try the latest emacs-26 branch. As to why this doesn't happen to me: for some reason, on your system, when all the frame's windows have been redisplayed, their frame's 'redisplay' flag is set, and that causes redisplay_internal to immediately redisplay all the windows again, see this part of your transcript: > 14320 if (!f_redisplay_flag && f->redisplay) > (gdb) > 14321 goto retry_frame; On my system, the 'redisplay' flag stays reset, so this goto is bypassed, and the problem doesn't happen. If you can afford one last effort, please re-run the recipe with a watchpoint set on the frame's 'redisplay' flag, and show the backtraces from every one of the watchpoint's hits, then perhaps I will know next time what else to try to reproduce such cases. Specifically, after invoking redraw-display, which causes GDB to kick in, do this: Thread 1 hit Breakpoint 3, Fredraw_display () at dispnew.c:3032 3032 FOR_EACH_FRAME (tail, frame) (gdb) n 3033 if (FRAME_VISIBLE_P (XFRAME (frame))) (gdb) p XFRAME(frame) $1 = (struct frame *) 0x1b5e380 (gdb) p $1->redisplay $2 = true (gdb) watch -l $1->redisplay Hardware watchpoint 4: -location $1->redisplay (gdb) commands > bt > continue > end (gdb) continue and then continue with the recipe, and show all the backtraces you get.