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 21:51:09 +0300 Message-ID: <83lgkkqhnm.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> <83376ssddj.fsf@gnu.org> <877ew4ciij.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1507575134 2034 195.159.176.226 (9 Oct 2017 18:52:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2017 18:52:14 +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 20:52:06 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 1e1d9p-0007pO-UB for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 20:52:06 +0200 Original-Received: from localhost ([::1]:59320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1d9x-0000ky-Ab for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 14:52:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1d9q-0000kh-Te for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 14:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1d9m-000713-UD for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 14:52:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1d9m-00070p-QC for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 14:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1d9m-0004l0-H0 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2017 14:52: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: Mon, 09 Oct 2017 18:52: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.150757510918264 (code B ref 28710); Mon, 09 Oct 2017 18:52:02 +0000 Original-Received: (at 28710) by debbugs.gnu.org; 9 Oct 2017 18:51:49 +0000 Original-Received: from localhost ([127.0.0.1]:58558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1d9Z-0004kW-7P for submit@debbugs.gnu.org; Mon, 09 Oct 2017 14:51:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1d9X-0004kG-B4 for 28710@debbugs.gnu.org; Mon, 09 Oct 2017 14:51:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1d9O-0006rM-Tr for 28710@debbugs.gnu.org; Mon, 09 Oct 2017 14:51:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1d9O-0006rI-QB; Mon, 09 Oct 2017 14:51:38 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1d9M-0000QZ-TZ; Mon, 09 Oct 2017 14:51:38 -0400 In-reply-to: <877ew4ciij.fsf@gmail.com> (message from Alex on Mon, 09 Oct 2017 11:56:20 -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:138138 Archived-At: > From: Alex > Cc: 28710@debbugs.gnu.org > Date: Mon, 09 Oct 2017 11:56:20 -0600 > > > Thanks. I installed a change that should fix the problem, please try > > the latest emacs-26 branch. > > Looks like it's fixed, thanks. Great, thanks for testing. > > 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. > > Unfortunately, when I try to use XFRAME, I get: > No symbol "__builtin_assume_aligned" in current context. OK, then you could use a slightly different way: 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 frame $1 = XIL(0xa000000001b5e380) (gdb) xframe $2 = (struct frame *) 0x1b5e380 "emacs@HOME-C4E4A596F7" (gdb) p $2->redisplay $3 = true (gdb) watch -l $2->redisplay Hardware watchpoint 4: -location $2->redisplay (gdb) commands Type commands for breakpoint(s) 4, one per line. End with a line saying just "end". >bt >continue >end (gdb) continue (The "xframe" command is defined in src/.gdbinit, so if you are not running GDB from the src directory, you will need to tell it to read that file: (gdb) source /path/to/emacs/src/.gdbinit > I tried the following workaround, but no backtraces showed up: > > Thread 1 "emacs-26.0.60.4" hit Breakpoint 1, Fredraw_display () > at dispnew.c:3032 > 3032 FOR_EACH_FRAME (tail, frame) > (gdb) n > 3033 if (FRAME_VISIBLE_P (XFRAME (frame))) > (gdb) p (struct frame *) XLI(frame) - Lisp_Vectorlike > $3 = (struct frame *) 0x15c9285 When I try this, I get a different frame pointer and a warning message from GDB. So let's hope this workaround is incorrect ;-) Thanks.