From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Gildea Newsgroups: gmane.emacs.bugs Subject: bug#51110: Native-comp leaks fds open on /dev/ptmx Date: Sat, 09 Oct 2021 08:45:25 -0700 Message-ID: <1219754.1633794325@pental> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5827"; mail-complaints-to="usenet@ciao.gmane.io" To: 51110@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 09 17:46:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mZEY7-0001Ku-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 17:46:11 +0200 Original-Received: from localhost ([::1]:59280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZEY6-0003FX-HJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 11:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEXy-0003EH-Qa for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 11:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZEXy-0005D7-FW for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZEXy-0000md-89 for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Gildea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2021 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51110 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16337943482985 (code B ref -1); Sat, 09 Oct 2021 15:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2021 15:45:48 +0000 Original-Received: from localhost ([127.0.0.1]:54020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEXk-0000m5-75 for submit@debbugs.gnu.org; Sat, 09 Oct 2021 11:45:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEXf-0000lt-KB for submit@debbugs.gnu.org; Sat, 09 Oct 2021 11:45:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEXe-0003AS-Vq for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 11:45:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57548) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZEXe-00059p-81 for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 11:45:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56784) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEXc-0003Ba-MQ for bug-emacs@gnu.org; Sat, 09 Oct 2021 11:45:42 -0400 Original-Received: from tigger.sg.gildea.net ([99.65.78.170]:49932 helo=pental.sg.gildea.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEXY-00057J-5y for bug-emacs@gnu.org; Sat, 09 Oct 2021 11:45:39 -0400 Original-Received: from pental (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pental.sg.gildea.net (Postfix) with ESMTPS id 0C12924C7C5 for ; Sat, 9 Oct 2021 08:45:25 -0700 (PDT) X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 29.0.50 Content-ID: <1219751.1633794325.1@pental> Received-SPF: pass client-ip=99.65.78.170; envelope-from=stepheng+emacs@gildea.com; helo=pental.sg.gildea.net 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216777 Archived-At: Version: 28.0.60 Severity: important Native-comp leaks fds open on /dev/ptmx if you change 'invocation-name' and then run a function that loads libraries and causes some compilation. Emacs seems to compile each file multiple times (16 or more), and it soon runs out of file descriptors. To reproduce: Use a newly built (configure --with-native-compilation) Emacs that has never (successfully) run MH-E before; if your eln-cache has already been populated, you will need to delete the cache to repeat the failure: rm -r ~/.emacs.d/eln-cache The Emacs must be interactive, and you can reproduce quickly as follows: src/emacs -Q --eval '(setq invocation-name "emacs-leaks")' --eval '(mh-ver= sion)' In a few seconds the echo area will say: "Creating pipe: Too many open fil= es" What should appear in the echo area: "nmh 1.7.1 installed as MH variant" or maybe: "No MH variant found on the system"