| Issue |
180403
|
| Summary |
[clangd] SIGSEGV when replaying specific LSP sequence (affiliated with reprodution scripts)
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
T55AMD
|
The crash is triggered by a specific LSP message sequence.(Geranted by a Fuzzer)
Environment
- clangd commit: aff5afc48df63615053b2432da198a4932435c3f
- OS: Ubuntu 24.04
- Build: Release
- clangd version 23.0.0git (https://github.com/llvm/llvm-project.git aff5afc48df63615053b2432da198a4932435c3f)
Steps to Reproduce
```bash
cmake -G Ninja -S llvm -B build \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"
ninja -C build clangd
python3 replay.py ./build/bin/clangd . 10 1.0
```
**Expected**
- clangd should process LSP messages normally.
**Actual**
- clangd crashes with SIGSEGV (signal 11) in all runs.
**Reproducer Package**
below
[clangd_bug_reproducer.zip](https://github.com/user-attachments/files/25160715/clangd_bug_reproducer.zip)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs