Bug 403045 - KDev-Python crashes when parsing RHS of annotated assignment with lambda [Python::UseBuilder::contextAtOrCurrent]
Summary: KDev-Python crashes when parsing RHS of annotated assignment with lambda [Pyt...
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: 5.3.1
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: 5.3.2
Assignee: Francis Herne
URL:
Keywords: drkonqi
: 403098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-09 17:39 UTC by Matěj Laitl
Modified: 2019-01-14 13:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matěj Laitl 2019-01-09 17:39:49 UTC
Application: kdevelop (5.2.4)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.14.78-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

KDevelop started to crash as soon as I typed following code (the last line):

@dataclass
class RecordData:

    imagery_files: int = 0
    record_files: int = 0
    per_type_sqkm: dict = field(default_factory=lambda: defaultdict(float))

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7f8eea4880 (LWP 11395))]

Thread 19 (Thread 0x7f7f15ffb700 (LWP 11526)):
#0  0x00007f7f8b5a1ab8 in __GI___nanosleep (requested_time=requested_time@entry=0x7f7f15ff9c10, remaining=remaining@entry=0x7f7f15ff9c10) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  0x00007f7f8befd55d in qt_nanosleep (amount=...) at kernel/qelapsedtimer_unix.cpp:195
#2  0x00007f7f8bd14d60 in QThread::usleep (usecs=usecs@entry=500) at thread/qthread_unix.cpp:542
#3  0x00007f7f8972cba8 in KDevelop::DUChainLock::lockForWrite (this=0x7f7f89ec8c60 <KDevelop::(anonymous namespace)::Q_QGS_sdDUChainPrivate::innerFunction()::holder+32>, timeout=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:152
#4  0x00007f7f8972cdbc in KDevelop::DUChainWriteLocker::lock (this=0x7f7f15ff9d80) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:246
#5  0x00007f7f2b95ac57 in Python::DeclarationBuilder::createModuleImportDeclaration (this=this@entry=0x7f7f15ffa780, moduleName=..., declarationName=..., declarationIdentifier=declarationIdentifier@entry=0x7f7f0002f3e0, problemEncountered=..., rangeNode=rangeNode@entry=0x0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:683
#6  0x00007f7f2b95bf5f in Python::DeclarationBuilder::visitImportFrom (this=0x7f7f15ffa780, node=0x7f7f00009e90) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:451
#7  0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f15ffa780, node=0x7f7f00009e90) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#8  0x00007f7f48fc6b7c in Python::AstVisitor::visitNodeList<Python::Ast> (l=..., this=0x7f7f15ffa968) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#9  Python::AstDefaultVisitor::visitCode (this=this@entry=0x7f7f15ffa968, node=node@entry=0x7f7f0002a400) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:91
#10 0x00007f7f2b952280 in Python::ContextBuilder::visitCode (this=this@entry=0x7f7f15ffa780, node=node@entry=0x7f7f0002a400) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:318
#11 0x00007f7f2b95749a in Python::DeclarationBuilder::visitCode (this=0x7f7f15ffa780, node=0x7f7f0002a400) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:345
#12 0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f15ffa780, node=0x7f7f0002a400) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#13 0x00007f7f2b967835 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild (context=0x7f7f00065520, node=0x7f7f0002a400, this=0x7f7f15ffa780) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:131
#14 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7f7f15ffa780, node=0x7f7f0002a400, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
#15 0x00007f7f2b94dfdb in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build (updateContext=..., node=0x7f7f0002a400, url=..., this=0x7f7f15ffa780) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:111
#16 Python::ContextBuilder::build (this=this@entry=0x7f7f15ffa780, url=..., node=node@entry=0x7f7f0002a400, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:75
#17 0x00007f7f2b95708b in Python::DeclarationBuilder::build (this=this@entry=0x7f7f15ffa780, url=..., node=0x7f7f0002a400, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:105
#18 0x00007f7f2bdddff6 in Python::ParseJob::run (this=0x55c83aa7a6e0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/pythonparsejob.cpp:169
#19 0x00007f7f808581ca in ThreadWeaver::IdDecorator::run (this=<optimized out>, self=..., thread=0x7f7f080025e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/iddecorator.cpp:69
#20 0x00007f7f808587c8 in ThreadWeaver::Executor::run (this=<optimized out>, job=..., thread=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/executor.cpp:52
#21 0x00007f7f80857510 in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x7f7f080025e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/job.cpp:83
#22 0x00007f7f80856fad in ThreadWeaver::Thread::run (this=0x7f7f080025e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/thread.cpp:114
#23 0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x7f7f080025e0) at thread/qthread_unix.cpp:367
#24 0x00007f7f84dfc96a in start_thread (arg=0x7f7f15ffb700) at pthread_create.c:463
#25 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7f7f167fc700 (LWP 11525)):
#0  0x00007f7f84e0357c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55c83a059880) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55c83a059830, cond=0x55c83a059858) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55c83a059858, mutex=0x55c83a059830) at pthread_cond_wait.c:655
#3  0x00007f7f8bd15efb in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x55c83a059830) at thread/qwaitcondition_unix.cpp:143
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55c83a077160, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#5  0x00007f7f8085416b in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=this@entry=0x55c83a05a700, th=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/weaver.cpp:594
#6  0x00007f7f80854ed5 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x55c83a05a700, th=<optimized out>, th@entry=0x7f7f040025e0, threadWasBusy=threadWasBusy@entry=false, suspendIfInactive=suspendIfInactive@entry=false, justReturning=justReturning@entry=false) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/weaver.cpp:554
#7  0x00007f7f80859028 in ThreadWeaver::WorkingHardState::applyForWork (this=0x55c83a074ad0, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/workinghardstate.cpp:66
#8  0x00007f7f808540cd in ThreadWeaver::Weaver::applyForWork (this=<optimized out>, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/weaver.cpp:568
#9  0x00007f7f80859082 in ThreadWeaver::WorkingHardState::applyForWork (this=0x55c83a074ad0, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/workinghardstate.cpp:73
#10 0x00007f7f808540cd in ThreadWeaver::Weaver::applyForWork (this=<optimized out>, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/weaver.cpp:568
#11 0x00007f7f80859082 in ThreadWeaver::WorkingHardState::applyForWork (this=0x55c83a074ad0, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/workinghardstate.cpp:73
#12 0x00007f7f808540cd in ThreadWeaver::Weaver::applyForWork (this=<optimized out>, th=0x7f7f040025e0, wasBusy=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/weaver.cpp:568
#13 0x00007f7f80856eeb in ThreadWeaver::Thread::run (this=0x7f7f040025e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/thread.cpp:103
#14 0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x7f7f040025e0) at thread/qthread_unix.cpp:367
#15 0x00007f7f84dfc96a in start_thread (arg=0x7f7f167fc700) at pthread_create.c:463
#16 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7f7f16ffd700 (LWP 11524)):
#0  0x00007f7f8b5a1ab8 in __GI___nanosleep (requested_time=requested_time@entry=0x7f7f16ffbc10, remaining=remaining@entry=0x7f7f16ffbc10) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  0x00007f7f8befd55d in qt_nanosleep (amount=...) at kernel/qelapsedtimer_unix.cpp:195
#2  0x00007f7f8bd14d60 in QThread::usleep (usecs=usecs@entry=500) at thread/qthread_unix.cpp:542
#3  0x00007f7f8972cba8 in KDevelop::DUChainLock::lockForWrite (this=0x7f7f89ec8c60 <KDevelop::(anonymous namespace)::Q_QGS_sdDUChainPrivate::innerFunction()::holder+32>, timeout=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:152
#4  0x00007f7f8972cdbc in KDevelop::DUChainWriteLocker::lock (this=0x7f7f16ffbd80) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:246
#5  0x00007f7f2b95ac57 in Python::DeclarationBuilder::createModuleImportDeclaration (this=this@entry=0x7f7f16ffc780, moduleName=..., declarationName=..., declarationIdentifier=declarationIdentifier@entry=0x7f7f08041130, problemEncountered=..., rangeNode=rangeNode@entry=0x0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:683
#6  0x00007f7f2b95bce1 in Python::DeclarationBuilder::visitImportFrom (this=0x7f7f16ffc780, node=0x7f7f08002590) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:446
#7  0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f16ffc780, node=0x7f7f08002590) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#8  0x00007f7f48fc6b7c in Python::AstVisitor::visitNodeList<Python::Ast> (l=..., this=0x7f7f16ffc968) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#9  Python::AstDefaultVisitor::visitCode (this=this@entry=0x7f7f16ffc968, node=node@entry=0x7f7f08032a60) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:91
#10 0x00007f7f2b952280 in Python::ContextBuilder::visitCode (this=this@entry=0x7f7f16ffc780, node=node@entry=0x7f7f08032a60) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:318
#11 0x00007f7f2b95749a in Python::DeclarationBuilder::visitCode (this=0x7f7f16ffc780, node=0x7f7f08032a60) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:345
#12 0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f16ffc780, node=0x7f7f08032a60) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#13 0x00007f7f2b967835 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild (context=0x7f7f08099bd0, node=0x7f7f08032a60, this=0x7f7f16ffc780) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:131
#14 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7f7f16ffc780, node=0x7f7f08032a60, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
#15 0x00007f7f2b94dfdb in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build (updateContext=..., node=0x7f7f08032a60, url=..., this=0x7f7f16ffc780) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:111
#16 Python::ContextBuilder::build (this=this@entry=0x7f7f16ffc780, url=..., node=node@entry=0x7f7f08032a60, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:75
#17 0x00007f7f2b95708b in Python::DeclarationBuilder::build (this=this@entry=0x7f7f16ffc780, url=..., node=0x7f7f08032a60, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:105
#18 0x00007f7f2bdddff6 in Python::ParseJob::run (this=0x55c83af23b20) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/pythonparsejob.cpp:169
#19 0x00007f7f808581ca in ThreadWeaver::IdDecorator::run (this=<optimized out>, self=..., thread=0x55c83aa53e00) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/iddecorator.cpp:69
#20 0x00007f7f808587c8 in ThreadWeaver::Executor::run (this=<optimized out>, job=..., thread=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/executor.cpp:52
#21 0x00007f7f80857510 in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x55c83aa53e00) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/job.cpp:83
#22 0x00007f7f80856fad in ThreadWeaver::Thread::run (this=0x55c83aa53e00) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/thread.cpp:114
#23 0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83aa53e00) at thread/qthread_unix.cpp:367
#24 0x00007f7f84dfc96a in start_thread (arg=0x7f7f16ffd700) at pthread_create.c:463
#25 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f7f177fe700 (LWP 11523)):
#0  0x00007f7f8b5a1ab8 in __GI___nanosleep (requested_time=requested_time@entry=0x7f7f177fcb70, remaining=remaining@entry=0x7f7f177fcb70) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  0x00007f7f8befd55d in qt_nanosleep (amount=...) at kernel/qelapsedtimer_unix.cpp:195
#2  0x00007f7f8bd14d60 in QThread::usleep (usecs=usecs@entry=500) at thread/qthread_unix.cpp:542
#3  0x00007f7f8972cba8 in KDevelop::DUChainLock::lockForWrite (this=0x7f7f89ec8c60 <KDevelop::(anonymous namespace)::Q_QGS_sdDUChainPrivate::innerFunction()::holder+32>, timeout=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:152
#4  0x00007f7f8972cdbc in KDevelop::DUChainWriteLocker::lock (this=0x7f7f177fcce0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchainlock.cpp:246
#5  0x00007f7f2b95ac57 in Python::DeclarationBuilder::createModuleImportDeclaration (this=this@entry=0x7f7f040ebc70, moduleName=..., declarationName=..., declarationIdentifier=declarationIdentifier@entry=0x7f7f04081530, problemEncountered=..., rangeNode=rangeNode@entry=0x0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:683
#6  0x00007f7f2b95bf5f in Python::DeclarationBuilder::visitImportFrom (this=0x7f7f040ebc70, node=0x7f7f04081290) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:451
#7  0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f040ebc70, node=0x7f7f04081290) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#8  0x00007f7f48fc6b7c in Python::AstVisitor::visitNodeList<Python::Ast> (l=..., this=0x7f7f040ebe58) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#9  Python::AstDefaultVisitor::visitCode (this=this@entry=0x7f7f040ebe58, node=node@entry=0x7f7f0400a100) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:91
#10 0x00007f7f2b952280 in Python::ContextBuilder::visitCode (this=this@entry=0x7f7f040ebc70, node=node@entry=0x7f7f0400a100) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:318
#11 0x00007f7f2b95749a in Python::DeclarationBuilder::visitCode (this=0x7f7f040ebc70, node=0x7f7f0400a100) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:345
#12 0x00007f7f2b956938 in Python::DeclarationBuilder::visitNode (this=0x7f7f040ebc70, node=0x7f7f0400a100) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:1844
#13 0x00007f7f2b967835 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild (context=0x7f7f04069360, node=0x7f7f0400a100, this=0x7f7f040ebc70) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:131
#14 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7f7f040ebc70, node=0x7f7f0400a100, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
#15 0x00007f7f2b94dfdb in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build (updateContext=..., node=0x7f7f0400a100, url=..., this=0x7f7f040ebc70) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:111
#16 Python::ContextBuilder::build (this=this@entry=0x7f7f040ebc70, url=..., node=node@entry=0x7f7f0400a100, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:75
#17 0x00007f7f2b95708b in Python::DeclarationBuilder::build (this=this@entry=0x7f7f040ebc70, url=..., node=node@entry=0x7f7f0400a100, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:105
#18 0x00007f7f2b957032 in Python::DeclarationBuilder::build (this=this@entry=0x7f7f177fd780, url=..., node=0x7f7f0400a100, updateContext=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/declarationbuilder.cpp:98
#19 0x00007f7f2bdddff6 in Python::ParseJob::run (this=0x55c83b5dc5a0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/pythonparsejob.cpp:169
#20 0x00007f7f808581ca in ThreadWeaver::IdDecorator::run (this=<optimized out>, self=..., thread=0x7f7f0c0021e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/iddecorator.cpp:69
#21 0x00007f7f808587c8 in ThreadWeaver::Executor::run (this=<optimized out>, job=..., thread=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/executor.cpp:52
#22 0x00007f7f80857510 in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x7f7f0c0021e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/job.cpp:83
#23 0x00007f7f80856fad in ThreadWeaver::Thread::run (this=0x7f7f0c0021e0) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/thread.cpp:114
#24 0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x7f7f0c0021e0) at thread/qthread_unix.cpp:367
#25 0x00007f7f84dfc96a in start_thread (arg=0x7f7f177fe700) at pthread_create.c:463
#26 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7f7f17fff700 (LWP 11522)):
[KCrash Handler]
#6  KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::topContext (this=0x7f7f17ffe2f0) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:237
#7  Python::UseBuilder::contextAtOrCurrent (this=0x7f7f17ffe2f0, pos=...) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/usebuilder.cpp:55
#8  0x00007f7f2b96cf22 in Python::UseBuilder::visitName (this=0x7f7f17ffe2f0, node=0x7f7f0c082f10) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/usebuilder.cpp:79
#9  0x00007f7f48fc82fb in Python::AstDefaultVisitor::visitCall (this=0x7f7f17ffe4d8, node=0x7f7f0c082ec0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:335
#10 0x00007f7f2b96c2e8 in Python::UseBuilder::visitCall (this=0x7f7f17ffe2f0, node=0x7f7f0c082ec0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/usebuilder.cpp:107
#11 0x00007f7f2b95394b in Python::ContextBuilder::visitLambda (this=<optimized out>, node=0x7f7f0c082e70) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:401
#12 0x00007f7f48fc69e6 in Python::AstDefaultVisitor::visitKeyword (this=0x7f7f17ffe4d8, node=0x7f7f0c082db0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:357
#13 0x00007f7f48fc83bc in Python::AstVisitor::visitNodeList<Python::KeywordAst> (l=..., this=0x7f7f17ffe4d8) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#14 Python::AstDefaultVisitor::visitCall (this=0x7f7f17ffe4d8, node=0x7f7f0c082ca0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:337
#15 0x00007f7f2b96c2e8 in Python::UseBuilder::visitCall (this=0x7f7f17ffe2f0, node=0x7f7f0c082ca0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/usebuilder.cpp:107
#16 0x00007f7f48fc78ec in Python::AstVisitor::visitNodeList<Python::Ast> (l=..., this=0x7f7f17ffe4d8) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#17 Python::AstDefaultVisitor::visitClassDefinition (this=this@entry=0x7f7f17ffe4d8, node=node@entry=0x7f7f0c06db10) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:309
#18 0x00007f7f2b951f08 in Python::ContextBuilder::visitClassDefinition (this=0x7f7f17ffe2f0, node=0x7f7f0c06db10) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:293
#19 0x00007f7f48fc6b7c in Python::AstVisitor::visitNodeList<Python::Ast> (l=..., this=0x7f7f17ffe4d8) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astvisitor.h:50
#20 Python::AstDefaultVisitor::visitCode (this=this@entry=0x7f7f17ffe4d8, node=node@entry=0x7f7f0c018c20) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/parser/astdefaultvisitor.cpp:91
#21 0x00007f7f2b952280 in Python::ContextBuilder::visitCode (this=0x7f7f17ffe2f0, node=0x7f7f0c018c20) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/duchain/contextbuilder.cpp:318
#22 0x00007f7f2bdde274 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild (context=0x7f7f0c08c580, node=0x7f7f0c018c20, this=0x7f7f17ffe2f0) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:131
#23 KDevelop::AbstractUseBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::buildUses (node=0x7f7f0c018c20, this=0x7f7f17ffe2f0) at /usr/include/kdevplatform/language/duchain/builders/abstractusebuilder.h:73
#24 Python::ParseJob::run (this=0x55c83a1b9ec0) at /var/tmp/portage/dev-util/kdevelop-python-5.2.4/work/kdev-python-5.2.4/pythonparsejob.cpp:179
#25 0x00007f7f808581ca in ThreadWeaver::IdDecorator::run (this=<optimized out>, self=..., thread=0x55c83bc70600) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/iddecorator.cpp:69
#26 0x00007f7f808587c8 in ThreadWeaver::Executor::run (this=<optimized out>, job=..., thread=<optimized out>) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/executor.cpp:52
#27 0x00007f7f80857510 in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x55c83bc70600) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/job.cpp:83
#28 0x00007f7f80856fad in ThreadWeaver::Thread::run (this=0x55c83bc70600) at /var/tmp/portage/kde-frameworks/threadweaver-5.50.0/work/threadweaver-5.50.0/src/thread.cpp:114
#29 0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83bc70600) at thread/qthread_unix.cpp:367
#30 0x00007f7f84dfc96a in start_thread (arg=0x7f7f17fff700) at pthread_create.c:463
#31 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f7f2626c700 (LWP 11466)):
#0  0x00007f7f84e038aa in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f7f2626bbe0, expected=0, futex_word=0x55c83ba92954) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7f7f2626bc90, mutex=0x55c83ba92900, cond=0x55c83ba92928) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x55c83ba92928, mutex=0x55c83ba92900, abstime=0x7f7f2626bc90) at pthread_cond_wait.c:667
#3  0x00007f7f8bd15e41 in QWaitConditionPrivate::wait_relative (time=30000, this=0x55c83ba92900) at thread/qwaitcondition_unix.cpp:133
#4  QWaitConditionPrivate::wait (time=30000, this=0x55c83ba92900) at thread/qwaitcondition_unix.cpp:141
#5  QWaitCondition::wait (this=this@entry=0x55c83ba92760, mutex=mutex@entry=0x55c83bc10ef0, time=30000) at thread/qwaitcondition_unix.cpp:215
#6  0x00007f7f8bd0d5d2 in QThreadPoolThread::run (this=0x55c83ba92750) at thread/qthreadpool.cpp:146
#7  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83ba92750) at thread/qthread_unix.cpp:367
#8  0x00007f7f84dfc96a in start_thread (arg=0x7f7f2626c700) at pthread_create.c:463
#9  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f7f26a6d700 (LWP 11455)):
#0  0x00007f7f84e038aa in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f7f26a6cbe0, expected=0, futex_word=0x55c83bb62a70) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7f7f26a6cc90, mutex=0x55c83bb62a20, cond=0x55c83bb62a48) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x55c83bb62a48, mutex=0x55c83bb62a20, abstime=0x7f7f26a6cc90) at pthread_cond_wait.c:667
#3  0x00007f7f8bd15e41 in QWaitConditionPrivate::wait_relative (time=30000, this=0x55c83bb62a20) at thread/qwaitcondition_unix.cpp:133
#4  QWaitConditionPrivate::wait (time=30000, this=0x55c83bb62a20) at thread/qwaitcondition_unix.cpp:141
#5  QWaitCondition::wait (this=this@entry=0x55c83afd0a40, mutex=mutex@entry=0x55c83bc10ef0, time=30000) at thread/qwaitcondition_unix.cpp:215
#6  0x00007f7f8bd0d5d2 in QThreadPoolThread::run (this=0x55c83afd0a30) at thread/qthreadpool.cpp:146
#7  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83afd0a30) at thread/qthread_unix.cpp:367
#8  0x00007f7f84dfc96a in start_thread (arg=0x7f7f26a6d700) at pthread_create.c:463
#9  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f7f2726e700 (LWP 11443)):
#0  0x00007f7f84e038aa in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f7f2726dbe0, expected=0, futex_word=0x55c83ba10720) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7f7f2726dc90, mutex=0x55c83ba106d0, cond=0x55c83ba106f8) at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x55c83ba106f8, mutex=0x55c83ba106d0, abstime=0x7f7f2726dc90) at pthread_cond_wait.c:667
#3  0x00007f7f8bd15e41 in QWaitConditionPrivate::wait_relative (time=30000, this=0x55c83ba106d0) at thread/qwaitcondition_unix.cpp:133
#4  QWaitConditionPrivate::wait (time=30000, this=0x55c83ba106d0) at thread/qwaitcondition_unix.cpp:141
#5  QWaitCondition::wait (this=this@entry=0x55c83bbf2e90, mutex=mutex@entry=0x55c83bc10ef0, time=30000) at thread/qwaitcondition_unix.cpp:215
#6  0x00007f7f8bd0d5d2 in QThreadPoolThread::run (this=0x55c83bbf2e80) at thread/qthreadpool.cpp:146
#7  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83bbf2e80) at thread/qthread_unix.cpp:367
#8  0x00007f7f84dfc96a in start_thread (arg=0x7f7f2726e700) at pthread_create.c:463
#9  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f7f27a6f700 (LWP 11439)):
#0  0x00007f7f8b5c6f30 in __GI___libc_read (fd=17, buf=0x7f7f27a6eae0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f7f82282b00 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e1fe in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e6d4 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f20000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f27a6ed00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#7  0x00007f7f8bd0bdaa in QThread::exec (this=this@entry=0x55c83b7aa260) at thread/qthread.cpp:525
#8  0x00007f7f2843a355 in QQuickXmlQueryEngine::run (this=0x55c83b7aa260) at qqmlxmllistmodel.cpp:323
#9  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83b7aa260) at thread/qthread_unix.cpp:367
#10 0x00007f7f84dfc96a in start_thread (arg=0x7f7f27a6f700) at pthread_create.c:463
#11 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f7f3b497700 (LWP 11422)):
#0  0x00007f7f8b5c6f30 in __GI___libc_read (fd=28, buf=0x7f7f3b496a30, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f7f82282b00 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e1fe in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e6d4 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f2c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f3b496c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#7  0x00007f7f8bd0bdaa in QThread::exec (this=this@entry=0x55c83a3b6b80) at thread/qthread.cpp:525
#8  0x00007f7f897ede6f in KDevelop::CompletionWorkerThread::run (this=0x55c83a3b6b80) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:79
#9  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83a3b6b80) at thread/qthread_unix.cpp:367
#10 0x00007f7f84dfc96a in start_thread (arg=0x7f7f3b497700) at pthread_create.c:463
#11 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f7f3ac96700 (LWP 11407)):
#0  0x00007f7f82283eb9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f7f8223dae7 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e65b in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f30000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f3ac95d00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f7f8bd0bdaa in QThread::exec (this=this@entry=0x55c83a2bf8a0) at thread/qthread.cpp:525
#7  0x00007f7f848671a5 in QQmlThreadPrivate::run (this=0x55c83a2bf8a0) at qml/ftw/qqmlthread.cpp:148
#8  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83a2bf8a0) at thread/qthread_unix.cpp:367
#9  0x00007f7f84dfc96a in start_thread (arg=0x7f7f3ac96700) at pthread_create.c:463
#10 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f7f3c309700 (LWP 11403)):
#0  0x00007f7f82283eb9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f7f8223e144 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e6d4 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f34000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f3c308d20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f7f8bd0bdaa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:525
#7  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83a273710) at thread/qthread_unix.cpp:367
#8  0x00007f7f84dfc96a in start_thread (arg=0x7f7f3c309700) at pthread_create.c:463
#9  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f7f3ee8b700 (LWP 11402)):
#0  0x00007f7f84e0357c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f7f43fe9e90 <bmalloc::PerProcess<bmalloc::Heap>::s_memory+3120>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55c83a205f60, cond=0x7f7f43fe9e68 <bmalloc::PerProcess<bmalloc::Heap>::s_memory+3080>) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f7f43fe9e68 <bmalloc::PerProcess<bmalloc::Heap>::s_memory+3080>, mutex=0x55c83a205f60) at pthread_cond_wait.c:655
#3  0x00007f7f8b944b3c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libstdc++.so.6
#4  0x00007f7f434a7db7 in std::_V2::condition_variable_any::wait<std::unique_lock<bmalloc::Mutex> > (__lock=<synthetic pointer>..., this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/condition_variable:251
#5  std::_V2::condition_variable_any::wait<std::unique_lock<bmalloc::Mutex>, bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop()::{lambda()#1}>(std::unique_lock<bmalloc::Mutex>&, bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop()::{lambda()#1}) (__p=..., __lock=..., this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/condition_variable:260
#6  bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop (this=0x7f7f43fe9e60 <bmalloc::PerProcess<bmalloc::Heap>::s_memory+3072>) at /var/tmp/portage/dev-qt/qtwebkit-5.212.0_pre20180120/work/72cfbd7664f21fcc0e62b869a6b01bf73eb5e7da/Source/bmalloc/bmalloc/AsyncTask.h:126
#7  0x00007f7f434a7ef9 in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint (asyncTask=<optimized out>) at /var/tmp/portage/dev-qt/qtwebkit-5.212.0_pre20180120/work/72cfbd7664f21fcc0e62b869a6b01bf73eb5e7da/Source/bmalloc/bmalloc/AsyncTask.h:106
#8  0x00007f7f8b94af0e in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libstdc++.so.6
#9  0x00007f7f84dfc96a in start_thread (arg=0x7f7f3ee8b700) at pthread_create.c:463
#10 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f7f4b98a700 (LWP 11400)):
#0  0x00007f7f8b5c6f30 in __GI___libc_read (fd=15, buf=0x7f7f4b989b00, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f7f82282b00 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e1fe in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e6d4 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f44000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f4b989d20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#7  0x00007f7f8bd0bdaa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:525
#8  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x7f7f79601808 <KDevelop::(anonymous namespace)::Q_QGS_s_parsingThread::innerFunction()::holder+8>) at thread/qthread_unix.cpp:367
#9  0x00007f7f84dfc96a in start_thread (arg=0x7f7f4b98a700) at pthread_create.c:463
#10 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f7f54eac700 (LWP 11399)):
#0  0x00007f7f8b5cb833 in __GI___poll (fds=0x7f7f4c004b80, nfds=1, timeout=193307) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7f8223e736 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f4c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f54eabcb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#5  0x00007f7f8bd0bdaa in QThread::exec (this=this@entry=0x55c83a1804c0) at thread/qthread.cpp:525
#6  0x00007f7f896e647b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x55c83a1804c0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/language/duchain/duchain.cpp:283
#7  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c83a1804c0) at thread/qthread_unix.cpp:367
#8  0x00007f7f84dfc96a in start_thread (arg=0x7f7f54eac700) at pthread_create.c:463
#9  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f7f5dba5700 (LWP 11398)):
#0  0x00007f7f82283ed4 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f7f8223e2ca in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7f8223e7a0 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7f8befdcbb in QEventDispatcherGlib::processEvents (this=0x7f7f50000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7f7f5dba4cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f7f8bd0bdaa in QThread::exec (this=this@entry=0x7f7f8ddf1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f7f8db79de5 in QDBusConnectionManager::run (this=0x7f7f8ddf1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x7f7f8ddf1d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f7f84dfc96a in start_thread (arg=0x7f7f5dba5700) at pthread_create.c:463
#10 0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f7f5fbec700 (LWP 11397)):
#0  0x00007f7f84e0357c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55c839b48c68) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55c839b48c18, cond=0x55c839b48c40) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55c839b48c40, mutex=0x55c839b48c18) at pthread_cond_wait.c:655
#3  0x00007f7f645111ab in cnd_wait (mtx=0x55c839b48c18, cond=0x55c839b48c40) at ../mesa-18.2.5/src/../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55c8399e5b20) at ../mesa-18.2.5/src/util/u_queue.c:256
#5  0x00007f7f64510ed7 in impl_thrd_routine (p=<optimized out>) at ../mesa-18.2.5/src/../include/c11/threads_posix.h:87
#6  0x00007f7f84dfc96a in start_thread (arg=0x7f7f5fbec700) at pthread_create.c:463
#7  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f7f669ac700 (LWP 11396)):
#0  0x00007f7f8b5cb833 in __GI___poll (fds=0x7f7f669abc28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f7f77f477f7 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f7f77f4942a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f7f6849d9f9 in QXcbEventReader::run (this=0x55c8399aeb20) at qxcbconnection.cpp:1388
#4  0x00007f7f8bd1580f in QThreadPrivate::start (arg=0x55c8399aeb20) at thread/qthread_unix.cpp:367
#5  0x00007f7f84dfc96a in start_thread (arg=0x7f7f669ac700) at pthread_create.c:463
#6  0x00007f7f8b5d585f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f7f8eea4880 (LWP 11395)):
#0  0x00007f7f84e0357c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffa08cfbe8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55c8399a33e8, cond=0x7fffa08cfbc0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7fffa08cfbc0, mutex=0x55c8399a33e8) at pthread_cond_wait.c:655
#3  0x00007f7f77f47a02 in ?? () from /usr/lib64/libxcb.so.1
#4  0x00007f7f77f4912f in ?? () from /usr/lib64/libxcb.so.1
#5  0x00007f7f77f49240 in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#6  0x00007f7f6849c49a in QXcbConnection::sync (this=0x55c8399a0900) at qxcbconnection.cpp:2101
#7  0x00007f7f684bc663 in QXcbBackingStoreImage::preparePaint (this=0x7f7f50017f80, region=...) at qxcbbackingstore.cpp:724
#8  0x00007f7f684bc73c in QXcbBackingStore::beginPaint (this=this@entry=0x55c83a106500, region=...) at qxcbbackingstore.cpp:763
#9  0x00007f7f8c58920b in QBackingStore::beginPaint (this=this@entry=0x55c83a0ff950, region=...) at painting/qbackingstore.cpp:134
#10 0x00007f7f8cb69ea4 in QWidgetBackingStore::beginPaint (toCleanIsInTopLevelCoordinates=true, returnInfo=<synthetic pointer>, backingStore=0x55c83a0ff950, widget=<optimized out>, toClean=..., this=0x55c83a109430) at kernel/qwidgetbackingstore.cpp:327
#11 QWidgetBackingStore::doSync (this=this@entry=0x55c83a109430) at kernel/qwidgetbackingstore.cpp:1335
#12 0x00007f7f8cb6a335 in QWidgetBackingStore::sync (this=0x55c83a109430) at kernel/qwidgetbackingstore.cpp:1156
#13 0x00007f7f8cb81abf in QWidgetPrivate::syncBackingStore (this=0x55c8399eba00) at kernel/qwidget.cpp:1953
#14 0x00007f7f8cb99cb8 in QWidget::event (this=this@entry=0x55c839d9c550, event=event@entry=0x7fffa08d0440) at kernel/qwidget.cpp:9220
#15 0x00007f7f8cca1cc0 in QMainWindow::event (this=this@entry=0x55c839d9c550, event=event@entry=0x7fffa08d0440) at widgets/qmainwindow.cpp:1348
#16 0x00007f7f87de5b57 in KMainWindow::event (this=this@entry=0x55c839d9c550, ev=ev@entry=0x7fffa08d0440) at /var/tmp/portage/kde-frameworks/kxmlgui-5.50.0/work/kxmlgui-5.50.0/src/kmainwindow.cpp:869
#17 0x00007f7f87e2ab45 in KXmlGuiWindow::event (this=0x55c839d9c550, ev=0x7fffa08d0440) at /var/tmp/portage/kde-frameworks/kxmlgui-5.50.0/work/kxmlgui-5.50.0/src/kxmlguiwindow.cpp:119
#18 0x00007f7f8cb5ae0c in QApplicationPrivate::notify_helper (this=this@entry=0x55c8399956f0, receiver=receiver@entry=0x55c839d9c550, e=e@entry=0x7fffa08d0440) at kernel/qapplication.cpp:3727
#19 0x00007f7f8cb623cf in QApplication::notify (this=0x7fffa08d1020, receiver=0x55c839d9c550, e=0x7fffa08d0440) at kernel/qapplication.cpp:3486
#20 0x00007f7f8beaae27 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55c839d9c550, event=event@entry=0x7fffa08d0440) at kernel/qcoreapplication.cpp:1048
#21 0x00007f7f8cb6b138 in QCoreApplication::sendEvent (event=0x7fffa08d0440, receiver=0x55c839d9c550) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#22 QWidgetBackingStore::sendUpdateRequest (this=this@entry=0x55c83a109430, widget=0x55c839d9c550, updateTime=updateTime@entry=QWidgetBackingStore::UpdateNow) at kernel/qwidgetbackingstore.cpp:496
#23 0x00007f7f8cb6bdf7 in QWidgetBackingStore::sendUpdateRequest (updateTime=QWidgetBackingStore::UpdateNow, widget=<optimized out>, this=0x55c83a109430) at kernel/qwidgetbackingstore.cpp:466
#24 QWidgetBackingStore::markDirty (this=0x55c83a109430, rect=..., widget=widget@entry=0x55c83a1618e0, updateTime=updateTime@entry=QWidgetBackingStore::UpdateNow, bufferState=bufferState@entry=QWidgetBackingStore::BufferValid) at kernel/qwidgetbackingstore.cpp:670
#25 0x00007f7f8cb83a68 in QWidgetPrivate::repaint<QRect> (r=..., this=<optimized out>) at kernel/qwidget.cpp:11043
#26 QWidget::repaint (this=this@entry=0x55c83a1618e0, rect=...) at kernel/qwidget.cpp:11018
#27 0x00007f7f8cb83acc in QWidget::repaint (this=this@entry=0x55c83a1618e0) at kernel/qwidget.cpp:10987
#28 0x00007f7f8ccdfa18 in QProgressBar::setValue (this=0x55c83a1618e0, value=<optimized out>) at widgets/qprogressbar.cpp:327
#29 0x00007f7f8bed4447 in QtPrivate::QSlotObjectBase::call (a=0x7fffa08d0780, r=0x55c83a1603d0, this=0x55c83a97edd0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#30 QMetaObject::activate (sender=sender@entry=0x7f7f08004ba0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffa08d0780) at kernel/qobject.cpp:3754
#31 0x00007f7f8bed4997 in QMetaObject::activate (sender=sender@entry=0x7f7f08004ba0, m=m@entry=0x7f7f8ed01740 <KDevelop::ProgressItem::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffa08d0780) at kernel/qobject.cpp:3633
#32 0x00007f7f8ea9db70 in KDevelop::ProgressItem::progressItemProgress (this=this@entry=0x7f7f08004ba0, _t1=<optimized out>, _t1@entry=0x7f7f08004ba0, _t2=<optimized out>, _t2@entry=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4_build/kdevplatform/shell/KDevPlatformShell_autogen/BY6TO23VXM/moc_progressmanager.cpp:282
#33 0x00007f7f8ea7c0cd in KDevelop::ProgressItem::setProgress (this=this@entry=0x7f7f08004ba0, v=v@entry=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/shell/progresswidget/progressmanager.cpp:115
#34 0x00007f7f8ea16ae5 in KDevelop::StatusBar::showProgress (this=0x55c83a15a430, status=0x55c83a05a6e0, minimum=<optimized out>, maximum=3381000, value=0) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/kdevplatform/shell/statusbar.cpp:259
#35 0x00007f7f8bed506a in QObject::event (this=this@entry=0x55c83a15a430, e=e@entry=0x55c83aaea5b0) at kernel/qobject.cpp:1251
#36 0x00007f7f8cb9a253 in QWidget::event (this=this@entry=0x55c83a15a430, event=event@entry=0x55c83aaea5b0) at kernel/qwidget.cpp:9347
#37 0x00007f7f8ccfdd87 in QStatusBar::event (this=0x55c83a15a430, e=0x55c83aaea5b0) at widgets/qstatusbar.cpp:753
#38 0x00007f7f8cb5ae0c in QApplicationPrivate::notify_helper (this=this@entry=0x55c8399956f0, receiver=receiver@entry=0x55c83a15a430, e=e@entry=0x55c83aaea5b0) at kernel/qapplication.cpp:3727
#39 0x00007f7f8cb623cf in QApplication::notify (this=0x7fffa08d1020, receiver=0x55c83a15a430, e=0x55c83aaea5b0) at kernel/qapplication.cpp:3486
#40 0x00007f7f8beaae27 in QCoreApplication::notifyInternal2 (receiver=0x55c83a15a430, event=event@entry=0x55c83aaea5b0) at kernel/qcoreapplication.cpp:1048
#41 0x00007f7f8beadc81 in QCoreApplication::sendEvent (event=0x55c83aaea5b0, receiver=<optimized out>) at kernel/qcoreapplication.h:234
#42 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55c83998ffe0) at kernel/qcoreapplication.cpp:1745
#43 0x00007f7f8beae1f8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1599
#44 0x00007f7f8befdeb3 in postEventSourceDispatch (s=0x55c8399da150) at kernel/qeventdispatcher_glib.cpp:276
#45 0x00007f7f8223e537 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#46 0x00007f7f8223e7a0 in ?? () from /usr/lib64/libglib-2.0.so.0
#47 0x00007f7f8223e84c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#48 0x00007f7f8befdc9f in QEventDispatcherGlib::processEvents (this=0x55c8399dbcc0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#49 0x00007f7f68525fc1 in QPAEventDispatcherGlib::processEvents (this=0x55c8399dbcc0, flags=...) at qeventdispatcher_glib.cpp:69
#50 0x00007f7f8bea9c1a in QEventLoop::exec (this=this@entry=0x7fffa08d0e50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#51 0x00007f7f8beb2600 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
#52 0x000055c8378624e6 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-5.2.4/work/kdevelop-5.2.4/app/main.cpp:793

