You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clangd crashes after indexing some files.
I have a VScode with clangd plugin and clangd 16.
VScode uses a docker container plugin, build (compiler: g++ is used, gnu++14) is done inside container.
compile_commands.json is provided (it's seen in logs clangd accepts it).
What's important: when remove all other files and leave one which caused an error - nothing is produced on a disk (no *.idx files), and no error occurs. When I run clangd manually with --check - still no crush.
Running with option (--clang-tidy=0) gives no result - the crash remains.
Sorry, but I can't provide the code. It's under NDA.
Logs are attached (but truncated, because it often sends a file inside a json). crash_report.log
Output of clangd --version:
clangd version 16.0.2 (https://github.com/llvm/llvm-project 18ddebe1a1a9bde349441631365f0472e9693520)
Features: linux+grpc
Platform: x86_64-unknown-linux-gnu
First tried on 15.0.6 and 15.0.7 - crash remains in all versions.
Editor/LSP plugin:
VSCode + plugin clangd
Operating system:
Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
If you can get your hands on a version of clangd with assertions enabled, it might be interesting to see if this assertion is firing before the crash.
Regardless, it may be challenging to track this down without a reproducer. If you can try reducing your file to a minimal reproducer that no longer contains proprietary code, that would be helpful.
This looks like it's probably the same crash that was reported in llvm/llvm-project#76667, and should therefore be fixed by the hardening being pursued in that issue.
clangd crashes after indexing some files.
I have a VScode with clangd plugin and clangd 16.
VScode uses a docker container plugin, build (compiler: g++ is used, gnu++14) is done inside container.
compile_commands.json is provided (it's seen in logs clangd accepts it).
What's important: when remove all other files and leave one which caused an error - nothing is produced on a disk (no *.idx files), and no error occurs. When I run clangd manually with --check - still no crush.
Running with option (--clang-tidy=0) gives no result - the crash remains.
Sorry, but I can't provide the code. It's under NDA.
Logs are attached (but truncated, because it often sends a file inside a json).
crash_report.log
Backtrace:
System information
Output of
clangd --version
:clangd version 16.0.2 (https://github.com/llvm/llvm-project 18ddebe1a1a9bde349441631365f0472e9693520)
Features: linux+grpc
Platform: x86_64-unknown-linux-gnu
First tried on 15.0.6 and 15.0.7 - crash remains in all versions.
Editor/LSP plugin:
VSCode + plugin clangd
Operating system:
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: