From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#41204: port-revealed count is initially > 30000 Date: Tue, 12 May 2020 15:04:16 +0200 Message-ID: <87ftc5b8z3.fsf@gnu.org> References: <878shxqw9k.fsf@cune.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130555"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 41204-done@debbugs.gnu.org To: Caleb Ristvedt Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue May 12 15:05:20 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYUb1-000XsY-Td for guile-bugs@m.gmane-mx.org; Tue, 12 May 2020 15:05:19 +0200 Original-Received: from localhost ([::1]:36622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYUb0-0000bF-CY for guile-bugs@m.gmane-mx.org; Tue, 12 May 2020 09:05:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYUam-0000Zx-2x for bug-guile@gnu.org; Tue, 12 May 2020 09:05:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYUal-0007Ux-EC for bug-guile@gnu.org; Tue, 12 May 2020 09:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYUal-0007Pg-9a for bug-guile@gnu.org; Tue, 12 May 2020 09:05:03 -0400 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Tue, 12 May 2020 13:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41204 X-GNU-PR-Package: guile Mail-Followup-To: 41204@debbugs.gnu.org, ludo@gnu.org, caleb.ristvedt@cune.org Original-Received: via spool by 41204-done@debbugs.gnu.org id=D41204.158928866528412 (code D ref 41204); Tue, 12 May 2020 13:05:03 +0000 Original-Received: (at 41204-done) by debbugs.gnu.org; 12 May 2020 13:04:25 +0000 Original-Received: from localhost ([127.0.0.1]:54545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYUa9-0007OC-IA for submit@debbugs.gnu.org; Tue, 12 May 2020 09:04:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYUa8-0007O0-FU for 41204-done@debbugs.gnu.org; Tue, 12 May 2020 09:04:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40197) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYUa3-0007G3-5W; Tue, 12 May 2020 09:04:19 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41862 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYUa2-0001Zr-Pq; Tue, 12 May 2020 09:04:19 -0400 In-Reply-To: <878shxqw9k.fsf@cune.org> (Caleb Ristvedt's message of "Tue, 12 May 2020 05:32:07 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9757 Archived-At: Hi, Caleb Ristvedt skribis: > (port-revealed (open-input-file "/dev/null")) > =3D> 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=E2=80=99s prob= ably not that common (good practice is too close file ports as soon as you=E2=80= =99re done with them and =E2=80=98call-with-output-file=E2=80=99 & co. take care = of that), but still. Thanks a lot for finding the problem! Ludo=E2=80=99.