Reported using DrKonqi
Comment 1 Francis Herne 2019-01-09 23:22:43 UTC
Confirmed; still reproducible with 5.3-git.
Comment 2 Francis Herne 2019-01-09 23:35:10 UTC
Even tinier example:

`foo: Any = lambda x: 10`

Cause is that contextAtOrCurrent() fails on the RHS of annotated assignments.

The same crash occurs with a comprehension in place of the lambda.
Comment 3 Francis Herne 2019-01-10 22:52:52 UTC
Git commit cabf41fb18ade07043007c844a21966830ac443a by Francis Herne.
Committed on 10/01/2019 at 14:51.
Pushed by flherne into branch '5.3'.

Fix crash when finding context inside annotated assigments.

The child nodes weren't visited by ContextBuilder or DeclarationBuilder,
resulting in a crash if they contained an expression that tried to use
currentContext().

FIXED-IN: 5.3.2

https://commits.kde.org/kdev-python/cabf41fb18ade07043007c844a21966830ac443a
Comment 4 Matěj Laitl 2019-01-11 09:38:54 UTC
Wow, thank you for super-fast fix, Francis! Kudos and keep up the good work.
Comment 5 Francis Herne 2019-01-14 13:59:57 UTC
*** Bug 403098 has been marked as a duplicate of this bug. ***