touch foo.cpp compile_flags.txt
mkfifo clangd_in clangd_out
- Have three terminal windows open
- In first do
tail -f clangd_out
, to stop clangd from blocking. - In second do
/path/to/clangd <clangd_in 1>clangd_out
- In third do
cat data > clangd_in
profitTHE HORROR!
-
-
Save bstaletic/7881bb3b40d5d0149f936f6857a7fa7a to your computer and use it in GitHub Desktop.
Clangd segfault investigation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content-Length: 1232 | |
{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["plaintext","markdown"]},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"documentSymbol":{"hierarchicalDocumentSymbolSupport":false,"labelSupport":false,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"hover":{"contentFormat":["plaintext","markdown"]},"signatureHelp":{"signatureInformation":{"documentationFormat":["plaintext","markdown"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true}},"workspace":{"applyEdit":true,"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"workspaceEdit":{"documentChanges":true}}},"initializationOptions":{},"processId":5498,"rootPath":"/home/bstaletic/work/test","rootUri":"file:///home/bstaletic/work/test"}}Content-Length: 52 | |
{"jsonrpc":"2.0","method":"initialized","params":{}}Content-Length: 169 | |
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"\n","uri":"file:///home/bstaletic/work/test/foo.cpp","version":1}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment