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#28108: 25.2; Infinite loop due to circular marker list? Date: Fri, 18 Aug 2017 09:12:35 +0300 Message-ID: <83valle758.fsf@gnu.org> References: <83shgrfuxp.fsf@gnu.org> <831soafcz6.fsf@gnu.org> <83wp62dp21.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1503036855 21657 195.159.176.226 (18 Aug 2017 06:14:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 06:14:15 +0000 (UTC) Cc: 28108@debbugs.gnu.org To: Adam Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 18 08:14:09 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 1diaXm-00058y-LY for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 08:14:06 +0200 Original-Received: from localhost ([::1]:58779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diaXt-0004uB-B2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 02:14:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diaXl-0004tn-Vl for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 02:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diaXi-0003Hh-Po for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 02:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diaXi-0003Hd-MD for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 02:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1diaXi-0008Lw-Ec for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 02:14: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: Fri, 18 Aug 2017 06:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28108 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28108-submit@debbugs.gnu.org id=B28108.150303678232035 (code B ref 28108); Fri, 18 Aug 2017 06:14:02 +0000 Original-Received: (at 28108) by debbugs.gnu.org; 18 Aug 2017 06:13:02 +0000 Original-Received: from localhost ([127.0.0.1]:43451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diaWj-0008Kd-SB for submit@debbugs.gnu.org; Fri, 18 Aug 2017 02:13:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diaWi-0008K9-Pk for 28108@debbugs.gnu.org; Fri, 18 Aug 2017 02:13:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diaWa-0002r2-E0 for 28108@debbugs.gnu.org; Fri, 18 Aug 2017 02:12:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diaWa-0002qv-9t; Fri, 18 Aug 2017 02:12:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4041 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1diaWY-0003Z9-Jm; Fri, 18 Aug 2017 02:12:51 -0400 In-reply-to: (message from Adam Porter on Thu, 17 Aug 2017 23:06:56 -0500) 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:135892 Archived-At: > From: Adam Porter > Date: Thu, 17 Aug 2017 23:06:56 -0500 > Cc: 28108@debbugs.gnu.org > > (gdb) define count-markers > Type commands for definition of "count-markers". > End with a line saying just "end". > >set $count = 0 > >set $markers = BUF_MARKERS(b) > >while $markers != 0 > >set $count = $count + 1 > >print $count > >set $markers = $markers->next > >end > >end > (gdb) count-markers > No symbol "BUF_MARKERS" in current context. Replace this: >set $markers = BUF_MARKERS(b) with this: >set $markers = b->text->markers You will have to redefine the whole command again with that change. > I tried to run count-markers after "bt full", "my-step", and "step", > but it still didn't work: > > (gdb) step > 605 for (tail = BUF_MARKERS (b); tail; prev = &tail->next, > tail = *prev) > (gdb) count-markers > No symbol "BUF_MARKERS" in current context. It should be run from the same stack frame where you have this loop. Whether you run "bt full" before that doesn't matter. > Unfortunately I may have to shut down this machine soon. I searched > for "gdb save state" and found some information about > checkpoint/restart, but I'm not sure if that would work or be > appropriate here. I'll try to keep the system up until we can finish > debugging this, but if I can't, I guess we'll be stuck, since I have > no idea how to reproduce it. OK, just keep these instructions for when it reproduces itself again. Thanks.