Description of problem: This crash comes while using Qt-Creator with clangd. qt-creator: 8.0.1-8.fc37 clang-tools-extra: 15.0.6-1.fc37 Config: - Use clangd="true" - Path to executable="/usr/bin/clangd" - Enable background indexing="true" - Insert header files on completion="false" - Worker thread count="Automatic" - Document update threshold="2000 ms" - Ignore files greater then 1024 KB="false" - Diagnostic configuration="Build-system warnings" Version-Release number of selected component: clang-tools-extra-15.0.6-1.fc37 Additional info: reporter: libreport-2.17.4 backtrace_rating: 4 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.qt\x2dproject.qtcreator-849d898bb0304ffbb9d97376d32eaeb8.scope cmdline: /usr/bin/clangd --background-index --header-insertion=never --limit-results=0 --limit-references=0 --clang-tidy=0 --compile-commands-dir=/home/nickbnf/Workspaces/Qt-Creator/KdeBookKeeper/build/build-KdeBookKeeper-Desktop-Debug/.qtc_clangd --log=verbose --pretty --use-dirty-headers crash_function: std::__glibcxx_assert_fail dso_list: /usr/bin/clangd clang-tools-extra-15.0.6-1.fc37.x86_64 (Fedora Project) 1671015891 executable: /usr/bin/clangd journald_cursor: s=6399d1196ddd4d6292fbca7db6cbf6a4;i=efda8d;b=6caa5e0a0e4a4de0951fc7509abca32e;m=70f17e6f2;t=5f0485b645e33;x=bc4ec16ec3f64b96 kernel: 6.0.12-300.fc37.x86_64 rootdir: / runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 0 (5 frames) #4 std::__glibcxx_assert_fail at ../../../../../libstdc++-v3/src/c++11/debug.cc:60 #5 clang::syntax::TokenBuffer::spelledForExpandedToken at /usr/src/debug/clang-15.0.6-1.fc37.x86_64/lib/Tooling/Syntax/Tokens.cpp:357 #6 clang::syntax::TokenBuffer::spelledForExpanded at /usr/src/debug/clang-15.0.6-1.fc37.x86_64/lib/Tooling/Syntax/Tokens.cpp:466 #7 clang::clangd::(anonymous namespace)::DumpVisitor::getRange<clang::Decl*> at /builddir/build/BUILD/clang-tools-extra-15.0.6.src/clangd/DumpAST.cpp:92 #8 clang::clangd::(anonymous namespace)::DumpVisitor::traverseNodePre<clang::Decl*> at /builddir/build/BUILD/clang-tools-extra-15.0.6.src/clangd/DumpAST.cpp:71
Created attachment 1934006 [details] File: backtrace
Created attachment 1934007 [details] File: core_backtrace
Created attachment 1934008 [details] File: cpuinfo
Created attachment 1934009 [details] File: environ
Created attachment 1934010 [details] File: limits
Created attachment 1934011 [details] File: maps
Created attachment 1934012 [details] File: mountinfo
Created attachment 1934013 [details] File: open_fds
Created attachment 1934014 [details] File: proc_pid_status
It happened almost each 20-30 seconds and often clangd is then unable to recover and the whole syntax parsing/highlighting functionality of a QT-Creator remains dead untill Qt-Creator restart. I will be happy to provide additional information if needed. Thank you very much in advance!
*** This bug has been marked as a duplicate of bug 2097457 ***
*** Bug 2160833 has been marked as a duplicate of this bug. ***
It looks like this bug might have been incorrectly marked as a duplicate. Bug #2097457 should be patched in the current version yet this is still happening.