From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Caleb Ristvedt Newsgroups: gmane.lisp.guile.bugs Subject: bug#41204: port-revealed count is initially > 30000 Date: Tue, 12 May 2020 05:32:07 -0500 Message-ID: <878shxqw9k.fsf@cune.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14461"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: 41204@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue May 12 12:39:26 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 1jYSJq-0003g6-5D for guile-bugs@m.gmane-mx.org; Tue, 12 May 2020 12:39:26 +0200 Original-Received: from localhost ([::1]:38706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYSJp-00075J-7E for guile-bugs@m.gmane-mx.org; Tue, 12 May 2020 06:39:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYSDe-0006qZ-Ob for bug-guile@gnu.org; Tue, 12 May 2020 06:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYSDe-0007Vk-BX for bug-guile@gnu.org; Tue, 12 May 2020 06:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYSDe-0007ig-8z for bug-guile@gnu.org; Tue, 12 May 2020 06:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Caleb Ristvedt Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 12 May 2020 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41204 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158927953929618 (code B ref -1); Tue, 12 May 2020 10:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2020 10:32:19 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:9756 Archived-At: (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