Skip to content

clangd 19 crashes on analyzing my code #112484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
grapland0 opened this issue Oct 16, 2024 · 3 comments
Closed

clangd 19 crashes on analyzing my code #112484

grapland0 opened this issue Oct 16, 2024 · 3 comments
Labels
clangd crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate

Comments

@grapland0
Copy link

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

@EugeneZelenko EugeneZelenko added clangd crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels Oct 16, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 16, 2024

@llvm/issue-subscribers-clangd

Author: grapland (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] --&gt; workspace/semanticTokens/refresh(2)
I[06:06:18.395] &lt;-- 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&amp;, 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

@HighCommander4
Copy link
Collaborator

This has been fixed on trunk and for 19.1.2.

@HighCommander4
Copy link
Collaborator

Duplicate of #109367.

@HighCommander4 HighCommander4 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@EugeneZelenko EugeneZelenko added the duplicate Resolved as duplicate label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clangd crash Prefer [crash-on-valid] or [crash-on-invalid] duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

4 participants