From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#56606: 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="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29986"; mail-complaints-to="usenet@ciao.gmane.io" To: 56606@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 16 23:51:16 2022 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 1oCpgx-0007a7-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 23:51:16 +0200 Original-Received: from localhost ([::1]:37392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCpgw-00008o-A4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 17:51:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCpgk-00008B-51 for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 17:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCpgj-0003Af-SU for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 17:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCpgj-0008Ku-Ks for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 17:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jul 2022 21:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56606 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165800822832001 (code B ref -1); Sat, 16 Jul 2022 21:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jul 2022 21:50:28 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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==; Original-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 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-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-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:237213 Archived-At: --=-=-= 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 --=-=-=--