From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 17:50:28 2022 Received: (at submit) by debbugs.gnu.org; 16 Jul 2022 21:50:28 +0000 Received: from localhost ([127.0.0.1]:46272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCpgC-0008K4-At for submit@debbugs.gnu.org; Sat, 16 Jul 2022 17:50:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:52898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCpg7-0008Jo-Ct for submit@debbugs.gnu.org; Sat, 16 Jul 2022 17:50:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCpg7-0008Ra-6i for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 17:50:23 -0400 Received: from outbound-ss-820.bluehost.com ([69.89.24.241]:56925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCpg3-0001yl-18 for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 17:50:22 -0400 Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway2.mail.pro1.eigbox.com (Postfix) with ESMTP id 7B89F10047D84 for ; Sat, 16 Jul 2022 21:50:01 +0000 (UTC) Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id CpflopQ7EWBOVCpfloTlUo; Sat, 16 Jul 2022 21:50:01 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=cpReL30i c=1 sm=1 tr=0 ts=62d33289 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=O427U3NLfDnWt1CB88gA:9 a=kE9dlt5p0RAgGNE2lQAA:9 a=mPkEtBGcNT_oSJOlPuYA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=c83qUpWJfzL/WBaIMb/SW8i4kGF6jGj9ugo68HNmbwo=; b=KieV1XF92j7wYW2qj/SmbQPMOY /uxG0uRb9B6cy1qX28NpCCRMmPXeGQW5dm8slR0nLyiGQm4hjOgXCaCv0HhOtDEs5gD6yfB9QDCM6 /SyinS3oLwRCjY4Z/0os+8ek8Oug7jOMeIaRtTmojA1RTiITQVWEgH/0H5S+7yOoWVcgY/s2MZZMp QkmIXDBbmEwgsSeKjAMwbBOVkx6Yz94Z0RMYePqkQB1FSIPtXrUt5CQ8uKf7o0AjsXibTUCYZvg2U EQMDBND8XA5Hmg95TUkInW9oYc/mwCpsPjrKFrX43L6NIQjJNvl10kn8RrKQVhMu6RsKDzpbOmvwh I5/11IPw==; Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:60808 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oCpfl-001mjq-3c for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 15:50:01 -0600 From: Stephen Leake To: bug-gnu-emacs@gnu.org Subject: 29.0.50; recent master fails with "creating pipe: too many open files" Date: Sat, 16 Jul 2022 14:49:59 -0700 Message-ID: <86ilnwafso.fsf@stephe-leake.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oCpfl-001mjq-3c X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:60808 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 3 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: pass client-ip=69.89.24.241; envelope-from=stephen_leake@stephe-leake.org; helo=outbound-ss-820.bluehost.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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.7 (--) --=-=-= Content-Type: text/plain On Windows, load the attached file: M-x load-file debug-process.el It signals an error, with the message "Creating pipe: Too many open files". On Debian the error does not happen. In Emacs 28, and in emacs master in December 2021, the error does not happen. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=debug-process.el Content-Transfer-Encoding: quoted-printable (defun dd-start-process (cmd n) "Run CMD (a list of strings) in a subprocess. N numbers the various buffe= rs." (let* ((output-buf (get-buffer-create (format "*dd-output %d*" n))) (error-buf (get-buffer-create (format "*dd-error %d*" n))) (done nil) exit-status result (proc-name (format "*dd-proc.out %d*" n)) (err-proc (make-pipe-process :name (format "*dd-proc.err %d*" n) :buffer error-buf :noquery t)) (out-proc (make-process :name proc-name :buffer output-buf :command cmd :noquery t :stderr err-proc))) (while (not done) (accept-process-output out-proc) (cl-ecase (process-status out-proc) (run nil) (stop (error "process %s stopped" dvc-run-proc-name)) (exit (setq exit-status (process-exit-status out-proc)) (if (zerop exit-status) (setq done 'finish) ;; wait for error pipe to finish writing to error-buf. (while (and (not (eq 'closed (process-status err-proc))) (accept-process-output err-proc))) (setq done 'error))) (signal (setq done 'killed)) )) )) (defun dd-test (n) "Run dd-start-process n times." (interactive "nN: ") (let ((i n)) (while (> i 0) (setq i (1- i)) (dd-start-process '("cat" "debug-process.el") i) ))) (dd-test 100) --=-=-= Content-Type: text/plain In GNU Emacs 29.0.50 (build 2, x86_64-w64-mingw32) of 2022-07-16 built on TAKVER4 Repository revision: 35d0a2e0a767838c24d5853be798313aed7a42df Repository branch: master Windowing system distributor 'Microsoft Corp.', version 6.3.9600 System Description: Microsoft Windows 8.1 Pro (v6.3.0.9600.20478) Configured using: 'configure PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' Configured features: ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XPM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: ENU locale-coding-system: cp1252 Major mode: Summary Minor modes in effect: debbugs-browse-mode: t bug-reference-mode: t display-time-mode: t delete-selection-mode: t icomplete-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow emacsbug mailalias smerge-mode diff canlock bbdb-message gnus-kill mule-util sort smiley gnus-cite flow-fill mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg qp gnus-ml vc-mtn vc-git diff-mode vc vc-dispatcher debbugs-browse bug-reference utf-7 imap rfc2104 nndraft nnmh gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nnml gnus-cache bbdb-gnus network-stream nsm nntp gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus wid-edit nnheader range message yank-media puny rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader bbdb-mua bbdb-com pcase crm mailabbrev bbdb derived bbdb-site timezone smtpmail sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time delsel cus-load stephe-theme noutline outline easy-mmode path-iterator cl-extra help-mode whitespace dired-x dired-aux dired dired-loaddefs compile text-property-search comint ansi-color uniquify-files icomplete xref project ring info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile cconv url-vars cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify dbusbind w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 366274 36249) (symbols 48 19973 3) (strings 32 79351 4442) (string-bytes 1 2356349) (vectors 16 59637) (vector-slots 8 1148125 74030) (floats 8 284 234) (intervals 56 2094 329) (buffers 992 28)) -- -- Stephe --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 17 05:42:30 2022 Received: (at 56606) by debbugs.gnu.org; 17 Jul 2022 09:42:30 +0000 Received: from localhost ([127.0.0.1]:46720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD0nF-0005sg-Vn for submit@debbugs.gnu.org; Sun, 17 Jul 2022 05:42:30 -0400 Received: from alt-proxy28.mail.unifiedlayer.com ([74.220.216.123]:40576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD0nA-0005sR-SQ for 56606@debbugs.gnu.org; Sun, 17 Jul 2022 05:42:28 -0400 Received: from cmgw12.mail.unifiedlayer.com (unknown [10.0.90.127]) by progateway1.mail.pro1.eigbox.com (Postfix) with ESMTP id 370B11003FEF1 for <56606@debbugs.gnu.org>; Sun, 17 Jul 2022 09:42:06 +0000 (UTC) Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id D0mroD6TdWg0ED0msoDigx; Sun, 17 Jul 2022 09:42:06 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=Y4w9DjSN c=1 sm=1 tr=0 ts=62d3d96e a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=YuVzn6gPQgjrjgKyNpsA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xaOhs8i2zeoHTp25jvkdOnNheqHWck54k8S0VSo3Zm4=; b=BV3RBvBtBn3Vu9cTbezUznYWWq 07Hb0adxD2xAwcdMRQGkNhWZGDNqoa2edFwsC/wzzDZNpmHnUHGz8LOVwZ+AITNfVc1DfvtbKF/yV 87ZtDDsBnmDIICUqvbXr6P92cNhzI26EFQwZRQ7t0zmM1qJEjyjCzAgnVJoCOtHW9/cKw7brA1+JV 1spjROLdnrxjkBZDFaefQyQfk5Aspu3D1+nFx4pYOaQPyXVIB95Yh29jDBFBhhFR2Asb0bNJDGzJE o5KO/tZ9W2Dj6xBsUa62GAepfPB9ZW3XalY+hAMD0jxS26UqyjuPED3uXM+nIwtxJ+2qSLLpoXVKq xXh6z3jQ==; Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:62269 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oD0mr-0008A0-PF for 56606@debbugs.gnu.org; Sun, 17 Jul 2022 03:42:05 -0600 From: Stephen Leake To: 56606@debbugs.gnu.org Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") In-Reply-To: (GNU bug Tracking System's message of "Sat, 16 Jul 2022 21:51:01 +0000") References: <86ilnwafso.fsf@stephe-leake.org> Date: Sun, 17 Jul 2022 02:42:04 -0700 Message-ID: <86a6989itv.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oD0mr-0008A0-PF X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:62269 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56606 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 (-) On emacs-devel, Eli said: AFAICT, this loop in deactivate_process: /* Beware SIGCHLD hereabouts. */ for (i = 0; i < PROCESS_OPEN_FDS; i++) close_process_fd (&p->open_fd[i]); doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe calls in make-pipe-process. It calls 'close' with the right value, and close returns zero, but the pipe stays open. In Emacs 28, this same loop successfully closes the descriptor. I don't know why. Perhaps bisecting could help. -- -- Stephe From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 17 06:20:36 2022 Received: (at 56606) by debbugs.gnu.org; 17 Jul 2022 10:20:36 +0000 Received: from localhost ([127.0.0.1]:46773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD1O8-0000ab-F7 for submit@debbugs.gnu.org; Sun, 17 Jul 2022 06:20:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD1O7-0000aL-Ai for 56606@debbugs.gnu.org; Sun, 17 Jul 2022 06:20:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD1O1-0003mN-6a; Sun, 17 Jul 2022 06:20:29 -0400 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=4rynJ7jkuldH4vCmDQMpJD1MuaJLSHQnBT/WiUrXFEE=; b=g43DsTMP1Sow SXZisf3KjKc2t1fMVVy5qB/aQ9LwIqvGVHtazEF02RSCaoapIG2tNmYOpo7aXa1PDFSIzdcS1vBXw kNAiO1T6d9ZBzSxK234AoAq/YhOM2vmqkvw4dArWmHNn1yqN+XzM9c2Q/Bhu62WOGukxqyDYYIeE2 ten3V6uqXUfyFsJbO6uZQRmjsWzl+fl1j3OLIQ2H0Lsk91LeWWT1JrMru4gfWEyB7ekiGjsRR19qb mhSpgXR9uClzSXOCuw9sD1i+OcHM136eM1K3zF4dOgfoCstRUR5CvOjAvhsHjFMIh6lCLEfEjUqKU ZH6uD3uCWHAXDLfIKiVG3Q==; Received: from [87.69.77.57] (port=2819 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 1oD1O0-0003WI-Gq; Sun, 17 Jul 2022 06:20:28 -0400 Date: Sun, 17 Jul 2022 13:20:12 +0300 Message-Id: <8335f0qbvn.fsf@gnu.org> From: Eli Zaretskii To: Stephen Leake In-Reply-To: <86a6989itv.fsf@stephe-leake.org> (message from Stephen Leake on Sun, 17 Jul 2022 02:42:04 -0700) Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56606 Cc: 56606@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 Leake > Date: Sun, 17 Jul 2022 02:42:04 -0700 > > On emacs-devel, Eli said: > > AFAICT, this loop in deactivate_process: > > /* Beware SIGCHLD hereabouts. */ > > for (i = 0; i < PROCESS_OPEN_FDS; i++) > close_process_fd (&p->open_fd[i]); > > doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe > calls in make-pipe-process. It calls 'close' with the right value, > and close returns zero, but the pipe stays open. In Emacs 28, this > same loop successfully closes the descriptor. I don't know why. > > Perhaps bisecting could help. I think commit a81669c could be the culprit. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 17 08:47:17 2022 Received: (at 56606) by debbugs.gnu.org; 17 Jul 2022 12:47:17 +0000 Received: from localhost ([127.0.0.1]:46856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD3g4-0006Yb-OO for submit@debbugs.gnu.org; Sun, 17 Jul 2022 08:47:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD3g2-0006YO-PF for 56606@debbugs.gnu.org; Sun, 17 Jul 2022 08:47:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD3fx-0008Fl-B9; Sun, 17 Jul 2022 08:47:09 -0400 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=nV5Z8D2769JBxTAKhHw4BeEU79t/bTd94lNAucLjFnk=; b=CMhQxsUif/3w CbhERSleHPPCp1FocwS9rvUQsIF+WqzKnhu2aDWL4/8pYnp+brs5XaW8QcVqhDywFepBmLQofIICw zl0x2rv7J2I4FN63/263stBsuAwZjnzO1L8g7qYrJbHXPCrL43ng7EKXe+iE+xWJnKj+m8DE1Iqua 6k9+01Cf1S+Z2GBpus8We4SuEYKFwCC8XKSY89F3aOu9tIEMZzkNyta7xvZD7vc0PICoXZIUshmPx B7X+hbgeYwDd7h6IMYNBENQo2UPIKQI/zxcYFdin3BKpbM0NUSB6qGShL/U8+EKrA0dd9o+Q3OZis KmP42oDxIdTs6tMDH4bHYQ==; Received: from [87.69.77.57] (port=3792 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 1oD3fw-0000mJ-Qy; Sun, 17 Jul 2022 08:47:09 -0400 Date: Sun, 17 Jul 2022 15:46:53 +0300 Message-Id: <831qujrjnm.fsf@gnu.org> From: Eli Zaretskii To: stephen_leake@stephe-leake.org In-Reply-To: <8335f0qbvn.fsf@gnu.org> (message from Eli Zaretskii on Sun, 17 Jul 2022 13:20:12 +0300) Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56606 Cc: 56606@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 (---) > Cc: 56606@debbugs.gnu.org > Date: Sun, 17 Jul 2022 13:20:12 +0300 > From: Eli Zaretskii > > > From: Stephen Leake > > Date: Sun, 17 Jul 2022 02:42:04 -0700 > > > > On emacs-devel, Eli said: > > > > AFAICT, this loop in deactivate_process: > > > > /* Beware SIGCHLD hereabouts. */ > > > > for (i = 0; i < PROCESS_OPEN_FDS; i++) > > close_process_fd (&p->open_fd[i]); > > > > doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe > > calls in make-pipe-process. It calls 'close' with the right value, > > and close returns zero, but the pipe stays open. In Emacs 28, this > > same loop successfully closes the descriptor. I don't know why. > > > > Perhaps bisecting could help. > > I think commit a81669c could be the culprit. I hope I fixed this now on master. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 19:55:18 2022 Received: (at 56606) by debbugs.gnu.org; 18 Jul 2022 23:55:18 +0000 Received: from localhost ([127.0.0.1]:52419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDaa6-00011h-Ay for submit@debbugs.gnu.org; Mon, 18 Jul 2022 19:55:18 -0400 Received: from outbound-ss-820.bluehost.com ([69.89.24.241]:33775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDaa2-00011O-JN for 56606@debbugs.gnu.org; Mon, 18 Jul 2022 19:55:17 -0400 Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway2.mail.pro1.eigbox.com (Postfix) with ESMTP id 7D7C810048188 for <56606@debbugs.gnu.org>; Mon, 18 Jul 2022 23:54:59 +0000 (UTC) Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id DaZnohkX8CokGDaZnoRXUi; Mon, 18 Jul 2022 23:54:59 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=d+QwdTvE c=1 sm=1 tr=0 ts=62d5f2d3 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=9i_RQKNPAAAA:8 a=jiDEHD_JMSjLV6scs2IA:9 a=hqnlY9SSy_kA:10:uccc_2email_address a=_FVE-zBwftR9WsbkzFJk:22 a=Ev4oQ7kfJBNsvnoXShoW:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XjFpMU+/LAiH7v16nhMAnQIWvnI6eNZ1/SnbQMQ1Fss=; b=ire8EE/hEsNO2rPP4raPa5jazd cvI7l8DWmrWSj+Hj8ns3nkFEBtdujqwP3e88symnTrWpTKbN2tm3uiImDCfSqIXWr4VSOFjtxdJ0v TPT9M8xMzTITmERJfjqN4lYfGayJzh9ZIw2g9RHbA7YT+Vod3AsBWxYiUl4l8BxTPs1572m/CnmI3 fZWloNRnVGunrvA8BjiaQ4SqiYig9TSpPB6A/7q9Duv0vfQvS6yd1YRuP+lkiJqWjvK5Ima6Yf+e+ Psw7/mFCSAJ7V5J7lI/qBqw2IOyWsxYp4M1O8Ooj5NyksgCqrvVkAfAfAX66azPRz4sdfaXE0p6tD LKTCs/UA==; Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:61585 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oDaZn-0008tk-1D; Mon, 18 Jul 2022 17:54:59 -0600 From: Stephen Leake To: Eli Zaretskii Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") In-Reply-To: <8335f0qbvn.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Jul 2022 13:20:12 +0300") References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> Date: Mon, 18 Jul 2022 16:54:55 -0700 Message-ID: <865yju9dtc.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oDaZn-0008tk-1D X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:61585 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 2 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56606 Cc: 56606@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 Leake >> Date: Sun, 17 Jul 2022 02:42:04 -0700 >> >> On emacs-devel, Eli said: >> >> AFAICT, this loop in deactivate_process: >> >> /* Beware SIGCHLD hereabouts. */ >> >> for (i = 0; i < PROCESS_OPEN_FDS; i++) >> close_process_fd (&p->open_fd[i]); >> >> doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe >> calls in make-pipe-process. It calls 'close' with the right value, >> and close returns zero, but the pipe stays open. In Emacs 28, this >> same loop successfully closes the descriptor. I don't know why. >> >> Perhaps bisecting could help. > > I think commit a81669c could be the culprit. git bisect agrees. -- -- Stephe From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 20:04:30 2022 Received: (at 56606) by debbugs.gnu.org; 19 Jul 2022 00:04:30 +0000 Received: from localhost ([127.0.0.1]:52423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDaj0-0001GG-DV for submit@debbugs.gnu.org; Mon, 18 Jul 2022 20:04:30 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:58592 helo=progateway7-pub.mail.pro1.eigbox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDaiw-0001G1-9p for 56606@debbugs.gnu.org; Mon, 18 Jul 2022 20:04:29 -0400 Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway7.mail.pro1.eigbox.com (Postfix) with ESMTP id 6C1C51004BCAC for <56606@debbugs.gnu.org>; Tue, 19 Jul 2022 00:04:08 +0000 (UTC) Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id DaieohqlBCokGDaieoRdf6; Tue, 19 Jul 2022 00:04:08 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=d+QwdTvE c=1 sm=1 tr=0 ts=62d5f4f8 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=9i_RQKNPAAAA:8 a=gFfRIOhyH20drI7lYosA:9 a=08SdAWmJyisA:10:uccc_2email_address a=_FVE-zBwftR9WsbkzFJk:22 a=Ev4oQ7kfJBNsvnoXShoW:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rcNMG19/J337Bub1CiULb1VKi+gY1/xRwSJ1t0r3RpA=; b=kN0iAjrjdll9sx4URVpuRKS92g xJ52B0AFO+hrmWd/pWAV7rtHJeiIcntc46hF626XetqEAAdFpAZ/MXgIIN/ZKVekyN7tgrekGAr+u NiX/OIiD3MBphK/EmKKj9cNY49vyz6cnwDg8OJZx7kml1ndqyDxIBnOSOfoqRHgL/5tWXM8slw6ID WWfmhDsoCKk1l5vj95Ry4VSKKjkgInzZ6Lgl8MO+H6peYHlDpeFPQO4aIEKmGZGkn7Dru4d12f3FA dFNZCif/7ldukOAsjjoHwBhQGgtvc+Pa9EBGB5TB5Q9HCIhThQmkLlXzhJGvWhTKunh4y75ltcotz haeU/J4w==; Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:61609 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oDaie-000Fba-1K; Mon, 18 Jul 2022 18:04:08 -0600 From: Stephen Leake To: Eli Zaretskii Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") In-Reply-To: <831qujrjnm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Jul 2022 15:46:53 +0300") References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> <831qujrjnm.fsf@gnu.org> Date: Mon, 18 Jul 2022 17:04:05 -0700 Message-ID: <86h73ex91m.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oDaie-000Fba-1K X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:61609 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 2 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56606 Cc: 56606@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: >> Cc: 56606@debbugs.gnu.org >> Date: Sun, 17 Jul 2022 13:20:12 +0300 >> From: Eli Zaretskii >> >> > From: Stephen Leake >> > Date: Sun, 17 Jul 2022 02:42:04 -0700 >> > >> > On emacs-devel, Eli said: >> > >> > AFAICT, this loop in deactivate_process: >> > >> > /* Beware SIGCHLD hereabouts. */ >> > >> > for (i = 0; i < PROCESS_OPEN_FDS; i++) >> > close_process_fd (&p->open_fd[i]); >> > >> > doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe >> > calls in make-pipe-process. It calls 'close' with the right value, >> > and close returns zero, but the pipe stays open. In Emacs 28, this >> > same loop successfully closes the descriptor. I don't know why. >> > >> > Perhaps bisecting could help. >> >> I think commit a81669c could be the culprit. > > I hope I fixed this now on master. > Yes, it is fixed, by 637436970f34f860d50f73a514b3bafd0c5cace7. -- -- Stephe From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 20:07:05 2022 Received: (at 56606-close) by debbugs.gnu.org; 19 Jul 2022 00:07:05 +0000 Received: from localhost ([127.0.0.1]:52427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDalV-0001KI-1v for submit@debbugs.gnu.org; Mon, 18 Jul 2022 20:07:05 -0400 Received: from qproxy2-pub.mail.unifiedlayer.com ([69.89.16.161]:59582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDalS-0001Jo-7t for 56606-close@debbugs.gnu.org; Mon, 18 Jul 2022 20:07:03 -0400 Received: from outbound-ss-761.bluehost.com (outbound-ss-761.bluehost.com [74.220.211.250]) by qproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 9D05D802DAEC for <56606-close@debbugs.gnu.org>; Tue, 19 Jul 2022 00:06:45 +0000 (UTC) Received: from cmgw13.mail.unifiedlayer.com (unknown [10.0.90.128]) by progateway8.mail.pro1.eigbox.com (Postfix) with ESMTP id D200C100421DA for <56606-close@debbugs.gnu.org>; Tue, 19 Jul 2022 00:05:48 +0000 (UTC) Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id DakGoBwYnWBOVDakGoq0b2; Tue, 19 Jul 2022 00:05:48 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=cpReL30i c=1 sm=1 tr=0 ts=62d5f55c a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=qRJG04lTMKw9nz8SNhkA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1w1c+9lpuRS0Kru1xoTVptnXWmC8kbQt+for7R8V1oo=; b=mhVuyUvaZzYTbDN4uDla5CxkEQ TdMrPLOHnX1WPFnHAARRiciC02ojqhS+fKwCwWm+7EcYsDqWANwK4rnQILb+f2utkFOCxjIlWbf3L 2XBhuD56r+miGAC1t3RzKt69EAe4BnFG1DRFl5jS63yRks3meJI6fuAnMRb9sxMgkZp+dPNfASIBo aI28hsrQMVzSsTzZmSo8i0UWJF3LWCjEw70rK0Dm8qSJ07tMz765JpmdbAvwOONjIp3JcAV8mibJd qcL0nfd0BtUm6Iahn3JJ5rJ+IHmFjfUDpDU6z1ZaY1O1ELo8MnY20YIiJiVfAbVu8w0VXFNMk9B95 3v+noGtQ==; Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:61615 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oDakG-000H9i-Dh for 56606-close@debbugs.gnu.org; Mon, 18 Jul 2022 18:05:48 -0600 From: Stephen Leake To: 56606-close@debbugs.gnu.org Subject: 29.0.50; recent master fails with "creating pipe: too many open files" Date: Mon, 18 Jul 2022 17:05:45 -0700 Message-ID: <86cze2x8yu.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oDakG-000H9i-Dh X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:61615 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 3 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56606-close 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 (-) -- -- Stephe From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 22:39:00 2022 Received: (at 56606-done) by debbugs.gnu.org; 19 Jul 2022 02:39:00 +0000 Received: from localhost ([127.0.0.1]:52484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDd8V-0005Et-Rg for submit@debbugs.gnu.org; Mon, 18 Jul 2022 22:39:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDd8U-0005Eg-5K for 56606-done@debbugs.gnu.org; Mon, 18 Jul 2022 22:38:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDd8O-0006Uf-9d; Mon, 18 Jul 2022 22:38:52 -0400 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=oBegYdI+iiY7hiOyWRWv7B52sUE2UVAkiTFJz3J1kwQ=; b=qOcqb6O0Amzj blW6wLzDr9g0Qlzb0m+fNuvTKlxoPQ6kTviYE9eGkG2m89MKMlBdnuDsARNMNSLfFmdtESLpBNnWI Am84IfWSZ8NJul2TKDD+r/UEafdhrQmZYFmuRxmopHUMOENDpfPvI5FK49FGdabYH+val2zdc4iF4 fFUxoywFEQC7zLDjTsejBif8Ffp578DVQIkBO2Yi6UM+7ldBrSNDttn4oG2OOR2AdMGupA6FzOJDk OjkrvBjaVdhJtc6ZxxZneCiBGoYr2GmLE4LInfeYB8XxKp7hUout6UPYe5cDr+tubDPyLw/EczQnC 4mN7Ne31wFImy2tmKrbr6Q==; Received: from [87.69.77.57] (port=3275 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 1oDd8N-0004Cn-PE; Mon, 18 Jul 2022 22:38:52 -0400 Date: Tue, 19 Jul 2022 05:38:40 +0300 Message-Id: <83k089omhb.fsf@gnu.org> From: Eli Zaretskii To: Stephen Leake In-Reply-To: <86h73ex91m.fsf@stephe-leake.org> (message from Stephen Leake on Mon, 18 Jul 2022 17:04:05 -0700) Subject: Re: bug#56606: Acknowledgement (29.0.50; recent master fails with "creating pipe: too many open files") References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> <831qujrjnm.fsf@gnu.org> <86h73ex91m.fsf@stephe-leake.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56606-done Cc: 56606-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 (---) > From: Stephen Leake > Cc: 56606@debbugs.gnu.org > Date: Mon, 18 Jul 2022 17:04:05 -0700 > > Eli Zaretskii writes: > > >> Cc: 56606@debbugs.gnu.org > >> Date: Sun, 17 Jul 2022 13:20:12 +0300 > >> From: Eli Zaretskii > >> > >> > From: Stephen Leake > >> > Date: Sun, 17 Jul 2022 02:42:04 -0700 > >> > > >> > On emacs-devel, Eli said: > >> > > >> > AFAICT, this loop in deactivate_process: > >> > > >> > /* Beware SIGCHLD hereabouts. */ > >> > > >> > for (i = 0; i < PROCESS_OPEN_FDS; i++) > >> > close_process_fd (&p->open_fd[i]); > >> > > >> > doesn't close the last of the 4 descriptors opened by the 2 emacs_pipe > >> > calls in make-pipe-process. It calls 'close' with the right value, > >> > and close returns zero, but the pipe stays open. In Emacs 28, this > >> > same loop successfully closes the descriptor. I don't know why. > >> > > >> > Perhaps bisecting could help. > >> > >> I think commit a81669c could be the culprit. > > > > I hope I fixed this now on master. > > > > Yes, it is fixed, by 637436970f34f860d50f73a514b3bafd0c5cace7. Thanks, I'm therefore closing this bug. From unknown Fri Aug 15 20:28:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Aug 2022 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