From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51110: Native-comp leaks fds open on /dev/ptmx Date: Tue, 30 Nov 2021 22:18:51 +0200 Message-ID: <83a6hltn10.fsf@gnu.org> References: <1222487.1633798903@pental> <83k0imw24x.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18738"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stepheng+emacs@gildea.com, 51110@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 21:20:38 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 1ms9cC-0004hm-UX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 21:20:37 +0100 Original-Received: from localhost ([::1]:36486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms9cA-0006IE-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 15:20:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms9bf-0006Gu-7c for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 15:20:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms9be-0004BC-Rh for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 15:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ms9be-0003RK-M4 for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 15:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2021 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51110 X-GNU-PR-Package: emacs Original-Received: via spool by 51110-submit@debbugs.gnu.org id=B51110.163830354713132 (code B ref 51110); Tue, 30 Nov 2021 20:20:02 +0000 Original-Received: (at 51110) by debbugs.gnu.org; 30 Nov 2021 20:19:07 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: (message from Andrea Corallo on Tue, 30 Nov 2021 20:13:07 +0000) 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:221171 Archived-At: > 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.