Skip to content

clangd 19 crashes on analyzing my code #112484

@grapland0

Description

@grapland0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdcrashPrefer [crash-on-valid] or [crash-on-invalid]duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions