From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.bugs Subject: bug#28108: 25.2; Infinite loop due to circular marker list? Date: Thu, 17 Aug 2017 23:06:56 -0500 Message-ID: References: <83shgrfuxp.fsf@gnu.org> <831soafcz6.fsf@gnu.org> <83wp62dp21.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1503029296 12336 195.159.176.226 (18 Aug 2017 04:08:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 04:08:16 +0000 (UTC) Cc: 28108@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 18 06:08: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 1diYZu-0002jM-OS for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 06:08:10 +0200 Original-Received: from localhost ([::1]:51128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diYZx-0004wm-Ur for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 00:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diYZr-0004wC-OC for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 00:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diYZm-00042s-Su for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 00:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34710) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diYZm-00042i-PD for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 00:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1diYZm-0005I9-B9 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 00:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2017 04:08: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.150302922520278 (code B ref 28108); Fri, 18 Aug 2017 04:08:02 +0000 Original-Received: (at 28108) by debbugs.gnu.org; 18 Aug 2017 04:07:05 +0000 Original-Received: from localhost ([127.0.0.1]:43391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diYYr-0005Gz-7W for submit@debbugs.gnu.org; Fri, 18 Aug 2017 00:07:05 -0400 Original-Received: from mail-wr0-f169.google.com ([209.85.128.169]:36879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diYYp-0005GV-7m for 28108@debbugs.gnu.org; Fri, 18 Aug 2017 00:07:03 -0400 Original-Received: by mail-wr0-f169.google.com with SMTP id z91so51287549wrc.4 for <28108@debbugs.gnu.org>; Thu, 17 Aug 2017 21:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WqLas/RFFuhXbNGoLquoAauKZaLtPiNuAOhj4SvhQTE=; b=tmonBkmhADSs+Wnxs3wFW1mwj3Nxqmw6PeDtugmHK+2EwHckFMU4iP++VR008wQvPd +gcAHJO1DMRJ9GVNiuUYjSLsGi+KiXPubl/mNAHYxYe2mVJimdCnr7zGEbptMv8JL8sW jUyvedOxlMrxqcaarNt42hqNXtlnijZn1yXJ7Gp3HQ1HaipbM9P19sSxIUUo5Z/0XWNU 0wU6QSSCSBN+nprr4EjyxazLDUV5EKVd0cFNiL0uC/M25clgb2ZOVOSdK8xPYf8kxxjN 0n67PKgM/HDBblYQ0Yib0C6g9fWMFbQgDiPb4wdmc5G47uJFsEnryBol+zcC9ZsVN/Rx Lmgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WqLas/RFFuhXbNGoLquoAauKZaLtPiNuAOhj4SvhQTE=; b=EXoMF9gBkmYV/RFhV825BkgrFjVEWhggzmxBSr621bZr/z69tVHcu8maVyJSvZbd+Y zx+SikBZpHF6DKUJRzQ0kgzg6B185OOwhs9yKsBAy/VYfuFX0bTQQLwv47kapvwu/PBN /j4r079lwlJihd6LxtiRCGNt/OrOKStjO1G+TP+aQEL8Y+adw2g5z80LljPJ/ZPC3X6R dcrjZ45VU/QDvLxbGcsZe8Hgz8S+lKKzm7hQXZaHl+7iJG2gNuszzuYQl1QGI2ZEOg0E KZdSjHTp20ITDhFiN7awbcFybV6nMqc9iOJv98Ym3JwqsQs03JjLq0xElkj0VvJ4H3X7 a9FA== X-Gm-Message-State: AHYfb5ha/EXL3lRkcHxKtXa43kgcYjTrDjv9+Y28jmHGDnw4VwWTehEW muHRgd0T/LeBVicht7rhAvu7yZ+EMG9Y X-Received: by 10.80.205.26 with SMTP id z26mr191009edi.266.1503029217401; Thu, 17 Aug 2017 21:06:57 -0700 (PDT) Original-Received: by 10.80.158.233 with HTTP; Thu, 17 Aug 2017 21:06:56 -0700 (PDT) In-Reply-To: <83wp62dp21.fsf@gnu.org> X-Google-Sender-Auth: gnC-I_eovRZb5VH8btK61jbK4j8 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:135891 Archived-At: Hi Eli, I'm sorry but that didn't work: (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. 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. 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. By the way, a few minutes ago I got a strange crash in another Emacs process, a segfault in libtasn1.so.6.2.0. It seemed clipboard-related, because it happened when I right-clicked on the URL bar in my browser to paste a link I had copied to the clipboard: the browser froze, a process used 100% CPU (not sure which one), and then Emacs crashed. I don't think it's related--at least, not directly--but it is unusual. Thanks for your help. On Thu, Aug 17, 2017 at 1:31 PM, Eli Zaretskii wrote: >> 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.