From unknown Sat Jun 21 17:36:10 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#51110 <51110@debbugs.gnu.org> To: bug#51110 <51110@debbugs.gnu.org> Subject: Status: Native-comp leaks fds open on /dev/ptmx Reply-To: bug#51110 <51110@debbugs.gnu.org> Date: Sun, 22 Jun 2025 00:36:10 +0000 retitle 51110 Native-comp leaks fds open on /dev/ptmx reassign 51110 emacs submitter 51110 Stephen Gildea severity 51110 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 11:45:48 2021 Received: (at submit) by debbugs.gnu.org; 9 Oct 2021 15:45:48 +0000 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 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 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 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 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 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 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) From: Stephen Gildea To: bug-emacs@gnu.org Subject: Native-comp leaks fds open on /dev/ptmx X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1219751.1633794325.1@pental> Content-Transfer-Encoding: quoted-printable Date: Sat, 09 Oct 2021 08:45:25 -0700 Message-ID: <1219754.1633794325@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-Spam-Score: -2.3 (--) 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: -2.3 (--) 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" From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 11:57:33 2021 Received: (at 51110) by debbugs.gnu.org; 9 Oct 2021 15:57:33 +0000 Received: from localhost ([127.0.0.1]:54025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEj7-00014d-Ce for submit@debbugs.gnu.org; Sat, 09 Oct 2021 11:57:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZEj3-00014Q-V0 for 51110@debbugs.gnu.org; Sat, 09 Oct 2021 11:57:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57708) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZEix-00086P-FP; Sat, 09 Oct 2021 11:57:23 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1665 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZEiu-0004My-0e; Sat, 09 Oct 2021 11:57:23 -0400 Date: Sat, 09 Oct 2021 18:57:04 +0300 Message-Id: <83mtniw5rj.fsf@gnu.org> From: Eli Zaretskii To: Stephen Gildea , Andrea Corallo In-Reply-To: <1219754.1633794325@pental> (message from Stephen Gildea on Sat, 09 Oct 2021 08:45:25 -0700) Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1219754.1633794325@pental> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51110 Cc: 51110@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 (---) > From: Stephen Gildea > Date: Sat, 09 Oct 2021 08:45:25 -0700 > > src/emacs -Q --eval '(setq invocation-name "emacs-leaks")' --eval '(mh-version)' What real-life use case requires you to modify invocation-name? That variable is supposed to be read-only: it tells the program name used to invoke Emacs of the running session. If you change it, other features will become confused. IOW, I don't think we want to support this kind of usage. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 13:01:56 2021 Received: (at 51110) by debbugs.gnu.org; 9 Oct 2021 17:01:56 +0000 Received: from localhost ([127.0.0.1]:54064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZFjP-0004sf-Sa for submit@debbugs.gnu.org; Sat, 09 Oct 2021 13:01:56 -0400 Received: from tigger.sg.gildea.net ([99.65.78.170]:40480 helo=pental.sg.gildea.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZFjJ-0004sL-Ir for 51110@debbugs.gnu.org; Sat, 09 Oct 2021 13:01:54 -0400 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 3CE8D24C7D9; Sat, 9 Oct 2021 10:01:43 -0700 (PDT) From: Stephen Gildea To: Eli Zaretskii Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx In-Reply-To: Message from eliz@gnu.org of 9 Oct 2021 18:57:04 +0300 <83mtniw5rj.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1222486.1633798903.1@pental> Date: Sat, 09 Oct 2021 10:01:43 -0700 Message-ID: <1222487.1633798903@pental> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51110 Cc: 51110@debbugs.gnu.org, Andrea Corallo 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: -1.0 (-) The recipe I gave provides a simple way to show the unbounded resource use of Emacs while compiling; I don't propose it as an actual use case. Apparently what's happening is that Emacs forks off a child Emacs to do the compile and allocates a pty to the child. These ptys are not closed until the compile completes. It seems Emacs needs to better manage the number of simultaneous open ptys. Or at least be able to wait and retry if an open fails. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 13:15:55 2021 Received: (at 51110) by debbugs.gnu.org; 9 Oct 2021 17:15:55 +0000 Received: from localhost ([127.0.0.1]:54097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZFwx-0005Ec-Kx for submit@debbugs.gnu.org; Sat, 09 Oct 2021 13:15:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZFww-0005EQ-J7 for 51110@debbugs.gnu.org; Sat, 09 Oct 2021 13:15:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59826) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZFwn-0008HF-Ec; Sat, 09 Oct 2021 13:15:46 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZFwl-0004se-Eb; Sat, 09 Oct 2021 13:15:45 -0400 Date: Sat, 09 Oct 2021 20:15:26 +0300 Message-Id: <83k0imw24x.fsf@gnu.org> From: Eli Zaretskii To: Stephen Gildea In-Reply-To: <1222487.1633798903@pental> (message from Stephen Gildea on Sat, 09 Oct 2021 10:01:43 -0700) Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1222487.1633798903@pental> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51110 Cc: 51110@debbugs.gnu.org, akrl@sdf.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 (---) > From: Stephen Gildea > cc: Andrea Corallo , 51110@debbugs.gnu.org > Date: Sat, 09 Oct 2021 10:01:43 -0700 > > Apparently what's happening is that Emacs forks off a child Emacs to do > the compile and allocates a pty to the child. These ptys are not > closed until the compile completes. It seems Emacs needs to better > manage the number of simultaneous open ptys. Or at least be able to > wait and retry if an open fails. Emacs limits the number of these background processes, see native-comp-async-jobs-number. (The value zero means use half of the number of execution units available in the system's processor.) So we generally shouldn't have more than that number of open pipes at any given time. For the obvious reasons they cannot be closed until the sub-process exits. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 15:13:11 2021 Received: (at 51110) by debbugs.gnu.org; 30 Nov 2021 20:13:12 +0000 Received: from localhost ([127.0.0.1]:42582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9V1-0003G0-Nh for submit@debbugs.gnu.org; Tue, 30 Nov 2021 15:13:11 -0500 Received: from mx.sdf.org ([205.166.94.24]:61285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9Uz-0003Fr-Km for 51110@debbugs.gnu.org; Tue, 30 Nov 2021 15:13:10 -0500 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 1AUKD7qE003263 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 30 Nov 2021 20:13:07 GMT From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1222487.1633798903@pental> <83k0imw24x.fsf@gnu.org> Date: Tue, 30 Nov 2021 20:13:07 +0000 In-Reply-To: <83k0imw24x.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Oct 2021 20:15:26 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51110 Cc: Stephen Gildea , 51110@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: -1.0 (-) Eli Zaretskii writes: >> From: Stephen Gildea >> cc: Andrea Corallo , 51110@debbugs.gnu.org >> Date: Sat, 09 Oct 2021 10:01:43 -0700 >> >> Apparently what's happening is that Emacs forks off a child Emacs to do >> the compile and allocates a pty to the child. These ptys are not >> closed until the compile completes. It seems Emacs needs to better >> manage the number of simultaneous open ptys. Or at least be able to >> wait and retry if an open fails. > > Emacs limits the number of these background processes, see > native-comp-async-jobs-number. (The value zero means use half of the > number of execution units available in the system's processor.) So we > generally shouldn't have more than that number of open pipes at any > given time. For the obvious reasons they cannot be closed until the > sub-process exits. Is there any action we need/can take on this bug? Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 15:19:07 2021 Received: (at 51110) by debbugs.gnu.org; 30 Nov 2021 20:19:07 +0000 Received: from localhost ([127.0.0.1]:42588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9al-0003Pk-DD for submit@debbugs.gnu.org; Tue, 30 Nov 2021 15:19:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9aj-0003PG-DM for 51110@debbugs.gnu.org; Tue, 30 Nov 2021 15:19:06 -0500 Received: from [2001:470:142:3::e] (port=49722 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms9ad-00043O-N0; Tue, 30 Nov 2021 15:18:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iTT9vsG6WP5Jk0eHfCyJlwS9y4NBcXa/WQ51ViE4X2I=; b=QywYm7VhH5VM Q7meakTBmt+M3tNztbbLieygOWQa+CVqx+Czg+GFLUN8neioa7i7fehdwc1pZ/sqXLW/WMS0ezWOh MzVj9ggJwBe7A1KrVVWqGo1meMWCp5CAE63WOslipocg3dGFbLCNdsQkmR4tpGXpd0kQ0xO3XIo/L lmW4Qa5CnqSDR92iO4WpXjnRfHs4xSp42Mfqjt9D5eekP0pGst3eIztszVPj31+7WislTihYOW8gA gq/NFZE7AbbljvwHJiQ2DvizzxZVNFAKaxvRQb+cefqu0piCzSB2DhomlM93XBHhb3u6ha4Bn8HV8 GRXytG9YlViAWBZViN1oTg==; Received: from [87.69.77.57] (port=3363 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms9ad-0000VA-2D; Tue, 30 Nov 2021 15:18:59 -0500 Date: Tue, 30 Nov 2021 22:18:51 +0200 Message-Id: <83a6hltn10.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Tue, 30 Nov 2021 20:13:07 +0000) Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1222487.1633798903@pental> <83k0imw24x.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51110 Cc: stepheng+emacs@gildea.com, 51110@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 (---) > From: Andrea Corallo > Cc: Stephen Gildea , 51110@debbugs.gnu.org > Date: Tue, 30 Nov 2021 20:13:07 +0000 > > Eli Zaretskii writes: > > >> From: Stephen Gildea > >> cc: Andrea Corallo , 51110@debbugs.gnu.org > >> Date: Sat, 09 Oct 2021 10:01:43 -0700 > >> > >> Apparently what's happening is that Emacs forks off a child Emacs to do > >> the compile and allocates a pty to the child. These ptys are not > >> closed until the compile completes. It seems Emacs needs to better > >> manage the number of simultaneous open ptys. Or at least be able to > >> wait and retry if an open fails. > > > > Emacs limits the number of these background processes, see > > native-comp-async-jobs-number. (The value zero means use half of the > > number of execution units available in the system's processor.) So we > > generally shouldn't have more than that number of open pipes at any > > given time. For the obvious reasons they cannot be closed until the > > sub-process exits. > > Is there any action we need/can take on this bug? I don't think there's anything we _can_ do here, and I tried to explain why. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 15:25:04 2021 Received: (at 51110) by debbugs.gnu.org; 30 Nov 2021 20:25:04 +0000 Received: from localhost ([127.0.0.1]:42592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9gW-0003Zf-3f for submit@debbugs.gnu.org; Tue, 30 Nov 2021 15:25:04 -0500 Received: from mx.sdf.org ([205.166.94.24]:60158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9gT-0003Z8-1B for 51110@debbugs.gnu.org; Tue, 30 Nov 2021 15:25:02 -0500 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 1AUKOxST029793 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 30 Nov 2021 20:25:00 GMT From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1222487.1633798903@pental> <83k0imw24x.fsf@gnu.org> <83a6hltn10.fsf@gnu.org> Date: Tue, 30 Nov 2021 20:24:59 +0000 In-Reply-To: <83a6hltn10.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Nov 2021 22:18:51 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51110 Cc: stepheng+emacs@gildea.com, 51110@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: -1.0 (-) Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: Stephen Gildea , 51110@debbugs.gnu.org >> Date: Tue, 30 Nov 2021 20:13:07 +0000 >> >> Eli Zaretskii writes: >> >> >> From: Stephen Gildea >> >> cc: Andrea Corallo , 51110@debbugs.gnu.org >> >> Date: Sat, 09 Oct 2021 10:01:43 -0700 >> >> >> >> Apparently what's happening is that Emacs forks off a child Emacs to do >> >> the compile and allocates a pty to the child. These ptys are not >> >> closed until the compile completes. It seems Emacs needs to better >> >> manage the number of simultaneous open ptys. Or at least be able to >> >> wait and retry if an open fails. >> > >> > Emacs limits the number of these background processes, see >> > native-comp-async-jobs-number. (The value zero means use half of the >> > number of execution units available in the system's processor.) So we >> > generally shouldn't have more than that number of open pipes at any >> > given time. For the obvious reasons they cannot be closed until the >> > sub-process exits. >> >> Is there any action we need/can take on this bug? > > I don't think there's anything we _can_ do here, and I tried to > explain why. I agree, I don't think we really want support `invocation-name' modifications at runtime. Shall we close this bug? Andrea From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 15:29:50 2021 Received: (at 51110) by debbugs.gnu.org; 30 Nov 2021 20:29:50 +0000 Received: from localhost ([127.0.0.1]:42604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9l8-0003hr-9C for submit@debbugs.gnu.org; Tue, 30 Nov 2021 15:29:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms9l6-0003ha-A3 for 51110@debbugs.gnu.org; Tue, 30 Nov 2021 15:29:48 -0500 Received: from [2001:470:142:3::e] (port=50112 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms9l0-0005UW-Lu; Tue, 30 Nov 2021 15:29:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uRqNruW5GytDyqNA6+YvAGgYbY2C8aYLmmtbDAAL8us=; b=jBrBsPzm7T8D dR+vxT+fGhfTlHsIqHxFq5lgnxgkEWJ8hHsbugRYVooHLTPzp5Yhg+RFlTuWoVdIcnmajQtstLIVJ T4fnF4YyQIXh+P7RM6N0sjhYi04fi802ExuF1YCCDBCnQFpRLATrwLLxdb7ZMLJKR4FwZrZW6/5pp X6WvLLn9zKGYfBGwxfKRMFVSrF2Q4aOUWXUONZHcd7v72474BrbsnyhFgoR7BoMgbsczxMvpm6cDZ lQGvhY9GrAOUBfStU4g72LQhw2HOgqsnj6dHVmZlZSFM8vfOox04Y4r+uJPxRYUrb908sBHTTf4K1 QwRZO+FCsJa1drJRrOqW9Q==; Received: from [87.69.77.57] (port=4031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms9l0-0001je-CQ; Tue, 30 Nov 2021 15:29:42 -0500 Date: Tue, 30 Nov 2021 22:29:36 +0200 Message-Id: <838rx5tmj3.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Tue, 30 Nov 2021 20:24:59 +0000) Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx References: <1222487.1633798903@pental> <83k0imw24x.fsf@gnu.org> <83a6hltn10.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51110 Cc: stepheng+emacs@gildea.com, 51110@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 (---) > From: Andrea Corallo > Cc: stepheng+emacs@gildea.com, 51110@debbugs.gnu.org > Date: Tue, 30 Nov 2021 20:24:59 +0000 > > > I don't think there's anything we _can_ do here, and I tried to > > explain why. > > I agree, I don't think we really want support `invocation-name' > modifications at runtime. > > Shall we close this bug? I think so. But before we do, I'd like to let Stephen a chance to convince us otherwise. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 21:28:45 2021 Received: (at 51110-done) by debbugs.gnu.org; 1 Dec 2021 02:28:45 +0000 Received: from localhost ([127.0.0.1]:42872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msFMT-0000GE-46 for submit@debbugs.gnu.org; Tue, 30 Nov 2021 21:28:45 -0500 Received: from tigger.sg.gildea.net ([99.65.78.170]:51142 helo=tigger3.gildea.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msFMQ-0000Fz-Jd for 51110-done@debbugs.gnu.org; Tue, 30 Nov 2021 21:28:43 -0500 Received: from tigger3.sg.gildea.net (localhost [IPv6:::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by tigger3.gildea.net (Postfix) with ESMTPS id 7E86B3E0060; Tue, 30 Nov 2021 18:28:36 -0800 (PST) From: Stephen Gildea To: Eli Zaretskii , Andrea Corallo Subject: Re: bug#51110: Native-comp leaks fds open on /dev/ptmx In-Reply-To: Message from eliz@gnu.org of 30 Nov 2021 22:29:36 +0200 <838rx5tmj3.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.0.60 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <98357.1638325716.1@tigger3.sg.gildea.net> Date: Tue, 30 Nov 2021 18:28:36 -0800 Message-ID: <98358.1638325716@tigger3.sg.gildea.net> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51110-done Cc: 51110-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: -1.0 (-) Eli Zaretskii wrote: > > From: Andrea Corallo > > Cc: stepheng+emacs@gildea.com, 51110@debbugs.gnu.org > > Date: Tue, 30 Nov 2021 20:24:59 +0000 > > > > > I don't think there's anything we _can_ do here, and I tried to > > > explain why. > > > > I agree, I don't think we really want support `invocation-name' > > modifications at runtime. > > > > Shall we close this bug? > > I think so. But before we do, I'd like to let Stephen a chance to > convince us otherwise. I'm happy to see this bug closed, and I hereby do so. Thank you for the discussion. From unknown Sat Jun 21 17:36:10 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, 29 Dec 2021 12: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