bug#41204: port-revealed count is initially > 30000

2020-05-12 Thread Ludovic Courtès
Hi, Caleb Ristvedt skribis: > (port-revealed (open-input-file "/dev/null")) > => 32539 Fixed in b1bdd791cefa1b6d113f9b3972550342d8f4aa9f. Guile up to 2.2.7/3.0.2 included (but not 2.0) would thus leak the file descriptors of all the file ports not explicitly closed. It’s probably not that com

bug#41204: port-revealed count is initially > 30000

2020-05-12 Thread Caleb Ristvedt
(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