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: Sun, 08 Oct 2017 22:50:45 +0300 Message-ID: <83po9xs9ka.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507492271 12798 195.159.176.226 (8 Oct 2017 19:51:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 19:51:11 +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 Sun Oct 08 21:51:07 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 1e1HbM-0002OF-Cc for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 21:51:04 +0200 Original-Received: from localhost ([::1]:54844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1HbT-00024F-Iq for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 15:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1HbL-000244-1C for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 15:51:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1HbK-0001fM-7j for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 15:51:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1HbK-0001f3-4C for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 15:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1HbJ-0004jL-UT for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 15:51: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: Sun, 08 Oct 2017 19:51: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.150749225918171 (code B ref 28710); Sun, 08 Oct 2017 19:51:01 +0000 Original-Received: (at 28710) by debbugs.gnu.org; 8 Oct 2017 19:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:56696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1HbH-0004j1-DD for submit@debbugs.gnu.org; Sun, 08 Oct 2017 15:50:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1HbG-0004in-HH for 28710@debbugs.gnu.org; Sun, 08 Oct 2017 15:50:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1Hb8-0001RG-8j for 28710@debbugs.gnu.org; Sun, 08 Oct 2017 15:50:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1Hb8-0001R8-4q; Sun, 08 Oct 2017 15:50:50 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4410 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1Hb7-0001ES-H6; Sun, 08 Oct 2017 15:50:49 -0400 In-reply-to: <871smd1muu.fsf@gmail.com> (message from Alex on Sun, 08 Oct 2017 13:05:45 -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:138084 Archived-At: > From: Alex > Cc: 28710@debbugs.gnu.org > Date: Sun, 08 Oct 2017 13:05:45 -0600 > > The return value appears to be true. The breakpoint does trigger right > after, and enabled_p is also true: > > Thread 1 "emacs" hit Hardware watchpoint 4: -location $1->desired_matrix->rows->enabled_p > > Old value = false > New value = true > prepare_desired_row (w=0x1695d60 , row=0x4182860, > mode_line_p=true) at dispnew.c:1076 > 1076 row->reversed_p = rp; > (gdb) c > Continuing. > > Thread 1 "emacs" hit Hardware watchpoint 4: -location $1->desired_matrix->rows->enabled_p > > Old value = true > New value = false > clear_glyph_matrix_rows (matrix=0x3f524f0, start=0, end=37) at dispnew.c:693 > 693 for (; start < end; ++start) > (gdb) c > Continuing. > > Thread 1 "emacs" hit Hardware watchpoint 4: -location $1->desired_matrix->rows->enabled_p > > Old value = false > New value = true > prepare_desired_row (w=0x1695d60 , row=0x4182860, > mode_line_p=false) at dispnew.c:1076 > 1076 row->reversed_p = rp; > (gdb) break xdisp.c:17039 > Breakpoint 5 at 0x474844: file xdisp.c, line 17039. > (gdb) commands > Type commands for breakpoint(s) 5, one per line. > End with a line saying just "end". > >p w->desired_matrix->rows->enabled_p > >end > (gdb) finish > Run till exit from #0 prepare_desired_row ( > w=0x1695d60 , row=0x4182860, mode_line_p=false) > at dispnew.c:1076 > display_line (it=0x7ffefb255dc0, cursor_vpos=25) at xdisp.c:21208 > warning: Source file is more recent than executable. > 21208 row->y = it->current_y; > (gdb) finish > Run till exit from #0 display_line (it=0x7ffefb255dc0, cursor_vpos=25) > at xdisp.c:21208 > 0x0000000000477380 in try_window (window=XIL(0x1695d65), pos=..., flags=1) > at xdisp.c:17592 > 17592 if (display_line (&it, cursor_vpos)) > Value returned is $2 = true > (gdb) finish > Run till exit from #0 0x0000000000477380 in try_window ( > window=XIL(0x1695d65), pos=..., flags=1) at xdisp.c:17592 > 0x0000000000474866 in redisplay_window (window=XIL(0x1695d65), > just_this_one_p=false) at xdisp.c:17039 > 17039 if (try_window (window, startp, TRY_WINDOW_CHECK_MARGINS) < 0) > Value returned is $3 = 1 > (gdb) continue > Continuing. > > Thread 1 "emacs" hit Breakpoint 5, redisplay_window (window=XIL(0x1695d65), just_this_one_p=false) at xdisp.c:17039 > 17039 if (try_window (window, startp, TRY_WINDOW_CHECK_MARGINS) < 0) > $4 = true > (gdb) p w->desired_matrix->rows->enabled_p > $5 = true 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. Also, please recompile Emacs because: > warning: Source file is more recent than executable. Thanks. > Have you tried using MELPA[1] to install magit? Maybe that would > work. I'm not sure how will this help. I don't want to install Magit, I just use it from a directory where I unzipped its snapshot. How using MELPA would change that?