GNU bug report logs - #52479
27.2; EDebugging stops when breakpoint condition can not be printed

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Петров Андрей <an.petrov@HIDDEN>; dated Tue, 14 Dec 2021 13:05:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 52479 <at> debbugs.gnu.org:


Received: (at 52479) by debbugs.gnu.org; 19 Dec 2021 13:05:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 08:05:16 2021
Received: from localhost ([127.0.0.1]:45192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myvsK-0007eH-D5
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 08:05:16 -0500
Received: from quimby.gnus.org ([95.216.78.240]:41632)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1myvsI-0007dy-Hm
 for 52479 <at> debbugs.gnu.org; Sun, 19 Dec 2021 08:05:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=HpSQi6BtCrRc5OHqjzrJRwUvw4mL97wpNqETau1025I=; b=IL2Z4RaIFLzBtf8aqj9oiMVaNx
 fQglGBOMdOUSalFiVoqdrwoOy3DMyaG+D740uJiEKBc4g0ig6GEVPyrzwhCSN1WNLvqVpPbnpqf/X
 a+X2440FgMJfWYvuw0fYTR0IgcaghvXlIdM6NC9fj+6Pf0TAcpd2xu1pcY8t3pr6lI2E=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1myvs9-0003pm-AS; Sun, 19 Dec 2021 14:05:07 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#52479: 27.2; EDebugging stops when breakpoint condition can
 not be printed
References: <62d5f9445730439e9d6b765f3d181c78@HIDDEN>
 <8735muxwtt.fsf@HIDDEN>
X-Now-Playing: John Martyn's _Inside Out_: "So Much in Love With You"
Date: Sun, 19 Dec 2021 14:05:00 +0100
In-Reply-To: <8735muxwtt.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 15
 Dec 2021 06:26:38 +0100")
Message-ID: <874k74sq2r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >
 Another
 symptom of printing the wrong way, similar to bug#52222. > Printing with
 `edebug-safe-prin1-to-string' should fix it and be the > right thing, right?
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52479
Cc: 52479 <at> debbugs.gnu.org,
 =?utf-8?B?0J/QtdGC0YDQvtCyINCQ0L3QtNGA0LXQuQ==?= <an.petrov@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Another symptom of printing the wrong way, similar to bug#52222.
> Printing with `edebug-safe-prin1-to-string' should fix it and be the
> right thing, right?

Sounds like the right solution to me.  Michael, you've investigated this
issue in the bug#52222 context -- can you do the fixes here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52479; Package emacs. Full text available.

Message received at 52479 <at> debbugs.gnu.org:


Received: (at 52479) by debbugs.gnu.org; 15 Dec 2021 07:02:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 15 02:02:09 2021
Received: from localhost ([127.0.0.1]:60097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mxOIi-0001iQ-Pk
	for submit <at> debbugs.gnu.org; Wed, 15 Dec 2021 02:02:09 -0500
Received: from mail1.itgrp.ru ([185.8.182.248]:23534)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <prvs=976b12885=an.petrov@HIDDEN>)
 id 1mxOId-0001hd-KW
 for 52479 <at> debbugs.gnu.org; Wed, 15 Dec 2021 02:02:07 -0500
IronPort-SDR: 1rNAukPsWrh6DJ8SFrHGLBozZiFPVKh17mZ3WSYzWgigHMzU4aUGLQ23QsObkQCLcX+QTvAdBs
 mv3YAo9eemeg==
X-IronPort-AV: E=Sophos;i="5.88,207,1635195600"; d="scan'208";a="158656198"
From: =?windows-1251?B?z+Xy8O7iIMDt5PDl6Q==?= <an.petrov@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#52479: 27.2; EDebugging stops when breakpoint condition can
 not be printed
Thread-Topic: bug#52479: 27.2; EDebugging stops when breakpoint condition can
 not be printed
Thread-Index: AQHX8OdEDAdPpLnarEe/vOdhZHpiNqwzBu5/gAAS0d4=
Date: Wed, 15 Dec 2021 07:01:55 +0000
Message-ID: <fd71975cc39e4929a7b1bd7a0fc302f1@HIDDEN>
References: <62d5f9445730439e9d6b765f3d181c78@HIDDEN>,
 <8735muxwtt.fsf@HIDDEN>
In-Reply-To: <8735muxwtt.fsf@HIDDEN>
Accept-Language: ru-RU, en-US
Content-Language: ru-RU
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.88.210]
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 52479
Cc: "52479 <at> debbugs.gnu.org" <52479 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael,

