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

Full log


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 306 days ago.

Previous Next


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