From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Gemini Lasswell <gazally@runbox.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#36566: 27.0.50; debug is sometimes horribly slow
Date: Wed, 31 Jul 2019 18:06:10 -0700
Message-ID: <87zhkt8zjx.fsf@runbox.com>
References: <87r26yvb4r.fsf@web.de> <871ryy2l1t.fsf@gmail.com>
 <87r26xjyon.fsf@web.de> <877e8llbzo.fsf@runbox.com>
 <87h87ogii4.fsf@web.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="252663"; mail-complaints-to="usenet@blaine.gmane.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)
Cc: 36566@debbugs.gnu.org, Noam Postavsky <npostavs@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 01 03:07:08 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hszYh-0013c8-Lx
	for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Aug 2019 03:07:07 +0200
Original-Received: from localhost ([::1]:45342 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.86_2)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hszYg-0007BO-Nl
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 21:07:06 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53849)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hszYd-0007BI-4S
 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 21:07:04 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hszYc-0000aI-82
 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 21:07:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:44464)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1hszYb-0000ZG-QT
 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 21:07:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hszYb-0006Mb-JV
 for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 21:07:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Gemini Lasswell <gazally@runbox.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 01 Aug 2019 01:07:01 +0000
Resent-Message-ID: <handler.36566.B36566.156462160224435@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 36566
X-GNU-PR-Package: emacs
Original-Received: via spool by 36566-submit@debbugs.gnu.org id=B36566.156462160224435
 (code B ref 36566); Thu, 01 Aug 2019 01:07:01 +0000
Original-Received: (at 36566) by debbugs.gnu.org; 1 Aug 2019 01:06:42 +0000
Original-Received: from localhost ([127.0.0.1]:53285 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1hszYI-0006M2-Ba
 for submit@debbugs.gnu.org; Wed, 31 Jul 2019 21:06:42 -0400
Original-Received: from aibo.runbox.com ([91.220.196.211]:41952)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@runbox.com>) id 1hszYG-0006Ls-EP
 for 36566@debbugs.gnu.org; Wed, 31 Jul 2019 21:06:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From;
 bh=UT0sxeLtUx4ypZJme2hRgICg3XE7MydWj3Q0qAHPtM8=; b=HMywhtqYwlAv4bo/kG4ciud1ki
 PUsbQOwHVJH/4Bu812o/1jNAgi2MOcqY3m0mCJmx9ePD9bWZcjf+wlN5zyZtaEVDejP7oBCySqmHy
 JI97pDo/K3wBztWDjSSczhRJgcf5X7wL8SWh61ptqrpMguhwi42W8uofKIUCg34PuDmc6NUuL0LLK
 9Xpy8D35RzUCl2+hDWZbNbouVazZgp5g82i9qz91Gh87TK0Il1HYrHld25grV53w8Yy5OPllpg1DY
 5p1Ukkz7Sh2jZxdu5+wnUF5Ga7duGN3nQjdmsHiYjyagdPRF0tMokvQ+E/UCKDZ24DZtN1qHivCaC
 +MClyxUw==;
Original-Received: from [10.9.9.202] (helo=mailfront20.runbox)
 by mailtransmit02.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@runbox.com>)
 id 1hszYE-0008DP-Ro; Thu, 01 Aug 2019 03:06:38 +0200
Original-Received: by mailfront20.runbox with esmtpsa (uid:179284 )
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1)
 id 1hszXp-0002mw-37; Thu, 01 Aug 2019 03:06:13 +0200
In-Reply-To: <87h87ogii4.fsf@web.de> (Michael Heerdegen's message of "Mon, 15
 Jul 2019 04:05:07 +0200")
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: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:164199
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/164199>

Michael Heerdegen <michael_heerdegen@web.de> writes:

> BTW, when I eval this
>
> (let ((x '#1=(1 . #1#)))
>   (debug)
>   (cons x x))
>
> I get a backtrace like
>
> Debugger entered: nil
>   (let ((x '(1 . #6))) (debug) (cons x x))
>   eval((let ((x '(1 . #7))) (debug) (cons x x)) t)
>
> whereby when I hit C-u # all references get number 1, or start from 1
> for every frame:
>
> Debugger entered: nil
>   (let ((x '#1=(1 . #1#))) (debug) (cons x x))
>   eval((let ((x '#1=(1 . #1#))) (debug) (cons x x)) t)
>
> Just a minor inconvenience, though.

Without print-circle turned on, no hash table gets built to identify
objects, so the #<number> is only an indicator that a loop was found in
the data structure, not an indicator of any particular object. The
number printed comes from the depth of nested data structures at the
point the loop is detected.