> Hmm, that calls `report-emacs-bug-insert-to-mailer'.  You have set up a
> mailer on your system and it works all fine?  If you think Emacs is not
> behaving here, can you please create a separate report? - that this
> works is very important.  Maybe you can already give debugging a try?


I did not. I think this is the reason why it did not work for me. Thank you=
!

I think the following changes (or similar) would help to avoid such misunde=
rstandings:

--- /usr/share/emacs/27.2/lisp/mail/emacsbug.el.gz
+++ #<buffer emacsbug.el.gz>
@@ -114,7 +114,8 @@
            (start-process "xdg-email" nil "xdg-email"
                           "--subject" subject
                           "--body" body
-                          (concat "mailto:" to)))
+                          (concat "mailto:" to))
+           (display-buffer-below-selected (get-buffer "xdg-email") nil))
        (error "Subject, To or body not found")))))

 (defvar report-emacs-bug--os-description nil

Diff finished.  Wed Dec 15 11:58:39 2021

Andrey.

________________________________________
=CE=F2: Michael Heerdegen <michael_heerdegen@HIDDEN>
=CE=F2=EF=F0=E0=E2=EB=E5=ED=EE: 15 =E4=E5=EA=E0=E1=F0=FF 2021 =E3. 10:26:38
=CA=EE=EC=F3: =CF=E5=F2=F0=EE=E2 =C0=ED=E4=F0=E5=E9
=CA=EE=EF=E8=FF: 52479 <at> debbugs.gnu.org
=D2=E5=EC=E0: Re: bug#52479: 27.2; EDebugging stops when breakpoint conditi=
on can not be printed

=CF=E5=F2=F0=EE=E2 =C0=ED=E4=F0=E5=E9 <an.petrov@HIDDEN> writes:

> Hello, team!

Hello - thanks for your (very well done and pleasant to read!) report.

> Debugger entered--Lisp error: (error "Apparently circular structure being=
 printed")
>   apply(debug error (error "Apparently circular structure being printed")=
)
>   edebug(error (error "Apparently circular structure being printed"))
>   signal(error ("Apparently circular structure being printed"))
>   edebug-signal(error ("Apparently circular structure being printed"))
>   message("Break: %s =3D> %s" filtered (#<field field-157aa078be4c>))

Another symptom of printing the wrong way, similar to bug#52222.
Printing with `edebug-safe-prin1-to-string' should fix it and be the
right thing, right?

> P.S. I could not copy the text from emacs with C-c M-i according to hint:
> While in the mail buffer:

>   Type C-c C-c to send the bug report.
>   Type C-x k RET to cancel (don=92t send it).
>   Type C-c M-i to copy text to your preferred mail program.   <----

