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 09:29:46 +0300 Message-ID: <83d15ytan9.fsf@gnu.org> References: <8760buwnne.fsf@gmail.com> <83d162xahp.fsf@gnu.org> <87bmllxieq.fsf@gmail.com> <83wp48vffr.fsf@gnu.org> <878tgmd0e9.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507444273 14248 195.159.176.226 (8 Oct 2017 06:31:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 06:31:13 +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 08:31: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 1e157B-0002XF-Vq for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 08:31:06 +0200 Original-Received: from localhost ([::1]:52666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e157H-0003XR-Ty for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 02:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e157B-0003XG-UJ for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 02:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1578-0006Y7-RB for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 02:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1578-0006Xv-Of for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 02:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1578-0006dR-Jk for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 02:31: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: Sun, 08 Oct 2017 06:31:02 +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.150744420225369 (code B ref 28710); Sun, 08 Oct 2017 06:31:02 +0000 Original-Received: (at 28710) by debbugs.gnu.org; 8 Oct 2017 06:30:02 +0000 Original-Received: from localhost ([127.0.0.1]:55427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1569-0006aq-7s for submit@debbugs.gnu.org; Sun, 08 Oct 2017 02:30:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1567-0006aS-74 for 28710@debbugs.gnu.org; Sun, 08 Oct 2017 02:29:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e155y-0005dA-KG for 28710@debbugs.gnu.org; Sun, 08 Oct 2017 02:29:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e155y-0005cx-Ht; Sun, 08 Oct 2017 02:29:50 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3396 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e155x-0000bK-VQ; Sun, 08 Oct 2017 02:29:50 -0400 In-reply-to: <878tgmd0e9.fsf@gmail.com> (message from Alex on Sat, 07 Oct 2017 17:05:34 -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:138066 Archived-At: > From: Alex > Cc: 28710@debbugs.gnu.org > Date: Sat, 07 Oct 2017 17:05:34 -0600 > > > I wrote instructions for a debugging session to find that out, see > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27668#89 > > > > Instead of "r -Q", type just "run" to run Emacs as usual, or even > > attach to an already running Emacs with "gdb -p", set the breakpoint, > > and type "continue. The "Inside Emacs" part will have to be replaced > > with your recipe, up to and including step 5, and you should invoke > > redraw-display just before hitting the final RET in step 6, the one > > that triggers the assertion. After performing the GDB commands and > > continuing Emacs, hit RET, and post the backtraces from every time the > > watchpoint set by those GDB commands is hit. I hope we will then see > > the offending code that needs to be fixed. > > > > Let me know if you need me to rewrite the instructions to fit your > > case exactly. > > Okay, I've pasted the output below. 2 watchpoints triggered right after > M-x redraw-display, and I only get the third before the assertion. > > After your recipe, you mention update_display and how it runs after > Emacs "redrawn the window to the glass", so it should be noted that the > assertion violated is triggered before the buffer with > display-line-numbers is displayed. Thanks, but I need a backtrace at each hit of the watchpoint. The GDB session I posted defined commands to be executed at the watchpoint, so such a backtrace should have been executed whenever the watchpoint triggered. Those backtraces is what I need to determine where is the enabled_p flag set, because one of those places is unexpected by the code. It's probably the last, but given what you posted, I cannot see where did the call to prepare_desired_row originated. Thanks.