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#22814: 25.0.91; Emacs runs out of file descriptors on OS X Date: Wed, 02 Mar 2016 18:01:51 +0200 Message-ID: <831t7s7tsg.fsf@gnu.org> References: <87twkupoq9.fsf@gmx.de> <83d1ricxyp.fsf@gnu.org> <87lh66nv22.fsf@gmx.de> <83lh66aru8.fsf@gnu.org> <878u26neeo.fsf@gmx.de> <83io1aaqty.fsf@gnu.org> <87r3fylyfm.fsf@gmx.de> <838u25c3z4.fsf@gnu.org> <87lh637r1w.fsf@gmx.de> <83r3fv8pz7.fsf@gnu.org> <87r3fsvs5a.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456934601 7688 80.91.229.3 (2 Mar 2016 16:03:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2016 16:03:21 +0000 (UTC) Cc: 22814@debbugs.gnu.org, andlind@gmail.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 17:03:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ab9Ez-0006d5-SG for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2016 17:03:10 +0100 Original-Received: from localhost ([::1]:57265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9Ez-0001xN-FC for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2016 11:03:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9Ev-0001w2-9l for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2016 11:03:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab9Es-0007bX-20 for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2016 11:03:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9Er-0007bR-VJ for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2016 11:03:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1ab9Er-0007FU-Nb for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2016 11:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Mar 2016 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22814-submit@debbugs.gnu.org id=B22814.145693453327808 (code B ref 22814); Wed, 02 Mar 2016 16:03:01 +0000 Original-Received: (at 22814) by debbugs.gnu.org; 2 Mar 2016 16:02:13 +0000 Original-Received: from localhost ([127.0.0.1]:57952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ab9E4-0007ES-Ub for submit@debbugs.gnu.org; Wed, 02 Mar 2016 11:02:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47232) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ab9E0-0007EC-EF for 22814@debbugs.gnu.org; Wed, 02 Mar 2016 11:02:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab9Ds-0006zZ-4k for 22814@debbugs.gnu.org; Wed, 02 Mar 2016 11:02:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9Ds-0006zU-2H; Wed, 02 Mar 2016 11:02:00 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3418 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ab9Dr-0003yP-2F; Wed, 02 Mar 2016 11:01:59 -0500 In-reply-to: <87r3fsvs5a.fsf@gmx.de> (message from Michael Albinus on Wed, 02 Mar 2016 16:03:29 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114290 Archived-At: > From: Michael Albinus > Cc: andlind@gmail.com, 22814@debbugs.gnu.org > Date: Wed, 02 Mar 2016 16:03:29 +0100 > > > Crystal ball says something went wrong inside read_doc_string that was > > called just before the call to 'error'. That function calls > > emacs_open, and you have run out file descriptors. Can you see what's > > going on inside that call? (That would require re-running the test > > with a suitably conditioned breakpoint.) > > Indeed, Emacs tries to read the docstring of the just fetched > function. And it tries to open etc/DOC for this, which fails due to the > missing file descriptor availability. > > I don't believe we need to handle this case; if Emacs is running out of > file descriptors, anything could happen. The only part that might be worth improving is the error message: it's a far cry from what really went wrong. If you can find a way of making it say something about "too many open files", that'd be all the improvement we can hope for. > I'm testing a patch for kqueue.c, which limits the open file > notification descriptors, as proposed by Anders. According to my tests > this is not necessary for inotify.c (contrary to what I've assumed). > Will commit the patch once the current emacs-25 commits are merged to > the master. Thanks.