all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: holger@pirk.name, 40023@debbugs.gnu.org
Subject: bug#40023: 26.3; Emacs crashes when creating process if many file handles are in use (e.g., when using ccls)
Date: Wed, 11 Mar 2020 18:17:02 +0200	[thread overview]
Message-ID: <83fteeamtd.fsf@gnu.org> (raw)
In-Reply-To: <m2v9navrep.fsf@gmail.com> (message from Robert Pluim on Wed, 11 Mar 2020 16:32:14 +0100)

> From: Robert Pluim <rpluim@gmail.com>
> Date: Wed, 11 Mar 2020 16:32:14 +0100
> Cc: 40023@debbugs.gnu.org
> 
> >>>>> On Wed, 11 Mar 2020 13:50:22 +0000, Holger Pirk <holger@pirk.name> said:
> 
>     Holger> I have spent some time digging around the code and couldn't quite figure
>     Holger> out the logic behind the `fd < FD_SETSIZE`-assert. I suspect the CCLS
>     Holger> opens files without going through emacs' infrastructure which leads to
>     Holger> high file descriptors which emacs cannot handle. I would say that CCLS
>     Holger> is, in part, to blame but emacs shouldn't simply crash.
> 
> Emacs is limited by the limits of select, which supports a maximum of
> FD_SETSIZE file descriptors, which on macOS is 1024
> 
> At least on macOS, itʼs possible to increase that value to eg 8192 by
> setting FD_SETSIZE, which might alleviate this, but then you'd
> probably run into the 'ulimit -n' maximum, so you'd have to remember
> to increase that.

Wasn't this fixed lately by Yamamoto-san?





  reply	other threads:[~2020-03-11 16:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11 13:50 bug#40023: 26.3; Emacs crashes when creating process if many file handles are in use (e.g., when using ccls) Holger Pirk
2020-03-11 15:32 ` Robert Pluim
2020-03-11 16:17   ` Eli Zaretskii [this message]
2020-03-11 16:45     ` Holger Pirk
2020-03-12  7:27       ` Robert Pluim
2020-03-12  7:26     ` Robert Pluim
2020-03-12 15:11       ` Eli Zaretskii
2020-03-12 15:24         ` Robert Pluim
2020-03-12 15:50           ` Eli Zaretskii
2020-03-12 16:46             ` Robert Pluim
2020-03-19 10:41               ` Robert Pluim
2020-03-19 14:36                 ` Eli Zaretskii
2020-04-11 18:15 ` bug#40023: 26.3 " Mattias Engdegård
2020-04-11 19:02   ` Eli Zaretskii
2020-04-12 10:19   ` Michael Albinus
2020-04-14 13:58     ` Robert Pluim
2020-04-14 16:02       ` Mattias Engdegård
2020-04-14 16:14         ` Robert Pluim
2020-04-14 16:23           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fteeamtd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=40023@debbugs.gnu.org \
    --cc=holger@pirk.name \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.