unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#72612: (set! display #f) infinite loop
@ 2024-08-13 23:06 Bryce Moore
  2024-08-14  4:36 ` tomas
  0 siblings, 1 reply; 2+ messages in thread
From: Bryce Moore @ 2024-08-13 23:06 UTC (permalink / raw)
  To: 72612

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#72612: (set! display #f) infinite loop
  2024-08-13 23:06 bug#72612: (set! display #f) infinite loop Bryce Moore
@ 2024-08-14  4:36 ` tomas
  0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2024-08-14  4:36 UTC (permalink / raw)
  To: Bryce Moore; +Cc: 72612

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-14  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13 23:06 bug#72612: (set! display #f) infinite loop Bryce Moore
2024-08-14  4:36 ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).