all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 40023@debbugs.gnu.org, holger@pirk.name
Subject: bug#40023: 26.3; Emacs crashes when creating process if many file handles are in use (e.g., when using ccls)
Date: Thu, 19 Mar 2020 11:41:37 +0100	[thread overview]
Message-ID: <m2zhcc8w4e.fsf@gmail.com> (raw)
In-Reply-To: <865E1017-DFA9-495D-BCDA-70B46FE09A27@pirk.name>

>>>>> On Thu, 12 Mar 2020 17:46:58 +0100, Robert Pluim <rpluim@gmail.com> said:
    >>> If someone has an 'emacs -Q' testcase I can look at it. Soon we will
    >>> all be spending lots of time at home here :-(

    Eli> We could simply install the proposed workaround on the emacs-27 branch
    Eli> for now, I think.

So I installed lsp-mode and ccls, added lsp to c-mode-hook, visited
emacs/src/font.c and then said yes when it asked me if I wanted to
watch all the files (there are ~6500). I then recompiled emacs using
M-x compile, and saw no crash.

This is with emacs-master. I checked with emacs-26 and saw no crash. I
did look in *lsp-log*, and saw a bunch of messages saying:

Failed to create a watch for File watching not possible, no file descriptor left: 975: message

(this is with 'ulimit -n 4096')

so I think this is very much dependent on which language server youʼre
using. Note also that itʼs watching directories, not files, I had to
create a bunch of extra directories to get that message.

I have:

    ccls --version
    ccls version 8.0.0 (tags/RELEASE_800/final)

Robert





  reply	other threads:[~2020-03-19 10:41 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
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 [this message]
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=m2zhcc8w4e.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=40023@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=holger@pirk.name \
    /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.