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 #123 received at 22814 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
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 16:03:29 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

> 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.

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.

Best regards, Michael.




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.