https://bugs.kde.org/show_bug.cgi?id=438249

--- Comment #14 from Andrei Slavoiu <ansl...@yahoo.com> ---
Here is the assert. For some reason DrKonqi does not handle it, so I got the
stacktrace manually:

kdevelop:
/var/tmp/portage/sys-devel/clang-14.0.4/work/clang/lib/AST/ExprConstant.cpp:15103:
llvm::APSInt clang::Expr::EvaluateKnownConstInt(const clang::ASTContext&,
llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >*) const: Assertion `!isValueDependent() &&
"Expression evaluator can't be called on a dependent expression."' failed.

Thread 41 "Queue(0x555558c" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff41560640 (LWP 24484)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO
(ret) : 0;
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff5f77d1f in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#2  0x00007ffff5f2aa62 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3  0x00007ffff5f15469 in __GI_abort () at abort.c:79
#4  0x00007ffff5f15395 in __assert_fail_base
    (fmt=0x7ffff60a3c80 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=0x7fff4f2c2c98 "!isValueDependent() && \"Expression evaluator can't
be called on a dependent expression.\"", file=0x7fff4f2c53b0
"/var/tmp/portage/sys-devel/clang-14.0.4/work/clang/lib/AST/ExprConstant.cpp",
line=15103, function=<optimized out>) at assert.c:92
#5  0x00007ffff5f239d2 in __GI___assert_fail
    (assertion=0x7fff4f2c2c98 "!isValueDependent() && \"Expression evaluator
can't be called on a dependent expression.\"", file=0x7fff4f2c53b0
"/var/tmp/portage/sys-devel/clang-14.0.4/work/clang/lib/AST/ExprConstant.cpp",
line=15103, function=0x7fff4f2cf7f0 "llvm::APSInt
clang::Expr::EvaluateKnownConstInt(const clang::ASTContext&,
llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >*) const") at assert.c:101
#6  0x00007fff4de82d71 in clang::Expr::EvaluateKnownConstInt(clang::ASTContext
const&, llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
clang::PartialDiagnostic> >*) const (this=<optimized out>, Ctx=<optimized out>,
Diag=Diag@entry=0x0)
    at
/usr/src/debug/sys-devel/clang-14.0.4/clang/lib/AST/ExprConstant.cpp:15103
#7  0x00007fff4ddc979b in clang::FieldDecl::getBitWidthValue(clang::ASTContext
const&) const (this=<optimized out>, Ctx=<optimized out>) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/lib/AST/Decl.cpp:4206
#8  0x00007fff4fcc1bff in (anonymous
namespace)::Visitor::setDeclData<(CXCursorKind)6>(CXCursor,
KDevelop::ClassMemberDeclaration*) (cursor=..., decl=decl@entry=0x7fff2a075a00,
this=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1083
#9  0x00007fff4fcd346a in (anonymous
namespace)::Visitor::createDeclarationCommon<(CXCursorKind)6,
KDevelop::ClassMemberDeclaration>(CXCursor, KDevelop::Identifier const&)
(this=this@entry=0x7fff4155efa0, cursor=..., id=...)
    at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:442
#10 0x00007fff4fcd404b in (anonymous
namespace)::Visitor::createDeclaration<(CXCursorKind)6,
KDevelop::ClassMemberDeclaration> (context=0x0, id=..., cursor=...,
this=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:451
#11 (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)6,
KDevelop::ClassMemberDeclaration, false>(CXCursor)
(this=this@entry=0x7fff4155efa0, cursor=...) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1217
#12 0x00007fff4fcd5010 in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)6> (parent=..., cursor=...,
this=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:965
#13 (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData)
(cursor=..., parent=..., data=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1554
#14 0x00007fff4dccd9c5 in clang::cxcursor::CursorVisitor::Visit(CXCursor, bool)
(this=0x7fff4155e580, Cursor=..., CheckedRegionOfInterest=<optimized out>) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:220
#15 0x00007fff4dcd3add in
clang::cxcursor::CursorVisitor::handleDeclForVisitation(clang::Decl const*)
(this=0x7fff4155e580, D=0x7ffec0bfc4c0) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:682
#16 0x00007fff4dcd3bd0 in
clang::cxcursor::CursorVisitor::VisitDeclContext(clang::DeclContext*)
(this=0x7fff4155e580, DC=0x7ffec0bfc088) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:643
#17 0x00007fff4dccd2b2 in
clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) (this=0x7fff4155e580,
Cursor=...) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:509
#18 0x00007fff4dccd899 in clang_visitChildren(CXCursor, CXCursorVisitor,
CXClientData) (parent=..., visitor=<optimized out>, client_data=<optimized
out>) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:4578
#19 0x00007fff4fcca3d1 in (anonymous
namespace)::Visitor::buildDeclaration<(CXCursorKind)31,
KDevelop::ClassDeclaration, true>(CXCursor) (this=0x7fff4155efa0, cursor=...)
at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1214
#20 0x00007fff4fcd5c17 in (anonymous namespace)::visitCursor(CXCursor,
CXCursor, CXClientData) (cursor=..., parent=..., data=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1570
#21 0x00007fff4dccd9c5 in clang::cxcursor::CursorVisitor::Visit(CXCursor, bool)
(this=0x7fff4155ed70, Cursor=..., CheckedRegionOfInterest=<optimized out>) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:220
#22 0x00007fff4dcd3add in
clang::cxcursor::CursorVisitor::handleDeclForVisitation(clang::Decl const*)
(this=0x7fff4155ed70, D=0x7ffec0bfc0d8) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:682
#23 0x00007fff4dcd3bd0 in
clang::cxcursor::CursorVisitor::VisitDeclContext(clang::DeclContext*)
(this=0x7fff4155ed70, DC=0x7ffec14fe720) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:643
#24 0x00007fff4dccd703 in
clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) (this=0x7fff4155ed70,
Cursor=...) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:543
#25 0x00007fff4dccd899 in clang_visitChildren(CXCursor, CXCursorVisitor,
CXClientData) (parent=..., visitor=<optimized out>, client_data=<optimized
out>) at
/usr/src/debug/sys-devel/clang-14.0.4/clang/tools/libclang/CIndex.cpp:4578
#26 0x00007fff4fcc6929 in (anonymous namespace)::Visitor::Visitor (update=196,
includes=..., file=0x2a, tu=<optimized out>, this=0x7fff4155efa0) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1471
#27 Builder::visit(CXTranslationUnitImpl*, void*, QHash<void*,
KDevelop::ReferencedTopDUContext> const&, bool) (tu=<optimized out>,
file=file@entry=0x7ffec08d4a80, includes=..., update=update@entry=false) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/builder.cpp:1618
#28 0x00007fff4fce199e in ClangHelpers::buildDUChain(void*, QMultiHash<void*,
Import> const&, ParseSession const&, QFlags<KDevelop::TopDUContext::Feature>,
QHash<void*, KDevelop::ReferencedTopDUContext>&, QHash<KDevelop::IndexedString,
KDevelop::ModificationRevision> const&, KDevelop::IndexedString const&,
ClangIndex*, std::function<bool ()> const&) (file=<optimized out>, imports=...,
session=..., features=..., features@entry=..., includedFiles=...,
unsavedRevisions=..., parseDocument=..., index=0x5555599103f0,
abortFunction=...)
    at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/duchain/clanghelpers.cpp:207
#29 0x00007fff4fd79430 in
ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) (this=<optimized out>) at
/usr/src/debug/dev-util/kdevelop-22.04.1/kdevelop-22.04.1/plugins/clang/clangparsejob.cpp:326
#30 0x00007ffff2b74aa9 in
ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) (this=<optimized out>, self=..., thread=0x7fff340025e0)
at
/usr/src/debug/kde-frameworks/threadweaver-5.94.0/threadweaver-5.94.0/src/iddecorator.cpp:50
#31 0x00007ffff2b746f7 in
ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&,
ThreadWeaver::Thread*) (this=<optimized out>, job=<optimized out>,
thread=<optimized out>) at
/usr/src/debug/kde-frameworks/threadweaver-5.94.0/threadweaver-5.94.0/src/executor.cpp:33
#32 0x00007ffff2b75550 in
ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&,
ThreadWeaver::Thread*) (this=<optimized out>, self=..., th=0x7fff340025e0) at
/usr/src/debug/kde-frameworks/threadweaver-5.94.0/threadweaver-5.94.0/src/job.cpp:64
#33 0x00007ffff2b79b02 in ThreadWeaver::Thread::run() (this=0x7fff340025e0) at
/usr/src/debug/kde-frameworks/threadweaver-5.94.0/threadweaver-5.94.0/src/thread.cpp:98
#34 0x00007ffff645b8a9 in QThreadPrivate::start(void*) (arg=0x7fff340025e0) at
/usr/src/debug/dev-qt/qtcore-5.15.4-r2/qtbase-everywhere-src-5.15.4/src/corelib/thread/qthread_unix.cpp:331
#35 0x00007ffff5f75f6a in start_thread (arg=<optimized out>) at
pthread_create.c:442
#36 0x00007ffff5ffb28c in clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to