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: Thu, 17 Aug 2017 21:31:02 +0300 Message-ID: <83wp62dp21.fsf@gnu.org> References: <83shgrfuxp.fsf@gnu.org> <831soafcz6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502994795 19946 195.159.176.226 (17 Aug 2017 18:33:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2017 18:33:15 +0000 (UTC) Cc: 28108@debbugs.gnu.org To: adam@alphapapa.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 17 20:33:11 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 1diPbQ-0004n1-3h for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Aug 2017 20:33:08 +0200 Original-Received: from localhost ([::1]:40017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPbW-0004TV-N6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Aug 2017 14:33:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPbN-0004SC-43 for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 14:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diPbJ-0006Yu-V8 for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 14:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diPbJ-0006Yn-ST for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 14:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1diPbJ-0005Sy-Ld for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 14:33: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: Thu, 17 Aug 2017 18:33:01 +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.150299472320942 (code B ref 28108); Thu, 17 Aug 2017 18:33:01 +0000 Original-Received: (at 28108) by debbugs.gnu.org; 17 Aug 2017 18:32:03 +0000 Original-Received: from localhost ([127.0.0.1]:43102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diPaM-0005Ri-N7 for submit@debbugs.gnu.org; Thu, 17 Aug 2017 14:32:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diPaL-0005RF-LY for 28108@debbugs.gnu.org; Thu, 17 Aug 2017 14:32:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diPZr-0005s7-Qc for 28108@debbugs.gnu.org; Thu, 17 Aug 2017 14:31:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPZr-0005rz-Je; Thu, 17 Aug 2017 14:31:31 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3772 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1diPZp-0001HO-Tv; Thu, 17 Aug 2017 14:31:31 -0400 In-reply-to: <831soafcz6.fsf@gnu.org> (message from Eli Zaretskii on Thu, 17 Aug 2017 18:09:01 +0300) 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:135881 Archived-At: > Date: Thu, 17 Aug 2017 18:09:01 +0300 > From: Eli Zaretskii > Cc: 28108@debbugs.gnu.org > > Can you try typing the following command definition, and then running > the command? When you run it, does GDB also hang indefinitely? > > (gdb) define count-markers > > 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 I just realized that it might be good to say a few more words. This command will print a long list of increasing numbers, as it walks the linked list of buffer markers and counts them. If it never ends, you should be able to interrupt it with Ctrl-C, but please do let it some serious time to run before you give up. In any case, please tell the last number it prints. Thanks.