X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org From: Haojun Bao To: cygwin AT cygwin DOT com Subject: Emacs can't start-process more than 30~40 processes (Was: Re: Emacs w3m `w3m-toggle-inline-images' cause segfault) References: <83iqhlbgoc DOT fsf AT gmail DOT com> <4A6727A8 DOT 2090905 AT cornell DOT edu> <83iqhkur2h DOT fsf AT gmail DOT com> Date: Mon, 27 Jul 2009 10:14:19 +0800 In-Reply-To: <83iqhkur2h.fsf@gmail.com> (Haojun Bao's message of "Thu, 23 Jul 2009 09:27:18 +0800") Message-ID: <834osy98jo.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (cygwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I have reduced the test case in this mail http://cygwin.com/ml/cygwin/2009-07/msg00111.html to a simpler one: $/bin/emacs --batch -q --execute '(let ((num 0)) (while (< num 30) (setq num (+ num 1)) (message "num is %d" num) (start-process "hello" nil "/usr/bin/echo")))' Emacs will coredump at the 30th process it tries to start on my XP. Now I think this should seem familiar to the experts. I tried to gdb it, the backtrace shows segfault is happening at the same place (#0 0x610949d8 in fhandler_pipe::create () from /usr/bin/cygwin1.dll) You might need to tweak the (< num 30) to (< num 40) or bigger, also, to use gdb on it, you need write the lisp into a file and use `-l' to load the file: cat > ~/2.el <