* bug#48566: call-with-blocked-asyncs does not like escape continuations
@ 2021-05-21 14:28 Maxime Devos
0 siblings, 0 replies; only message in thread
From: Maxime Devos @ 2021-05-21 14:28 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
Version: 3.0.5 (as found on Guix System, on a x86-64 system)
Here is a minimal reproducer.
(use-modules (ice-9 control))
(call-with-unblocked-asyncs (lambda () 'hi)))
(lambda () (system-async-mark ec) (safe-point))))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure call-with-unblocked-asyncs: asyncs already unblocked
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) > ,bt
2 (call-with-blocked-asyncs #<procedure safe-point ()>)
1 (call-with-unblocked-asyncs #<procedure 7f83245ad2a0 at /home/sylvii…>)
1669:16 0 (raise-exception _ #:continuable? _)
This bug was found while trying to test whether the definition of with-mutex
is correct in the present of asynchronicities (system-async-mark). (with-mutex
does not use call-with-blocked-asyncs & call-with-unblocked-asyncs, while I
think it should --- what if the Scheme code was interrupted in the 'in-guard'
or 'out-guard' of a dynamic-wind?).
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-21 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 14:28 bug#48566: call-with-blocked-asyncs does not like escape continuations Maxime Devos
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 NNTP newsgroup(s).