Hmm, that calls `report-emacs-bug-insert-to-mailer'.  You have set up a
mailer on your system and it works all fine?  If you think Emacs is not
behaving here, can you please create a separate report? - that this
works is very important.  Maybe you can already give debugging a try?

Thanks,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52479; Package emacs. Full text available.

Message received at 52479 <at> debbugs.gnu.org:


Received: (at 52479) by debbugs.gnu.org; 15 Dec 2021 05:26:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 15 00:26:48 2021
Received: from localhost ([127.0.0.1]:60030 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mxMoS-0007XT-73
	for submit <at> debbugs.gnu.org; Wed, 15 Dec 2021 00:26:48 -0500
Received: from mout.web.de ([212.227.17.11]:42553)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1mxMoQ-0007XF-Nb
 for 52479 <at> debbugs.gnu.org; Wed, 15 Dec 2021 00:26:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1639546000;
 bh=8GXEIT/r79sOh4sV7l71Rz4l66MDPBbBxkeX7V72CeI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=DTZjsAnN4OMoKOlCqZVI5dbx6h69G3GZeads4W1V5KjwMhSChkGC1vx7p1B6l88TN
 wFOlcWIAfrMwXOUkQltmraHqspIcUpmc2RrVQmMdi/y9KjE4Mk9gOWE4VGwF+diAKW
 U+Uk2op83w4moC3fb5+OAaaqpHj+BRc4KY1foeQo=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1Mi53D-1mJcDO41Zp-00dmJu; Wed, 15
 Dec 2021 06:26:40 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: =?utf-8?B?0J/QtdGC0YDQvtCyINCQ0L3QtNGA0LXQuQ==?= <an.petrov@HIDDEN>
Subject: Re: bug#52479: 27.2; EDebugging stops when breakpoint condition can
 not be printed
References: <62d5f9445730439e9d6b765f3d181c78@HIDDEN>
Date: Wed, 15 Dec 2021 06:26:38 +0100
In-Reply-To: <62d5f9445730439e9d6b765f3d181c78@HIDDEN> (=?utf-8?B?ItCf?=
 =?utf-8?B?0LXRgtGA0L7QsiDQkNC90LTRgNC10LkiJ3M=?=
 message of "Tue, 14 Dec 2021 13:03:51 +0000")
Message-ID: <8735muxwtt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:Yq49wOCFuVUA9GFt7nuv38Ma1cUtwtdSv1bIPOJZg0EIXncs66q
 QwlPYcsebY0P7+ekepN41wU5f6O4HHPCGI/3hHg3Tp1y6/iz9yzIAecVFcOs959sX4C9D+m
 S6LNq5nsoUVVv5Fse9LEEezbQTZtuVnUbJWlm5T6F5faI04EBKvM4kYqUlKBKHRPwIwSN4L
 Uvhs+qLYQnSbecOvi7Fpg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:UOrSvNlwQXA=:FcMuDhka3tP8ejaPkGisHN
 /V8lS1Lb2F9gWJ/jjuHi64WyKbz8DiJ4vOzug4zTaqhHrKnkyBv1M+GaUS2YS80gactB6AvPw
 ao98OwCypiG8yxMDPw1BbsAErgXiZ7gxj81Dg8ljQijT/Q1/eSsJrOa9//zaQdCJG26QKlVH0
 HQ903FzNkVXH3r2OhLGPa7hABQdiFRkS/qlRk99XCg7fEZNT3XB2LqO4LgXIMj+7F5eWH/mZp
 bQN/nP43x+CwX2uFd6cmXdMGLHNrPFKO3R06hng9rxBrdYwrgH6q/p3DwlcDtTaG2qd72PmU8
 apfn8ZDU51DY8DFUIjMzD8dnjHke9bLabFN1PPyIswjAbu/hX8xmfmdjIW9xwgIb7WwtJuOoA
 8Wqqdqh/QkP5XeO1BjNbP6Y9RilK3VaU4Pos1OZK3hy0PBmBShjHtKHi6cADJD4lC8XuyNNM/
 MFPm9ZbYPBzcSJq1cwoxbdbzpMUcnINNgs0syDnZYtBUwcrXMwQBuJMp17UI3ebRa2KKVd7oc
 v7kWqt8yySQcfT0YCyfpYleApDuYTVJDQ3EdVbXZkRnI6AXwfDhMwqdNGNrXLEcNlKsqbTs4g
 jCwFU0NWnDLD2xJXKp2RRdlaYYTcy62Vu4UYShQWQPGbTRXEuGzQmMU8Li+qvy/AK7tJ54Kl6
 jOjzcyAACMmNNDKAJ0RUro/X9p0AEfH7U4QnjQ7D35jh6slKaAXZ0L+24/jmitsmipZaPCz2U
 mWUTdV+HpHrNgY/q/1UDHoUb032FDGdmFSulAc66PcXgTHbX7hUTACcHfg2ctE8+DCDlqneEu
 qR/nqBs5OjMKtqpU1y+5moyOTFEG7G1t02cHDY6eMZZXRZiYSBsVyVnkSk2aSLxXMayqWnut6
 pzN0I9h/V2G86Rw5UI3x98+SrbN1HDtIl40IEcQAQ2GXPng1BL4e7PqC9qSGg4H5lwsmNdken
 BkqVeSV0SE0ptL2oxQK1iKlr6W1qWanBLKL8CJYrdZZl3gdMvSKhJqSfL83fADR91ecsKLcKG
 DRz65efh309tDCAAKWfkmAlvBJYSmSpXRtkLsjxOiw+iO7EZvsYsXY9oqzmjcVks065VCp7iT
 7fG2ghC7II2tDk=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52479
Cc: 52479 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

=D0=9F=D0=B5=D1=82=D1=80=D0=BE=D0=B2 =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 <=
an.petrov@HIDDEN> writes:

> Hello, team!

Hello - thanks for your (very well done and pleasant to read!) report.

> Debugger entered--Lisp error: (error "Apparently circular structure being=
 printed")
>   apply(debug error (error "Apparently circular structure being printed"))
>   edebug(error (error "Apparently circular structure being printed"))
>   signal(error ("Apparently circular structure being printed"))
>   edebug-signal(error ("Apparently circular structure being printed"))
>   message("Break: %s =3D> %s" filtered (#<field field-157aa078be4c>))

Another symptom of printing the wrong way, similar to bug#52222.
Printing with `edebug-safe-prin1-to-string' should fix it and be the
right thing, right?

