<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/98811>98811</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clangd Crashed
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          akamiru
      </td>
    </tr>
</table>

<pre>
    Clangd told me to post this here.

 /usr/lib/llvm-17/bin/clang++-17 --driver-mode=g++ -I/home/christoph/nsuite/include -I/home/christoph/nsuite/lc0/src -I/home/christoph/nsuite/lc0/build/release/lc0.p -O3 -DNDEBUG -std=gnu++23 --cuda-gpu-arch=sm_89 --cuda-path=/usr/lib/cuda -march=znver4 -mtune=znver4 -Wfatal-errors -fverbose-asm -masm=intel -mno-vzeroupper -Wno-unknown-cuda-version -x cuda -c -o CMakeFiles/ntrain.dir/src/train.cu.o -resource-dir=/home/christoph/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/lib/clang/18 -- /home/christoph/nsuite/src/train.cu
    I[14:57:00.835] --> window/workDoneProgress/create(0)
    I[14:57:00.835] Enqueueing 8 commands for indexing
    I[14:57:00.835] <-- reply(0)
 I[14:57:00.835] --> $/progress
    I[14:57:00.835] --> $/progress
 I[14:57:00.836] --> textDocument/clangd.fileStatus
    I[14:57:00.838] <-- textDocument/documentSymbol(1)
    I[14:57:00.838] <-- textDocument/codeAction(2)
    I[14:57:00.842] <-- textDocument/documentLink(3)
    I[14:57:00.954] --> $/progress
 I[14:57:00.954] --> $/progress
    I[14:57:01.038] <-- textDocument/foldingRange(4)
    I[14:57:01.039] --> reply:textDocument/foldingRange(4) 0 ms
    I[14:57:01.139] <-- textDocument/documentSymbol(5)
    I[14:57:01.354] <-- textDocument/semanticTokens/full(6)
    I[14:57:01.647] Built preamble of size 15363984 for file /home/christoph/nsuite/src/train.cu version 1 in 0.81 seconds
    I[14:57:01.647] --> workspace/semanticTokens/refresh(1)
 I[14:57:01.647] Indexing c++23 standard library in the context of /home/christoph/nsuite/src/train.cu
    I[14:57:01.648] <-- reply(1)
 PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
    Stack dump:
    0.  <eof> parser at end of file
    1.  /home/christoph/nsuite/src/train.cu:233:3: instantiating function definition 'Trainer<5376, 215040>::~Trainer'
 Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
    0 clangd    0x00000000004f680b
    1  clangd    0x00000000004f464e
    2 clangd    0x00000000004f7196
    3  libc.so.6 0x00007f81ded63580
    4 clangd    0x0000000000f993f0
    5  clangd    0x0000000001073253
    6 clangd    0x0000000000c315e2
    7  clangd    0x0000000000c42921
    8 clangd    0x0000000000c31573
    9  clangd    0x0000000000c738b8
    10 clangd    0x0000000000c76263
    11 clangd    0x0000000000d2aaf7
    12 clangd    0x0000000000d2b1bb
    13 clangd    0x0000000002299efd
    14 clangd    0x0000000002295cce
    15 clangd    0x0000000001ee8cab
    16 clangd    0x00000000014acdef
    17 clangd    0x000000000152e9b1
    18 clangd    0x000000000152e44b
    19 clangd    0x000000000152adf3
    20 clangd    0x0000000001529860
    21 clangd    0x00000000016a22a1
    22 libc.so.6 0x00007f81dedafdbb
    23 libc.so.6 0x00007f81dee319f8
 Signalled during AST worker action: Build AST
      Filename: /home/christoph/nsuite/src/train.cu
      Directory: /home/christoph/nsuite/build/release
      Command Line: /usr/lib/llvm-17/bin/clang++-17 --driver-mode=g++ -I/home/christoph/nsuite/include -I/home/christoph/nsuite/lc0/src -I/home/christoph/nsuite/lc0/build/release/lc0.p -O3 -DNDEBUG -std=gnu++23 --cuda-gpu-arch=sm_89 --cuda-path=/usr/lib/cuda -march=znver4 -mtune=znver4 -Wfatal-errors -fverbose-asm -masm=intel -mno-vzeroupper -Wno-unknown-cuda-version -x cuda -c -o CMakeFiles/ntrain.dir/src/train.cu.o -resource-dir=/home/christoph/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/lib/clang/18 -- /home/christoph/nsuite/src/train.cu
      Version: 1
    [Error - 2:57:01 PM] The Clang Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
    [Error - 2:57:01 PM] Request textDocument/documentSymbol failed.
    [object Object]
    [Error - 2:57:01 PM] Request textDocument/codeAction failed.
    [object Object]
    [Error - 2:57:01 PM] Request textDocument/documentLink failed.
    [object Object]
    [Error - 2:57:01 PM] Request textDocument/documentSymbol failed.
    [object Object]
    [Error - 2:57:01 PM] Request textDocument/semanticTokens/full failed.
    [object Object]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWE9z2zjy_TTwpYssEuDfgw6yZf1-qXI2qSgzU7uXFEg0JaxJQAOAcpzDfvYtkJJFZ0zZmd3KYWtSFVkCH143XjcaDXJr5VYhLkh6TdLVFe_dTpsFv-edNP1VpcXj4qblaivA6VZAh-A07LV14HbSwg4NhiRakWg5fgKh694aQtetrPxne-iCOCd0XUlF6Lr2ZIReE3odxDkEgTDygCbotEDCVsdHELwjdL3THfopOyOt0_sdoWtle-n8oFR12wt8HdjWEaFra-q3QqtetoLQtcEWuT2Oh3sIPjAIVn9b3V7_8n8QWCe8u6ofHaYMgqDuBQ-2-z7gpt4RtrLdl6I8je-582PfyeMfQdAdJ3xTBzQJBJ3rFU5-_9Zwx9sAjdHGQtAc0FTaYsBt5yfbjrCVVA5bCDqlg8M3NLrf79FA8JvSQa_ulX5Qox8HNFZqBcFXGI3XEGi4ec_vcS1btF4QZ7hUoZBmVI7Q9ThS96GGwKDVvakx8IBhRS-IGh5srQUGFs0BPY_gjhO6_sUOv7atrni7cdrwLZ7S5GCDYQ5-dai8k_bEMmSNGMJuHW9bQtdxEcYhO2WU-PL0-yjsmGfruIAggFcC_3yNx0QGgHckvY4TwpZp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