From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") Date: Thu, 11 Aug 2011 06:34:48 -0400 Message-ID: References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313058958 27505 80.91.229.12 (11 Aug 2011 10:35:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2011 10:35:58 +0000 (UTC) Cc: 9264@debbugs.gnu.org To: William Xu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 12:35:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QrSc7-0002hF-Ro for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 12:35:47 +0200 Original-Received: from localhost ([::1]:53949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrSc7-0001dB-CC for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 06:35:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrSc5-0001d5-99 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 06:35:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrSc4-0003Bq-Dg for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 06:35:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrSc4-0003Bk-At for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 06:35:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QrSdK-0000JU-Dk; Thu, 11 Aug 2011 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2011 10:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9264 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9264-submit@debbugs.gnu.org id=B9264.13130589711140 (code B ref 9264); Thu, 11 Aug 2011 10:37:02 +0000 Original-Received: (at 9264) by debbugs.gnu.org; 11 Aug 2011 10:36:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrScU-0000IK-Om for submit@debbugs.gnu.org; Thu, 11 Aug 2011 06:36:11 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrScR-0000IC-MK for 9264@debbugs.gnu.org; Thu, 11 Aug 2011 06:36:08 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QrSbA-0002nX-LR; Thu, 11 Aug 2011 06:34:48 -0400 In-reply-to: <21glr54se4n8.fsf@gmail.com> (message from William Xu on Thu, 11 Aug 2011 16:25:31 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 11 Aug 2011 06:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50007 Archived-At: > From: William Xu > Date: Thu, 11 Aug 2011 16:25:31 +0800 > > if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) > { > _close (phandles[0]); > _close (phandles[1]); > rc = -1; > } > > If the latter, it sounds like we are not closing the file handles > somewhere. > > I put a printf after "rc = -1". I can see lots of logs from there. > _pipe never returns a negative value. We are close. This probably means that we are not closing file descriptors somewhere. When these printf's about rc == -1 start to appear, can you look at all the elements of the fd_info[] array (there are 64 of them), and see which flags are set on most of the elements, and whether or not the `cp' member is non-NULL? This information might give a clue as to what functionality is stealing the file descriptors and not releasing them. Thanks.