> P.S. I could not copy the text from emacs with C-c M-i according to hint:
> While in the mail buffer:

>   Type C-c C-c to send the bug report.
>   Type C-x k RET to cancel (don=E2=80=99t send it).
>   Type C-c M-i to copy text to your preferred mail program.   <----

Hmm, that calls `report-emacs-bug-insert-to-mailer'.  You have set up a
mailer on your system and it works all fine?  If you think Emacs is not
behaving here, can you please create a separate report? - that this
works is very important.  Maybe you can already give debugging a try?

Thanks,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52479; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Dec 2021 13:04:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 14 08:04:04 2021
Received: from localhost ([127.0.0.1]:57799 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mx7TP-0001qF-Vs
	for submit <at> debbugs.gnu.org; Tue, 14 Dec 2021 08:04:04 -0500
Received: from lists.gnu.org ([209.51.188.17]:47002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <prvs=975ee7509=an.petrov@HIDDEN>)
 id 1mx7TO-0001q8-SX
 for submit <at> debbugs.gnu.org; Tue, 14 Dec 2021 08:04:03 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47844)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <prvs=975ee7509=an.petrov@HIDDEN>)
 id 1mx7TO-0006cc-OO
 for bug-gnu-emacs@HIDDEN; Tue, 14 Dec 2021 08:04:02 -0500
Received: from mail2.itgrp.ru ([87.251.91.230]:3168)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <prvs=975ee7509=an.petrov@HIDDEN>)
 id 1mx7TL-00084p-7A
 for bug-gnu-emacs@HIDDEN; Tue, 14 Dec 2021 08:04:02 -0500
IronPort-SDR: lB/ZTZ6QwzlLjW9gVByCwQwP33kKVX9w3y1etb6Uz8PBxToR8+sGSjD/I24wNRKLHFO8rc7L2V
 kFV7DnARoT6Q==
X-IronPort-AV: E=Sophos;i="5.88,205,1635195600"; d="scan'208";a="153327850"
From: =?windows-1251?B?z+Xy8O7iIMDt5PDl6Q==?= <an.petrov@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: 27.2; EDebugging stops when breakpoint condition can not be printed
Thread-Topic: 27.2; EDebugging stops when breakpoint condition can not be
 printed
Thread-Index: AQHX8OdEDAdPpLnarEe/vOdhZHpiNg==
Date: Tue, 14 Dec 2021 13:03:51 +0000
Message-ID: <62d5f9445730439e9d6b765f3d181c78@HIDDEN>
Accept-Language: ru-RU, en-US
Content-Language: ru-RU
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.88.210]
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: none client-ip=87.251.91.230;
 envelope-from=prvs=975ee7509=an.petrov@HIDDEN; helo=mail2.itgrp.ru
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello, team!
The following code can reproduce the bug:


(require 'cl-lib)
(require 'eieio)

(defclass my-field ()
  ((from-types :initform nil)
   (type :initform nil)))

(defun test ()
  "Demonstrates edebug condition printing bug.
1. evaluate the buffer
2. instrument `test' function for debugging
3. add conditional breakpoint inside lambda below (see comment)
   M-x edebug-set-conditional-breakpoint [RET] root [RET]
4. Start the function for debugging
   M-x (test)
5. Continue to the breakpoint
   c

