From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#28710: 27.0.50; eassert failure in maybe_produce_line_number Date: Sun, 08 Oct 2017 01:11:37 -0600 Message-ID: <874lracdw6.fsf@gmail.com> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507446801 2956 195.159.176.226 (8 Oct 2017 07:13:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 07:13:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 28710@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 08 09:13:13 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 1e15lx-00081S-0n for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 09:13:13 +0200 Original-Received: from localhost ([::1]:52754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e15m1-0001b7-Ai for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Oct 2017 03:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e15lr-0001b0-M1 for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 03:13:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e15lm-0001x2-MN for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 03:13:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46757) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e15lm-0001wo-JY for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 03:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e15ll-0007bY-VP for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2017 03:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2017 07:13: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.150744673629178 (code B ref 28710); Sun, 08 Oct 2017 07:13:01 +0000 Original-Received: (at 28710) by debbugs.gnu.org; 8 Oct 2017 07:12:16 +0000 Original-Received: from localhost ([127.0.0.1]:55438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e15l2-0007aX-75 for submit@debbugs.gnu.org; Sun, 08 Oct 2017 03:12:16 -0400 Original-Received: from mail-it0-f49.google.com ([209.85.214.49]:54111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e15l0-0007aL-PL for 28710@debbugs.gnu.org; Sun, 08 Oct 2017 03:12:15 -0400 Original-Received: by mail-it0-f49.google.com with SMTP id n195so9629251itg.2 for <28710@debbugs.gnu.org>; Sun, 08 Oct 2017 00:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CG/OcWDwV7PYDrjFtZfpwOTiI6bGBIPo6PKUJcSrfko=; b=Ziz4flTThW7jV8S4xUUm0ZnuE9zlJgn0eScWddzjneHNkHIU/SHdsbibSIhbE07Qin IZERxzumLjM8OCskw5CPvrJjqG+9Ql4pk6QZzuulitwNyu9BjGUpYfPOQMwt+gvjlngZ DHCLi5mt0uwP6TOpBFeG/RzGxxFUFuADqueB9erBc512zZM1y+20JpspkEkih6mx681J 8M8/tQLN/bP14iUAATsXv+cjTB92rD1EAkmuYQdQCMxIUtA6XROI8CfHJtWPUYBWl29C 9Np8+OHX6P0CnD+qej4mVpPwLBU2aNZO/uCGx/eiHzkknb7SnvI/7Mr9QGF2c23oWyN8 Q1wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CG/OcWDwV7PYDrjFtZfpwOTiI6bGBIPo6PKUJcSrfko=; b=eZ4hTvcWzAB9GWGpbCO2efcZ4HHXcCyw8PNEVyn2aSQCVI3PyNoshkjvt3h4R2uqYC QPnloLRAalyynKhzoDfW4JrIvRQ8LA0B8VWRfiKkcr69NeX1nR4AWHQoR3xh+USdAx3e +lx17X6rhu8C2XLvri9nfWyZYDMbcpnzqhSJvR1osl0lYGxkyuqJqV4BA8LLWWHR9Q5X 6pRi03YlzkFn0S7QJZ/JbRejn+pleoMBJm7lxJ2dyyevIKDlhpnCnhnKMr4IE/E4Fr9J i6oD5D3LAesBarrll0K0N/o8KvZBrj3vKzCR7erka015HmVBHtJDCHqAolZmWs5ddZU9 bRVg== X-Gm-Message-State: AMCzsaVZUCf9zJO5f8JXoFOqsQTFhyrGaTv7lYk2uWfcFO5t86med14q cqOh1dXqbWhJBi1Vy5/ST67lIA== X-Google-Smtp-Source: AOwi7QBXJ7D5ldnIhAv449brcFoP29hN7pF8Et1rzgZXOP3HTeKnyKd3M0u5l1jb6ESYK/IFSEjZ3w== X-Received: by 10.36.14.200 with SMTP id 191mr9275043ite.133.1507446728741; Sun, 08 Oct 2017 00:12:08 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 72sm2838768itz.43.2017.10.08.00.12.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Oct 2017 00:12:07 -0700 (PDT) In-Reply-To: <83d15ytan9.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Oct 2017 09:29:46 +0300") 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:138067 Archived-At: Eli Zaretskii writes: > 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. Sorry, it seems that "M-x gdb" doesn't show the output of the commands for me (is that a bug?), even with "M-x gdb-many-windows". I had to try gdb on the command line to get the following: Old value = false New value = true prepare_desired_row (w=0x15cac30 , row=0x3a48c60, mode_line_p=true) at dispnew.c:1076 1076 row->reversed_p = rp; #0 0x000000000041c601 in prepare_desired_row (w=0x15cac30 , row=0x3a48c60, mode_line_p=true) at dispnew.c:1076 #1 0x000000000048c268 in display_mode_line (w=0x15cac30 , face_id=HEADER_LINE_FACE_ID, format=XIL(0x4472854)) at xdisp.c:23210 #2 0x000000000048c151 in display_mode_lines (w=0x15cac30 ) at xdisp.c:23177 #3 0x000000000047608e in redisplay_window (window=XIL(0x15cac35), just_this_one_p=false) at xdisp.c:17416 #4 0x000000000046d001 in redisplay_window_0 (window=XIL(0x15cac35)) at xdisp.c:14799 #5 0x0000000000646f53 in internal_condition_case_1 (bfun=0x46cfbf , arg=XIL(0x15cac35), handlers=XIL(0xe82d93), hfun=0x46cf87 ) at eval.c:1356 ---Type to continue, or q to quit--- #6 0x000000000046cf5c in redisplay_windows (window=XIL(0x15cac35)) at xdisp.c:14779 #7 0x000000000046b8f5 in redisplay_internal () at xdisp.c:14268 #8 0x00000000004690da in redisplay () at xdisp.c:13488 #9 0x0000000000594c9f in read_char (commandflag=1, map=XIL(0x4466753), prev_event=XIL(0), used_mouse_menu=0x7ffcdcb7f3bf, end_time=0x0) at keyboard.c:2480 #10 0x00000000005a4ffd in read_key_sequence (keybuf=0x7ffcdcb7f510, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9147 #11 0x00000000005918d0 in command_loop_1 () at keyboard.c:1368 #12 0x0000000000646e78 in internal_condition_case (bfun=0x59148c , handlers=XIL(0x5220), hfun=0x590a93 ) at eval.c:1332 #13 0x0000000000591066 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110 #14 0x0000000000646381 in internal_catch (tag=XIL(0xc6c0), func=0x591039 , arg=XIL(0)) at eval.c:1097 #15 0x0000000000591004 in command_loop () at keyboard.c:1089 #16 0x000000000059057d in recursive_edit_1 () at keyboard.c:695 #17 0x0000000000590772 in Frecursive_edit () at keyboard.c:766 #18 0x000000000058e31a in main (argc=2, argv=0x7ffcdcb7f9d8) at emacs.c:1713 Lisp Backtrace: "redisplay_internal (C function)" (0x0) 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=0x3778570, start=0, end=37) at dispnew.c:693 693 for (; start < end; ++start) #0 0x000000000041b026 in clear_glyph_matrix_rows (matrix=0x3778570, start=0, end=37) at dispnew.c:693 #1 0x000000000041b060 in clear_glyph_matrix (matrix=0x3778570) at dispnew.c:712 #2 0x0000000000421a79 in update_window (w=0x15cac30 , force_p=true) at dispnew.c:3554 #3 0x0000000000420d9c in update_window_tree (w=0x15cac30 , force_p=true) at dispnew.c:3221 #4 0x0000000000420956 in update_frame (f=0x15c9c30 , force_p=true, inhibit_hairy_id_p=false) at dispnew.c:3110 #5 0x000000000046bb29 in redisplay_internal () at xdisp.c:14346 #6 0x00000000004690da in redisplay () at xdisp.c:13488 #7 0x0000000000594c9f in read_char (commandflag=1, map=XIL(0x4466753), prev_event=XIL(0), used_mouse_menu=0x7ffcdcb7f3bf, end_time=0x0) at keyboard.c:2480 #8 0x00000000005a4ffd in read_key_sequence (keybuf=0x7ffcdcb7f510, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9147 #9 0x00000000005918d0 in command_loop_1 () at keyboard.c:1368 #10 0x0000000000646e78 in internal_condition_case (bfun=0x59148c , handlers=XIL(0x5220), hfun=0x590a93 ) at eval.c:1332 #11 0x0000000000591066 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110 #12 0x0000000000646381 in internal_catch (tag=XIL(0xc6c0), func=0x591039 , arg=XIL(0)) at eval.c:1097 #13 0x0000000000591004 in command_loop () at keyboard.c:1089 #14 0x000000000059057d in recursive_edit_1 () at keyboard.c:695 #15 0x0000000000590772 in Frecursive_edit () at keyboard.c:766 #16 0x000000000058e31a in main (argc=2, argv=0x7ffcdcb7f9d8) at emacs.c:1713 Lisp Backtrace: "redisplay_internal (C function)" (0x0) Thread 1 "emacs" hit Hardware watchpoint 4: -location $1->desired_matrix->rows->enabled_p Old value = false New value = true prepare_desired_row (w=0x15cac30 , row=0x3a48c60, mode_line_p=false) at dispnew.c:1076 1076 row->reversed_p = rp; #0 0x000000000041c601 in prepare_desired_row (w=0x15cac30 , row=0x3a48c60, mode_line_p=false) at dispnew.c:1076 #1 0x0000000000484290 in display_line (it=0x7ffcdcb79f50, cursor_vpos=15) at xdisp.c:21206 #2 0x0000000000477380 in try_window (window=XIL(0x15cac35), pos=..., flags=1) at xdisp.c:17592 ---Type to continue, or q to quit--- #3 0x0000000000474866 in redisplay_window (window=XIL(0x15cac35), just_this_one_p=false) at xdisp.c:17039 #4 0x000000000046d001 in redisplay_window_0 (window=XIL(0x15cac35)) at xdisp.c:14799 #5 0x0000000000646f53 in internal_condition_case_1 (bfun=0x46cfbf , arg=XIL(0x15cac35), handlers=XIL(0xe82d93), hfun=0x46cf87 ) at eval.c:1356 #6 0x000000000046cf5c in redisplay_windows (window=XIL(0x15cac35)) at xdisp.c:14779 #7 0x000000000046b8f5 in redisplay_internal () at xdisp.c:14268 #8 0x000000000046c628 in redisplay_preserve_echo_area (from_where=5) at xdisp.c:14602 #9 0x0000000000594c98 in read_char (commandflag=1, map=XIL(0x448fc93), prev_event=XIL(0), used_mouse_menu=0x7ffcdcb7f3bf, end_time=0x0) at keyboard.c:2478 #10 0x00000000005a4ffd in read_key_sequence (keybuf=0x7ffcdcb7f510, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9147 #11 0x00000000005918d0 in command_loop_1 () at keyboard.c:1368 #12 0x0000000000646e78 in internal_condition_case (bfun=0x59148c , handlers=XIL(0x5220), hfun=0x590a93 ) at eval.c:1332 #13 0x0000000000591066 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110 #14 0x0000000000646381 in internal_catch (tag=XIL(0xc6c0), func=0x591039 , arg=XIL(0)) at eval.c:1097 #15 0x0000000000591004 in command_loop () at keyboard.c:1089 #16 0x000000000059057d in recursive_edit_1 () at keyboard.c:695 #17 0x0000000000590772 in Frecursive_edit () at keyboard.c:766 #18 0x000000000058e31a in main (argc=2, argv=0x7ffcdcb7f9d8) at emacs.c:1713