From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: Markus Triska Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Apr 2010 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 5819@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127014453523376 (code B ref -1); Thu, 01 Apr 2010 17:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2010 17:55:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOcB-00064z-1n for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:35 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOc9-00064u-60 for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:34 -0400 Received: from lists.gnu.org ([199.232.76.165]:57667) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NxOc4-0006Ej-IZ for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxOc4-0003Zm-2Z for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:28 -0400 Received: from [140.186.70.92] (port=33714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxOc2-0003Yp-Tc for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxOby-0004iy-Fp for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:26 -0400 Received: from mail.gmx.net ([213.165.64.20]:60042) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NxOby-0004i9-3L for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:22 -0400 Received: (qmail invoked by alias); 01 Apr 2010 17:55:17 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-imac.local) [62.178.240.212] by mail.gmx.net (mp057) with SMTP; 01 Apr 2010 19:55:17 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX19hEW9IaM1h6dVW+amzGfN+iO3O2/QGmjs7c9Ssn8 chdhUVWYThgJBs Received: by mt-imac.local (Postfix, from userid 501) id 56C855601F7; Thu, 1 Apr 2010 19:55:11 +0200 (CEST) From: Markus Triska Date: Thu, 01 Apr 2010 19:55:11 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52000000000000002 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Let testprocess.el consist of the following form: (let (p (n 1)) (while t (message "iteration %s" n) (setq n (1+ n) p (start-process "bc" nil "bc")) (process-send-string p "test") (delete-process p))) On OSX 10.4, when I do "$ emacs -Q --script testprocess.el", I get: $ emacs -Q --script testprocess.el iteration 1 iteration 2 iteration 3 writing to process: Input/output error, bc and sometimes, particularly under high system load: $ emacs -Q --script testprocess.el iteration 1 iteration 2 Process bc not running The number of iterations often varies over invocations. In GNU Emacs 23.1.93.1 (i386-apple-darwin8.11.1) of 2010-04-01 on mt-computer.local configured using `configure '--without-x'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Apr 2010 05:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Markus Triska Cc: 5819@debbugs.gnu.org Received: via spool by 5819-submit@debbugs.gnu.org id=B5819.127035899413667 (code B ref 5819); Sun, 04 Apr 2010 05:30:03 +0000 Received: (at 5819) by debbugs.gnu.org; 4 Apr 2010 05:29:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyIPB-0003YN-Me for submit@debbugs.gnu.org; Sun, 04 Apr 2010 01:29:53 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyIP8-0003YI-Ap for 5819@debbugs.gnu.org; Sun, 04 Apr 2010 01:29:51 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 0E5B2C0557; Sun, 4 Apr 2010 14:29:44 +0900 (JST) Date: Sun, 04 Apr 2010 14:29:44 +0900 Message-ID: From: YAMAMOTO Mitsuharu In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >>>>> On Thu, 01 Apr 2010 19:55:11 +0200, Markus Triska said: > Let testprocess.el consist of the following form: > (let (p (n 1)) > (while t > (message "iteration %s" n) > (setq n (1+ n) > p (start-process "bc" nil "bc")) > (process-send-string p "test") > (delete-process p))) > On OSX 10.4, when I do "$ emacs -Q --script testprocess.el", I get: > $ emacs -Q --script testprocess.el > iteration 1 > iteration 2 > iteration 3 > writing to process: Input/output error, bc > and sometimes, particularly under high system load: > $ emacs -Q --script testprocess.el > iteration 1 > iteration 2 > Process bc not running > The number of iterations often varies over invocations. I could reproduce it on Mac OS X 10.3 and 10.4, but not on 10.5 and 10.6. The following patch, which uses openpty, seems to work for me on 10.4, but not on 10.3. I suspect a bug in the kernel. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'src/s/darwin.h' *** src/s/darwin.h 2010-03-30 04:55:59 +0000 --- src/s/darwin.h 2010-04-04 04:50:02 +0000 *************** *** 90,95 **** --- 90,121 ---- */ #define HAVE_PTYS + /* Run only once. We need a `for'-loop because the code uses + `continue'. */ + #define PTY_ITERATION for (i = 0; i < 1; i++) + #define PTY_NAME_SPRINTF /* none */ + #define PTY_TTY_NAME_SPRINTF /* none */ + #define PTY_OPEN \ + do \ + { \ + int slave, tem; \ + if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) \ + { \ + fd = -1; \ + break; \ + } \ + emacs_close (slave); \ + tem = fcntl (fd, F_GETFL, 0); \ + if (tem >= 0) \ + tem = fcntl (fd, F_SETFL, tem | O_NONBLOCK); \ + if (tem < 0) \ + { \ + emacs_close (fd); \ + fd = -1; \ + break; \ + } \ + } \ + while (0) /** * PTYs only work correctly on Darwin 7 or higher. So make the From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2010 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Markus Triska Cc: 5819@debbugs.gnu.org Received: via spool by 5819-submit@debbugs.gnu.org id=B5819.12707195216939 (code B ref 5819); Thu, 08 Apr 2010 09:39:02 +0000 Received: (at 5819) by debbugs.gnu.org; 8 Apr 2010 09:38:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzoC8-0001ns-Sb for submit@debbugs.gnu.org; Thu, 08 Apr 2010 05:38:41 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzoC6-0001nn-Lq for 5819@debbugs.gnu.org; Thu, 08 Apr 2010 05:38:40 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 78C7FC0557; Thu, 8 Apr 2010 18:38:32 +0900 (JST) Date: Thu, 08 Apr 2010 18:38:32 +0900 Message-ID: From: YAMAMOTO Mitsuharu In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.4 (/) >>>>> On Sun, 04 Apr 2010 14:29:44 +0900, YAMAMOTO Mitsuharu said: > The following patch, which uses openpty, seems to work for me on > 10.4, but not on 10.3. I suspect a bug in the kernel. The following simpler one seems to work for me on 10.4 (but not on 10.3, again). Could you test if it also works for you, with respect to this problem and #726 (23.0.60; OSX: Complete OS crash)? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'src/s/darwin.h' *** src/s/darwin.h 2010-03-30 04:55:59 +0000 --- src/s/darwin.h 2010-04-05 03:21:53 +0000 *************** *** 90,95 **** --- 90,113 ---- */ #define HAVE_PTYS + /* Run only once. We need a `for'-loop because the code uses + `continue'. */ + #define PTY_ITERATION for (i = 0; i < 1; i++) + #define PTY_NAME_SPRINTF /* none */ + #define PTY_TTY_NAME_SPRINTF /* none */ + /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. + But we don't have to block SIGCHLD because it is blocked in the + implementation of grantpt. */ + #define PTY_OPEN \ + do \ + { \ + int slave; \ + if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) \ + fd = -1; \ + else \ + emacs_close (slave); \ + } \ + while (0) /** * PTYs only work correctly on Darwin 7 or higher. So make the From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: Markus Triska Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2010 22:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: YAMAMOTO Mitsuharu Cc: 5819@debbugs.gnu.org Received: via spool by 5819-submit@debbugs.gnu.org id=B5819.127076462032239 (code B ref 5819); Thu, 08 Apr 2010 22:11:01 +0000 Received: (at 5819) by debbugs.gnu.org; 8 Apr 2010 22:10:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzzvY-0008Nw-5N for submit@debbugs.gnu.org; Thu, 08 Apr 2010 18:10:20 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NzzvU-0008Np-IK for 5819@debbugs.gnu.org; Thu, 08 Apr 2010 18:10:19 -0400 Received: (qmail invoked by alias); 08 Apr 2010 22:10:10 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-imac.local) [62.178.240.212] by mail.gmx.net (mp052) with SMTP; 09 Apr 2010 00:10:10 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+wgiUsiTKwHoGzJ3oagC3ZfkrgKNFyLb0YGVSY3X yRKu7DNjE1UtTQ Received: by mt-imac.local (Postfix, from userid 501) id 61F3C562223; Fri, 9 Apr 2010 00:10:09 +0200 (CEST) From: Markus Triska References: Date: Fri, 09 Apr 2010 00:10:09 +0200 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Thu, 08 Apr 2010 18:38:32 +0900") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66000000000000003 X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) YAMAMOTO Mitsuharu writes: > The following simpler one seems to work for me on 10.4 (but not on > 10.3, again). Could you test if it also works for you, with respect > to this problem and #726 (23.0.60; OSX: Complete OS crash)? Your patch fixes both issues for me. Thank you very much! From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2010 00:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Markus Triska Cc: Chong Yidong , 5819@debbugs.gnu.org, Stefan Monnier Received: via spool by 5819-submit@debbugs.gnu.org id=B5819.12707741203723 (code B ref 5819); Fri, 09 Apr 2010 00:49:01 +0000 Received: (at 5819) by debbugs.gnu.org; 9 Apr 2010 00:48:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O02Ol-0000y0-47 for submit@debbugs.gnu.org; Thu, 08 Apr 2010 20:48:39 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O02Oi-0000xt-Ge for 5819@debbugs.gnu.org; Thu, 08 Apr 2010 20:48:37 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 7864FC0557; Fri, 9 Apr 2010 09:48:29 +0900 (JST) Date: Fri, 09 Apr 2010 09:48:29 +0900 Message-ID: From: YAMAMOTO Mitsuharu In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> On Fri, 09 Apr 2010 00:10:09 +0200, Markus Triska said: > YAMAMOTO Mitsuharu writes: >> The following simpler one seems to work for me on 10.4 (but not on >> 10.3, again). Could you test if it also works for you, with >> respect to this problem and #726 (23.0.60; OSX: Complete OS crash)? > Your patch fixes both issues for me. Thank you very much! Thanks for testing. Maintainers, which branch should I install this patch to? Bug#726 is marked as important. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'src/s/darwin.h' *** src/s/darwin.h 2010-03-30 04:55:59 +0000 --- src/s/darwin.h 2010-04-05 03:21:53 +0000 *************** *** 90,95 **** --- 90,113 ---- */ #define HAVE_PTYS + /* Run only once. We need a `for'-loop because the code uses + `continue'. */ + #define PTY_ITERATION for (i = 0; i < 1; i++) + #define PTY_NAME_SPRINTF /* none */ + #define PTY_TTY_NAME_SPRINTF /* none */ + /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. + But we don't have to block SIGCHLD because it is blocked in the + implementation of grantpt. */ + #define PTY_OPEN \ + do \ + { \ + int slave; \ + if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) \ + fd = -1; \ + else \ + emacs_close (slave); \ + } \ + while (0) /** * PTYs only work correctly on Darwin 7 or higher. So make the From unknown Sat Jun 21 12:14:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2010 13:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: YAMAMOTO Mitsuharu Cc: Chong Yidong , 5819@debbugs.gnu.org, Markus Triska Received: via spool by 5819-submit@debbugs.gnu.org id=B5819.127081890826661 (code B ref 5819); Fri, 09 Apr 2010 13:16:02 +0000 Received: (at 5819) by debbugs.gnu.org; 9 Apr 2010 13:15:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0E39-0006vy-W6 for submit@debbugs.gnu.org; Fri, 09 Apr 2010 09:15:08 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0E36-0006vN-2f for 5819@debbugs.gnu.org; Fri, 09 Apr 2010 09:15:05 -0400 Received: from ceviche.home (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o39DEmPO016540; Fri, 9 Apr 2010 09:14:49 -0400 Received: by ceviche.home (Postfix, from userid 20848) id BAF50B408D; Fri, 9 Apr 2010 09:14:48 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Fri, 09 Apr 2010 09:14:48 -0400 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Fri, 09 Apr 2010 09:48:29 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3509=0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>> The following simpler one seems to work for me on 10.4 (but not on >>> 10.3, again). Could you test if it also works for you, with >>> respect to this problem and #726 (23.0.60; OSX: Complete OS crash)? >> Your patch fixes both issues for me. Thank you very much! > Maintainers, which branch should I install this patch to? Bug#726 is > marked as important. I'd say emacs-23, Thank you, Stefan From unknown Sat Jun 21 12:14:12 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Markus Triska Subject: bug#5819 closed by YAMAMOTO Mitsuharu (Re: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process) Message-ID: References: X-Gnu-PR-Message: they-closed 5819 X-Gnu-PR-Package: emacs Reply-To: 5819@debbugs.gnu.org Date: Sat, 10 Apr 2010 10:35:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1270895701-28202-1" This is a multi-part message in MIME format... ------------=_1270895701-28202-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5819: 23.1.93; OSX: start-process sometimes returns an unready process It has been closed by YAMAMOTO Mitsuharu . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact YAMAMOTO Mitsuharu by replying to this email. --=20 5819: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5819 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1270895701-28202-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5819-done) by debbugs.gnu.org; 10 Apr 2010 10:34:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0Y0y-0007KW-1L for submit@debbugs.gnu.org; Sat, 10 Apr 2010 06:34:12 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0Y0v-0007KO-El; Sat, 10 Apr 2010 06:34:10 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B5D8DC0557; Sat, 10 Apr 2010 19:34:03 +0900 (JST) Date: Sat, 10 Apr 2010 19:34:03 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: 5819-done@debbugs.gnu.org, 726-done@debbugs.gnu.org Subject: Re: bug#5819: 23.1.93; OSX: start-process sometimes returns an unready process In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5819-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >>>>> On Fri, 09 Apr 2010 09:14:48 -0400, Stefan Monnier said: >>>> The following simpler one seems to work for me on 10.4 (but not >>>> on 10.3, again). Could you test if it also works for you, with >>>> respect to this problem and #726 (23.0.60; OSX: Complete OS >>>> crash)? >>> Your patch fixes both issues for me. Thank you very much! >> Maintainers, which branch should I install this patch to? Bug#726 >> is marked as important. > I'd say emacs-23, Thank you, Done. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp ------------=_1270895701-28202-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2010 17:55:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOcB-00064z-1n for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:35 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOc9-00064u-60 for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:34 -0400 Received: from lists.gnu.org ([199.232.76.165]:57667) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NxOc4-0006Ej-IZ for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:55:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxOc4-0003Zm-2Z for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:28 -0400 Received: from [140.186.70.92] (port=33714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxOc2-0003Yp-Tc for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxOby-0004iy-Fp for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:26 -0400 Received: from mail.gmx.net ([213.165.64.20]:60042) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NxOby-0004i9-3L for bug-gnu-emacs@gnu.org; Thu, 01 Apr 2010 13:55:22 -0400 Received: (qmail invoked by alias); 01 Apr 2010 17:55:17 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-imac.local) [62.178.240.212] by mail.gmx.net (mp057) with SMTP; 01 Apr 2010 19:55:17 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX19hEW9IaM1h6dVW+amzGfN+iO3O2/QGmjs7c9Ssn8 chdhUVWYThgJBs Received: by mt-imac.local (Postfix, from userid 501) id 56C855601F7; Thu, 1 Apr 2010 19:55:11 +0200 (CEST) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 23.1.93; OSX: start-process sometimes returns an unready process Date: Thu, 01 Apr 2010 19:55:11 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52000000000000002 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Let testprocess.el consist of the following form: (let (p (n 1)) (while t (message "iteration %s" n) (setq n (1+ n) p (start-process "bc" nil "bc")) (process-send-string p "test") (delete-process p))) On OSX 10.4, when I do "$ emacs -Q --script testprocess.el", I get: $ emacs -Q --script testprocess.el iteration 1 iteration 2 iteration 3 writing to process: Input/output error, bc and sometimes, particularly under high system load: $ emacs -Q --script testprocess.el iteration 1 iteration 2 Process bc not running The number of iterations often varies over invocations. In GNU Emacs 23.1.93.1 (i386-apple-darwin8.11.1) of 2010-04-01 on mt-computer.local configured using `configure '--without-x'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t ------------=_1270895701-28202-1--