Closed FalcoGer closed 1 month ago
@llvm/issue-subscribers-clangd
Author: None (FalcoGer)
I found the crash report. _usr_lib_llvm-19_bin_clangd.1000.crash.zip
I extracted the core dump from the crash report. CoreDump.zip
Updated to clang 20
clangd --version
Ubuntu clangd version 20.0.0 (++20240729081728+3a2ef3a63487-1~exp1~20240729081847.316)
Features: linux+grpc
Platform: x86_64-pc-linux-gnu
It stopped crashing, but now clangd takes 100% CPU and doesn't react to SIGTERM, it also stops updating the diagnostics. I have also noticed that it doesn't build the index anymore in ~/.cache/clangd/index/
I switched slow check filter from none to loose and it stopped hanging. I guess some checks really are abysmally slow. crash seems to be resolved in clang 20.
I switched slow check filter from none to loose and it stopped hanging. I guess some checks really are abysmally slow.
If by chance you're able to narrow down which check is the hanging one, it would be worth filing a separate bug report for further investigation.
@HighCommander4 is there a list of which commands are considered slow or not measured yet?
I found out that Loose also hangs, it's only on strict that it is fine.
@HighCommander4 is there a list of which commands are considered slow or not measured yet?
Yep, see https://github.com/clangd/clangd/issues/1727#issuecomment-2263709216
@HighCommander4
I switched all the checks on individually.
When I add boost-*
with FastCheckFilter: None
it hangs. But when I add the two documented boost checks (boost-use-ranges and boost-use-to-string) individually, it is fine. It seems like there is an undocumented check that is causing the issue and I don't know what it is.
When I add
boost-*
withFastCheckFilter: None
it hangs. But when I add the two documented boost checks (boost-use-ranges and boost-use-to-string) individually, it is fine.
That is very odd. I don't see any other boost-
checks in the source.
I am using clangd with coc in nvim. I find that clangd crashes after a few seconds of seemingly working normally. I deleted
~/.cache/clangd/
but it didn't help.Even when not including any headers and working on a simple file, it will crash.
This bug started to occur a few days ago, but I had not fired up nvim for c++ for a few weeks, so I don't know when it started.
To make it crash in this particular case, I opened a file
delete.cpp
and simply typedand added and removed characters before it crashed shortly thereafter.
Logs
System information
Output of
clangd --version
:Editor/LSP plugin:
neovim with coc.nvim.
coc configuration to generate the above log was
but also crashes when using a more normal variant
My clangd configuration file
~/.config/clangd/config.yaml
is thisOperating system:
Ubuntu Mate 24.04 (noble), x86_64