From unknown Wed Jun 18 23:18:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41204 <41204@debbugs.gnu.org> To: bug#41204 <41204@debbugs.gnu.org> Subject: Status: port-revealed count is initially > 30000 Reply-To: bug#41204 <41204@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:18:26 +0000 retitle 41204 port-revealed count is initially > 30000 reassign 41204 guile submitter 41204 Caleb Ristvedt severity 41204 important thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 06:32:19 2020 Received: (at submit) by debbugs.gnu.org; 12 May 2020 10:32:19 +0000 Received: from localhost ([127.0.0.1]:54328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYSCt-0007hb-Lp for submit@debbugs.gnu.org; Tue, 12 May 2020 06:32:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:51008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYSCr-0007hT-Ke for submit@debbugs.gnu.org; Tue, 12 May 2020 06:32:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSCr-0005vw-D3 for bug-guile@gnu.org; Tue, 12 May 2020 06:32:13 -0400 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:41160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYSCp-0007K9-PV for bug-guile@gnu.org; Tue, 12 May 2020 06:32:12 -0400 Received: by mail-qt1-x832.google.com with SMTP id h26so10541233qtu.8 for ; Tue, 12 May 2020 03:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cune-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=rxkshaY2xyQfQxJtVcImvcfSyMD2wugdjBd9SHoDLfs=; b=dIt3jdfdWnwkBfYvTW+kJFhCD8g+l17vroo68Kx3TsfNQ4Kjoyq6DbW9+XKYwYbFNp TQwPFwaKSWPU066gPv7mEMytU34iF03gCIe7Uqf5KqgMs0vcdoKBLiYZjMlazcO4p25b B6WRqbNfdaAkWNtunRmVfiDKN8kpL15vWWrKyQ04nFSWrCHLhblczuN0QgFbXPplrkd7 86Yt0bzbppmxhGznJVv6HfFF4Mz+DJuMugVQ0e66D4kUUshpSJ94DTLLjApe8qTw4DQQ /rELVnSJvVV0ZNo4JYn0p2gR+KhFJr8hRqMg87OsCi141s+xxWL0dSPqP4Gm3ueqBylD Zx6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=rxkshaY2xyQfQxJtVcImvcfSyMD2wugdjBd9SHoDLfs=; b=NhHOTEF1zlzSeTV7WWYPijbfZ9+CexYtx4qRoVWpE7PvNzIszVAggMXa2BfbjRy3I7 uV0Yv7tM0aIWtpcwZdiRzEAEGHFxWFgdxAVib+M48e5yLT9i/dayXAtB3Y1Q5bp2BKKe 3pDcuwUQYDIA4l2m4QANZxFMv1B4licSYDALIcyA1HC/A4AFzuqLd4CKudIeeEMSQDql 2ffc+0nMyetzKwgE8yvKIiLaJj9ZxsE+ddLW/wsp5G5pn2Tl1XqJFiVQvNorf3JBpl5o YXfgCNMGMHsfUuvbnGjiPhhWNqRVaY2POKHsyeeEKHapFuMFcayO70R2OO6RajBLGAZz iSJA== X-Gm-Message-State: AGi0PuYMgo9M4jwDjLqx1kwZUthgzOi/nX5qgV/MAuvJ6NMQmP6UjoNM ipDROpOpHqp3i35P2a08X+I5DeiTO94= X-Google-Smtp-Source: APiQypIVjDT96b8qfThsdKiMbqllRQ5BEHQTHqe9719KzMkiZ1aIhz3Zn0onB55c4r1vWbeDFuvnnA== X-Received: by 2002:ac8:67d9:: with SMTP id r25mr22250822qtp.338.1589279529768; Tue, 12 May 2020 03:32:09 -0700 (PDT) Received: from GuixPotato ([208.89.170.24]) by smtp.gmail.com with ESMTPSA id a124sm10943689qkf.93.2020.05.12.03.32.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 03:32:09 -0700 (PDT) From: Caleb Ristvedt To: bug-guile@gnu.org Subject: port-revealed count is initially > 30000 Date: Tue, 12 May 2020 05:32:07 -0500 Message-ID: <878shxqw9k.fsf@cune.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=caleb.ristvedt@cune.org; helo=mail-qt1-x832.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) (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_malloc_pointerless does a good job of explaining why this is an issue: /* Allocate SIZE bytes of memory whose contents should not be scanned for pointers (useful, e.g., for strings). Note though that this memory is *not* cleared; be sure to initialize it to prevent information leaks. */ This issue appears to be present both in the 2.2 and 3.0 releases packaged in guix. - reepca From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 08:46:18 2020 Received: (at control) by debbugs.gnu.org; 12 May 2020 12:46:18 +0000 Received: from localhost ([127.0.0.1]:54490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYUIc-0004mp-1a for submit@debbugs.gnu.org; Tue, 12 May 2020 08:46:18 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:33192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYUIa-0004mY-FU for control@debbugs.gnu.org; Tue, 12 May 2020 08:46:16 -0400 X-IronPort-AV: E=Sophos;i="5.73,383,1583190000"; d="scan'208";a="348409786" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 May 2020 14:46:09 +0200 Date: Tue, 12 May 2020 14:46:09 +0200 Message-Id: <87pnb9b9ta.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #41204 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) severity 41204 important quit From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 09:04:25 2020 Received: (at 41204-done) by debbugs.gnu.org; 12 May 2020 13:04:25 +0000 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 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 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 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 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Caleb Ristvedt Subject: Re: bug#41204: port-revealed count is initially > 30000 References: <878shxqw9k.fsf@cune.org> Date: Tue, 12 May 2020 15:04:16 +0200 In-Reply-To: <878shxqw9k.fsf@cune.org> (Caleb Ristvedt's message of "Tue, 12 May 2020 05:32:07 -0500") Message-ID: <87ftc5b8z3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41204-done Cc: 41204-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Wed Jun 18 23:18:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Jun 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator