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

    <tr>
        <th>Summary</th>
        <td>
            clangd 19 crashes on analyzing my code
        </td>
    </tr>

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

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

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

<pre>
    att. via vscode clangd extension and clangd 19. clangd 18 has no issue.

log and stack trace:
```

I[06:06:18.395] Built preamble of size 63096428 for file /workspaces/moana-cxx/moana/data_sources/iex/pcap_to_stream.cpp version 13 in 3.61 seconds
I[06:06:18.395] --> workspace/semanticTokens/refresh(2)
I[06:06:18.395] <-- reply(2)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
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  libLLVM.so.19.1 0x00007e01a4a3d12f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 63
1  libLLVM.so.19.1 0x00007e01a4a3ae39 llvm::sys::RunSignalHandlers() + 89
2  libLLVM.so.19.1 0x00007e01a4a3d880
3  libc.so.6 0x00007e01a2c9e250
4  libLLVM.so.19.1 0x00007e01a49da808 llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int) + 152
5  clangd-19       0x00005b3f564c5b36
6  clangd-19 0x00005b3f564c4018
7  clangd-19       0x00005b3f56ae368f
8  clangd-19 0x00005b3f5624b686
9  clangd-19       0x00005b3f562e7479
10 clangd-19       0x00005b3f562e6eda
11 clangd-19 0x00005b3f562e3680
12 clangd-19       0x00005b3f562e31db
13 clangd-19 0x00005b3f5644c5d1
14 libc.so.6       0x00007e01a2cfae2e
15 libc.so.6       0x00007e01a2d8ca4c
Signalled during AST worker action: Build AST
  Filename: /workspaces/moana-cxx/moana/data_sources/iex/pcap_to_stream.cpp
 Directory: /cmake-build/Release
  Command Line: /usr/lib/llvm-19/bin/clang++-19 --driver-mode=g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_CONTAINER_DYN_LINK -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_COROUTINES_NO_DEPRECATION_WARNING -DBOOST_COROUTINE_DYN_LINK -DBOOST_COROUTINE_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_GRAPH_DYN_LINK -DBOOST_GRAPH_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_JSON_DYN_LINK -DBOOST_JSON_NO_LIB -DBOOST_LOG_DYN_LINK -DBOOST_LOG_NO_LIB -DBOOST_LOG_SETUP_DYN_LINK -DBOOST_LOG_SETUP_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PYTHON_DYN_LINK -DBOOST_PYTHON_NO_LIB -DBOOST_STACKTRACE_BACKTRACE_DYN_LINK -DBOOST_STACKTRACE_BACKTRACE_NO_LIB -DBOOST_STACKTRACE_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_TEST_DYN_LINK -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -I/workspaces/moana-cxx/external/twsapi -I/root/miniforge3/envs/moana/include/python3.12 -I/workspaces/moana-cxx/moana -I/cmake-build/Release -I/cmake-build/Release/moana -isystem /root/miniforge3/envs/moana/include -O3 -DNDEBUG -ggdb3 -Wall -fno-omit-frame-pointer -O2 -std=c++23 -flto=thin -o CMakeFiles/unit_test_container.dir/moana/data_sources/iex/pcap_to_stream.cpp.o -c -std=gnu++2b -resource-dir=/usr/lib/llvm-19/lib/clang/19 -- /workspaces/moana-cxx/moana/data_sources/iex/pcap_to_stream.cpp
  Version: 13
[Error - 6:06:18 AM] 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.

```
clangd version:
```
root@a55e315e107a:/workspaces/moana-cxx# clangd-19 --version
Ubuntu clangd version 19.1.1 (1ubuntu1)
Features: linux+grpc
Platform: x86_64-pc-linux-gnu
```

source code mentioned is attached:
[pcap_to_stream.cpp.txt](https://github.com/user-attachments/files/17390303/pcap_to_stream.cpp.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0WN1y4joSfhpx02XKln9iX3DB74Q9BFLAnLOzN5RsN6CNLVGSTMI8_ZZskzBAMnW2dlMpMOqvv251y-1uM635TiD2SDgg4ajDKrOXqrdT7FAwkbudVOanHjOmC0fO4KgzmSNkBRO7HPDNoNBcCmAiPy96Sff9MoY90yAkcK0r7BJ3RNx-81nIXa2lDctewCiWIfFbGYnc9v9CYUrCgRsRv19_eHHXT0ISjmBQ8cLAQSEr0wJBbkHznwiR7yZRQGPYSgVbXiAQOnmV6kUfWIaa0EkpmWBO9vZ2viZ0kjPDNlpWqoFwtMJDxg4bIzfaWCPd7HCAI6p6354PXIDfjTzQmEmR66-ddRzij-HdDUInGksmDM_W8gWFtalwq1DvCY0pocnXdMQfOg4oPBSnX_DPs3F_NQZdpSU3wCCtdhYllQEjYW_MQdtg0wmhkx03-yrtZrIkdFIUx_OXc1Dy35gZGwabPetbnTEusqLKEcweIVNM7yFl2UudwTbDqzqneVUe4JWbvawM6FOZygIEK1EDoTEKXSmEk6xgz44ItcUGxH-islE9yUrBc3_9CFKBRlMbRHHkSooShYEjU0Aidzb782mz-vE0WMym_xovN1aFRK7d6UFyUW-ZGxub8_lyAQqeWr2ull0v6Xrgvrmu6z6g67GA-blHt7VLVsXv65NuLp4VF6be3bo-sDT-ACn2upHNESE0InQIXFirQOgAIr-x7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