GNU bug report logs - #72612
(set! display #f) infinite loop

Previous Next

Package: guile;

Reported by: Bryce Moore <bryce.moore <at> gmail.com>

Date: Wed, 14 Aug 2024 02:21:02 UTC

Severity: normal

To reply to this bug, email your comments to 72612 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#72612; Package guile. (Wed, 14 Aug 2024 02:21:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bryce Moore <bryce.moore <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 14 Aug 2024 02:21:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bryce Moore <bryce.moore <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: (set! display #f) infinite loop
Date: Tue, 13 Aug 2024 19:06:09 -0400
[Message part 1 (text/plain, inline)]
I know it's nonsensical, but (set! display #f) in a fresh interpreter
causes an infinite loop.

Interrupting with Ctrl+C exits guile.

scheme@(guile-user)> (set! display #f)
While reading expression:
Wrong type to apply: Error while printing exception.
While reading expression:
Wrong type to apply: Error while printing exception.
While reading expression:
Wrong type to apply: Error while printing exception.
While reading expression:
Wrong type to apply: Error while printing exception.
[...]

-- 
bryce
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#72612; Package guile. (Wed, 14 Aug 2024 04:38:02 GMT) Full text and rfc822 format available.

Message #8 received at 72612 <at> debbugs.gnu.org (full text, mbox):

From: <tomas <at> tuxteam.de>
To: Bryce Moore <bryce.moore <at> gmail.com>
Cc: 72612 <at> debbugs.gnu.org
Subject: Re: bug#72612: (set! display #f) infinite loop
Date: Wed, 14 Aug 2024 06:36:48 +0200
[Message part 1 (text/plain, inline)]
On Tue, Aug 13, 2024 at 07:06:09PM -0400, Bryce Moore wrote:
> I know it's nonsensical, but (set! display #f) in a fresh interpreter
> causes an infinite loop.
> 
> Interrupting with Ctrl+C exits guile.
> 
> scheme@(guile-user)> (set! display #f)
> While reading expression:
> Wrong type to apply: Error while printing exception.
> While reading expression:
> Wrong type to apply: Error while printing exception.
> While reading expression:
> Wrong type to apply: Error while printing exception.
> While reading expression:
> Wrong type to apply: Error while printing exception.
> [...]

I haven't currently a working Guile around to check (bad me, will
fix that!) but my guess is that Guile is trying to complain (via
an uncaught exception) that you're trying to mutate something you
should not and... is calling display for that. Which now is #f,
which is definitely a wrong type to apply.

Cheers
-- 
t
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 305 days ago.

Previous Next


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