GNU bug report logs - #22814
25.0.91; Emacs runs out of file descriptors on OS X

Previous Next

Package: emacs;

Reported by: David Caldwell <david <at> porkrind.org>

Date: Fri, 26 Feb 2016 06:19:02 UTC

Severity: normal

Found in version 25.0.91

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #126 received at 22814 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 22814 <at> debbugs.gnu.org, andlind <at> gmail.com
Subject: Re: bug#22814: 25.0.91; Emacs runs out of file descriptors on OS X
Date: Wed, 02 Mar 2016 18:01:51 +0200
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: andlind <at> gmail.com,  22814 <at> 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.




This bug report was last modified 8 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.