(port-revealed (open-input-file "/dev/null"))
=> 32539
The little investigating I've done so far suggests that this is because
scm_i_fdes_to_port calls scm_gc_malloc_pointerless and initializes only
the 'fdes' and 'options' fields, leaving 'revealed' uninitialized. The
comment above scm_gc_mallo
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