Bug 2155665

Summary: [abrt] clang-tools-extra: std::__glibcxx_assert_fail(): clangd killed by SIGABRT
Product: [Fedora] Fedora Reporter: Nikolay Brookstein <nikolay.brookstein>
Component: clangAssignee: Tom Stellard <tstellar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: airlied, alex, chplee, jchecahi, kkleine, npopov, sbergman, sergesanspaille, siddharth.kde, tstellar, tuliom
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/03b8b107b4c3efd59f7f5e89bf094f9cfbbc9842
Whiteboard: abrt_hash:d3ec321ea19d8dd3c74ee297597e66b989cd2526;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-27 01:11:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: cpuinfo
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: open_fds
none
File: proc_pid_status none

Description Nikolay Brookstein 2022-12-21 19:27:23 UTC
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

Comment 1 Nikolay Brookstein 2022-12-21 19:27:27 UTC
Created attachment 1934006 [details]
File: backtrace

Comment 2 Nikolay Brookstein 2022-12-21 19:27:29 UTC
Created attachment 1934007 [details]
File: core_backtrace

Comment 3 Nikolay Brookstein 2022-12-21 19:27:30 UTC
Created attachment 1934008 [details]
File: cpuinfo

Comment 4 Nikolay Brookstein 2022-12-21 19:27:32 UTC
Created attachment 1934009 [details]
File: environ

Comment 5 Nikolay Brookstein 2022-12-21 19:27:33 UTC
Created attachment 1934010 [details]
File: limits

Comment 6 Nikolay Brookstein 2022-12-21 19:27:34 UTC
Created attachment 1934011 [details]
File: maps

Comment 7 Nikolay Brookstein 2022-12-21 19:27:35 UTC
Created attachment 1934012 [details]
File: mountinfo

Comment 8 Nikolay Brookstein 2022-12-21 19:27:37 UTC
Created attachment 1934013 [details]
File: open_fds

Comment 9 Nikolay Brookstein 2022-12-21 19:27:38 UTC
Created attachment 1934014 [details]
File: proc_pid_status

Comment 10 Nikolay Brookstein 2022-12-21 19:37:50 UTC
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!

Comment 11 Nikolay Brookstein 2022-12-27 01:11:41 UTC

*** This bug has been marked as a duplicate of bug 2097457 ***

Comment 12 Chipeng Li 2023-01-13 21:24:39 UTC
*** Bug 2160833 has been marked as a duplicate of this bug. ***

Comment 13 alex 2023-03-03 03:59:43 UTC
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.