Now error: \"Apparently circular structure being printed\" is
printed and no further debugging is possible.
"
  (let* ((root (my-field))
	 (tmp root))
    (dotimes (i 100)
      (let ((a (my-field)))
	(push a (oref tmp type))
	(push tmp (oref a from-types))
	(setf tmp a)))
    (push root (oref tmp type))   =20
    (cl-remove root '(1 2 3 4) :test (lambda (a b) ;; <-- put cursor here a=
nd set
				       ;; conditional breakpoint with condition: root
				       (=3D (length (oref a from-types))) b))
    (cl-remove root '(1 2 3 4) :test (lambda (a b) (=3D (length (oref a fro=
m-types))) b))
    (cl-remove root '(1 2 3 4) :test (lambda (a b) (=3D (length (oref a fro=
m-types))) b))
    "Finished"
    ))


It hard for me to get backtraces on the example but on other
(complicated) code I got the following using recursive edit:

Debugger entered--Lisp error: (error "Apparently circular structure being p=
rinted")
  apply(debug error (error "Apparently circular structure being printed"))
  edebug(error (error "Apparently circular structure being printed"))
  signal(error ("Apparently circular structure being printed"))
  edebug-signal(error ("Apparently circular structure being printed"))
  message("Break: %s =3D> %s" filtered (#<field field-157aa078be4c>))
  edebug--display-1(nil 0 before)
  edebug--display(nil 0 before)
  edebug-debugger(0 before nil)
  edebug-before(0)
  (edebug-after (edebug-before 0) 11 (find-inpas-paths (edebug-after 0 1 pa=
rent) (edebug-after 0 2 stop-id) (edebug-after (edebug-before 3) 10 (if (ed=
ebug-after 0 4 filtered) (edebug-after (edebug-before 5) 8 (cl-remove (edeb=
ug-after 0 6 parent) (edebug-after 0 7 context) :count 1 :test (lambda (a b=
) (edebug-enter ... ... ...)))) (edebug-after 0 9 context)))))
  (lambda nil (edebug-after (edebug-before 0) 11 (find-inpas-paths (edebug-=
after 0 1 parent) (edebug-after 0 2 stop-id) (edebug-after (edebug-before 3=
) 10 (if (edebug-after 0 4 filtered) (edebug-after (edebug-before 5) 8 (cl-=
remove (edebug-after 0 6 parent) (edebug-after 0 7 context) :count 1 :test =
(lambda ... ...))) (edebug-after 0 9 context))))))()
  edebug-default-enter(edebug-anon17 (#<field field-157aa078be4c>) (lambda =
nil (edebug-after (edebug-before 0) 11 (find-inpas-paths (edebug-after 0 1 =
parent) (edebug-after 0 2 stop-id) (edebug-after (edebug-before 3) 10 (if (=
edebug-after 0 4 filtered) (edebug-after (edebug-before 5) 8 (cl-remove ...=
 ... :count 1 :test ...)) (edebug-after 0 9 context)))))))
  edebug-enter(edebug-anon17 (#<field field-157aa078be4c>) (lambda nil (ede=
bug-after (edebug-before 0) 11 (find-inpas-paths (edebug-after 0 1 parent) =
(edebug-after 0 2 stop-id) (edebug-after (edebug-before 3) 10 (if (edebug-a=
fter 0 4 filtered) (edebug-after (edebug-before 5) 8 (cl-remove ... ... :co=
unt 1 :test ...)) (edebug-after 0 9 context)))))))
  (lambda (parent) (edebug-enter 'edebug-anon17 (list parent) #'(lambda nil=
 (edebug-after (edebug-before 0) 11 (find-inpas-paths (edebug-after 0 1 par=
ent) (edebug-after 0 2 stop-id) (edebug-after ... 10 ...))))))(#<field fiel=
d-157aa078be4c>)
  mapcan((lambda (parent) (edebug-enter 'edebug-anon17 (list parent) #'(lam=
bda nil (edebug-after (edebug-before 0) 11 (find-inpas-paths (edebug-after =
0 1 parent) (edebug-after 0 2 stop-id) (edebug-after ... 10 ...)))))) (#<fi=
eld field-157aa078be4c>))


P.S. I could not copy the text from emacs with C-c M-i according to hint:
While in the mail buffer:

  Type C-c C-c to send the bug report.
  Type C-x k RET to cancel (don=92t send it).
  Type C-c M-i to copy text to your preferred mail program.   <----


Andrey Petrov.




Acknowledgement sent to Петров Андрей <an.petrov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#52479; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 19 Dec 2021 13:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.