GNU bug report logs - #36915
make-thread-local-fluid ignores the default value

Previous Next

Package: guile;

Reported by: Caleb Ristvedt <caleb.ristvedt <at> cune.org>

Date: Sat, 3 Aug 2019 22:47:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36915 in the body.
You can then email your comments to 36915 AT debbugs.gnu.org in the normal way.

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#36915; Package guile. (Sat, 03 Aug 2019 22:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Caleb Ristvedt <caleb.ristvedt <at> cune.org>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 03 Aug 2019 22:47:01 GMT) Full text and rfc822 format available.

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

From: Caleb Ristvedt <caleb.ristvedt <at> cune.org>
To: bug-guile <at> gnu.org
Subject: make-thread-local-fluid ignores the default value
Date: Sat, 03 Aug 2019 17:46:19 -0500
In Guile 2.2.6 as packaged on Guix System (x86-64), the following
happens:

--------------------------------------
(define some-fluid (make-thread-local-fluid 42))

(display (fluid-ref some-fluid))

=> #f
--------------------------------------

The same problem doesn't happen with non-thread-local fluids. The manual
says pretty clearly "whose initial value is DFLT", so this should be a
bug.

This is especially significant because, if I understand correctly, that
"default" value is the initial value of that fluid in a new thread. So
just using fluid-set! immediately after creating it isn't sufficient to
work around it entirely.

- reepca




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Sun, 12 Jan 2020 21:28:01 GMT) Full text and rfc822 format available.

Notification sent to Caleb Ristvedt <caleb.ristvedt <at> cune.org>:
bug acknowledged by developer. (Sun, 12 Jan 2020 21:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 36915-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Caleb Ristvedt <caleb.ristvedt <at> cune.org>
Cc: 36915-done <at> debbugs.gnu.org
Subject: Re: bug#36915: make-thread-local-fluid ignores the default value
Date: Sun, 12 Jan 2020 22:27:39 +0100
On Sun 04 Aug 2019 00:46, Caleb Ristvedt <caleb.ristvedt <at> cune.org> writes:

> In Guile 2.2.6 as packaged on Guix System (x86-64), the following
> happens:
>
> --------------------------------------
> (define some-fluid (make-thread-local-fluid 42))
>
> (display (fluid-ref some-fluid))
>
> => #f
> --------------------------------------

This is fixed in git, thanks to Rob Browning.

Thanks for the report,

Andy




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 10 Feb 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 89 days ago.

Previous Next


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