Bug 2155665 - [abrt] clang-tools-extra: std::__glibcxx_assert_fail(): clangd killed by SIGABRT
Summary: [abrt] clang-tools-extra: std::__glibcxx_assert_fail(): clangd killed by SIGABRT
Keywords:
Status: CLOSED DUPLICATE of bug 2097457
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:d3ec321ea19d8dd3c74ee297597...
: 2160833 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-21 19:27 UTC by Nikolay Brookstein
Modified: 2023-03-03 03:59 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-27 01:11:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (49.37 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: core_backtrace (101.13 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: cpuinfo (2.97 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: environ (2.57 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: limits (1.29 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: maps (4.00 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: mountinfo (2.97 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: open_fds (421 bytes, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details
File: proc_pid_status (1.40 KB, text/plain)
2022-12-21 19:27 UTC, Nikolay Brookstein
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.