Bug 414531 - kdevelop crashes while editing a python script
Summary: kdevelop crashes while editing a python script
Status: RESOLVED WORKSFORME
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (show other bugs)
Version: git master
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-11-26 11:31 UTC by Jan-Matthias Braun
Modified: 2023-01-23 14:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (126.13 KB, patch)
2019-11-26 11:31 UTC, Jan-Matthias Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2019-11-26 11:31:02 UTC
Application: kdevelop (5.4.40)

Qt Version: 5.14.0
Frameworks Version: 5.64.0
Operating System: Linux 5.4.0 x86_64
Distribution: "Gentoo Base System release 2.6"

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

In a document with a syntactically wrong line, I was inserting one line above the syntactically wrong line.
Then kdevelop crashed.

The crash does not seem to be reproducible.

-- Backtrace (Reduced):
#6  0x00007faef1c2541e in __cxxabiv1::__dynamic_cast(void const*, __cxxabiv1::__class_type_info const*, __cxxabiv1::__class_type_info const*, ptrdiff_t) (src_ptr=0x7fad74823f90, src_type=0x7faef0b780e8 <typeinfo for KDevelop::Declaration>, dst_type=0x7faef0b781d8 <typeinfo for KDevelop::ClassMemberDeclaration>, src2dst=0) at /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0/libstdc++-v3/libsupc++/dyncast.cc:68
#7  0x00007fae119e9a15 in QList<KDevelop::Declaration*> Python::DeclarationBuilder::reopenFittingDeclaration<KDevelop::ClassMemberDeclaration>(QList<KDevelop::Declaration*>, Python::DeclarationBuilder::FitDeclarationType, KDevelop::RangeInRevision, KDevelop::Declaration**) () at /usr/lib64/libkdevpythonduchain.so
#8  0x00007fae119ea265 in KDevelop::ClassMemberDeclaration* Python::DeclarationBuilder::visitVariableDeclaration<KDevelop::ClassMemberDeclaration>(Python::Identifier*, KDevelop::Declaration*, KDevelop::TypePtr<KDevelop::AbstractType>, Python::DeclarationBuilder::VisitVariableFlags) () at /usr/lib64/libkdevpythonduchain.so
#9  0x00007fae119de5ef in Python::DeclarationBuilder::assignToAttribute(Python::AttributeAst*, Python::DeclarationBuilder::SourceType const&) () at /usr/lib64/libkdevpythonduchain.so
#10 0x00007fae119df546 in Python::DeclarationBuilder::visitAssignment(Python::AssignmentAst*) () at /usr/lib64/libkdevpythonduchain.so


Possible duplicates by query: bug 410690, bug 374823, bug 374438, bug 372686, bug 367898.

Reported using DrKonqi
Comment 1 Jan-Matthias Braun 2019-11-26 11:31:03 UTC
Created attachment 124126 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Francis Herne 2020-08-19 00:22:02 UTC
Unfortunately I don't think this can be traced without some reproducible example.

Clearly the relevant `Declaration*` is bogus, but it was just retrieved from the DUChain at this point -- the bug is in whichever code inserted it, and that can't be identified from the backtrace.

Please feel free to reopen if this recurs.
Comment 3 Francis Herne 2020-08-22 01:35:13 UTC
...of course, I say that, and then get a suspiciously-similar ASAN failure:

PASS   : Python::PyCompletionTest::testCompletionAfterQuotes(nothing)
=================================================================
==3197==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000e888d0 at pc 0x7f8fc7b67e0b bp 0x7f8f7d3f4a00 sp 0x7f8f7d3f49f8
READ of size 8 at 0x604000e888d0 thread T51 (Queue(0x6040001)
    #0 0x7f8fc7b67e0a in KDevelop::Declaration::ownIndex() const /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/kdevelop/kdevplatform/language/duchain/declaration.cpp:116
    #1 0x7f8fcc2d9cc2 in Python::DeclarationBuilder::assignToAttribute(Python::AttributeAst*, Python::DeclarationBuilder::SourceType const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1218
    #2 0x7f8fcc2dc5ed in Python::DeclarationBuilder::assignToUnknown(Python::ExpressionAst*, Python::DeclarationBuilder::SourceType const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1324
    #3 0x7f8fcc2dcbe2 in Python::DeclarationBuilder::visitAssignment(Python::AssignmentAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1341
    #4 0x7f8fcbe7e365 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:47
    #5 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #6 0x7f8fcbe7746c in void Python::AstVisitor::visitNodeList<Python::Ast>(QList<Python::Ast*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc246c)
    #7 0x7f8fcbe72568 in Python::AstDefaultVisitor::visitExceptionHandler(Python::ExceptionHandlerAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:256
    #8 0x7f8fcc2bf095 in Python::DeclarationBuilder::visitExceptionHandler(Python::ExceptionHandlerAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:356
    #9 0x7f8fcbe7fe4d in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:97
    #10 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #11 0x7f8fcbe78624 in void Python::AstVisitor::visitNodeList<Python::ExceptionHandlerAst>(QList<Python::ExceptionHandlerAst*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc3624)
    #12 0x7f8fcbe71d9b in Python::AstDefaultVisitor::visitTry(Python::TryAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:202
    #13 0x7f8fcbe7e833 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:56
    #14 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #15 0x7f8fcbe7746c in void Python::AstVisitor::visitNodeList<Python::Ast>(QList<Python::Ast*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc246c)
    #16 0x7f8fcbe70a44 in Python::AstDefaultVisitor::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:91
    #17 0x7f8fcc2a5f59 in Python::ContextBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:320
    #18 0x7f8fcc2becee in Python::DeclarationBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:345
    #19 0x7f8fcbe7e035 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:41
    #20 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #21 0x7f8fcc2a30e6 in Python::ContextBuilder::startVisiting(Python::Ast*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:145
    #22 0x7f8fcc2b2329 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:127
    #23 0x7f8fcc31bf76 in KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
    #24 0x7f8fcc2ae70f in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:106
    #25 0x7f8fcc2a2485 in Python::ContextBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:77
    #26 0x7f8fcc2be13b in Python::DeclarationBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:105
    #27 0x7f8f8552f9b3 in Python::ParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) /home/jenkins/kdev-python/pythonparsejob.cpp:168
    #28 0x7f8fc6ada2e7 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/iddecorator.cpp:51
    #29 0x7f8fc6adc9c0 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executor.cpp:34
    #30 0x7f8fc6ad97b6 in ThreadWeaver::Private::DefaultExecutor::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/job_p.cpp:51
    #31 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #32 0x7f8fc6ad96a6 in ThreadWeaver::Private::DebugExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/job_p.cpp:39
    #33 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #34 0x7f8fc6adce74 in ThreadWeaver::ExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:39
    #35 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #36 0x7f8fc6adce74 in ThreadWeaver::ExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:39
    #37 0x7f8fc6ad5574 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/job.cpp:65
    #38 0x7f8fc6ae36db in ThreadWeaver::Collection::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/collection.cpp:133
    #39 0x7f8fc6adb6b8 in ThreadWeaver::IdDecorator::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/iddecorator.cpp:159
    #40 0x7f8fc6ad37e4 in ThreadWeaver::Thread::run() /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/thread.cpp:96
    #41 0x7f8fb8f496e0  (/usr/lib64/libQt5Core.so.5+0xd66e0)
    #42 0x7f8fb8944ea9 in start_thread (/lib64/libpthread.so.0+0x8ea9)
    #43 0x7f8fb8a6eafe in __clone (/lib64/libc.so.6+0xffafe)

0x604000e888d0 is located 0 bytes inside of 48-byte region [0x604000e888d0,0x604000e88900)
freed by thread T45 (Queue(0x6040001) here:
    #0 0x7f8fccc64467 in operator delete(void*) (/usr/lib64/libasan.so.6+0xb0467)
    #1 0x7f8fc7ba450f in KDevelop::ClassMemberDeclaration::~ClassMemberDeclaration() /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/kdevelop/kdevplatform/language/duchain/classmemberdeclaration.cpp:74
    #2 0x7f8fc7a68221 in KDevelop::DUContext::cleanIfNotEncountered(QSet<KDevelop::DUChainBase*> const&) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/kdevelop/kdevplatform/language/duchain/ducontext.cpp:1480
    #3 0x7f8fcc2aff06 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::closeContext() /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:474
    #4 0x7f8fcc2dfe02 in Python::DeclarationBuilder::visitClassDefinition(Python::ClassDefinitionAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1451
    #5 0x7f8fcbe7e145 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:43
    #6 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #7 0x7f8fcbe7746c in void Python::AstVisitor::visitNodeList<Python::Ast>(QList<Python::Ast*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc246c)
    #8 0x7f8fcbe70a44 in Python::AstDefaultVisitor::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:91
    #9 0x7f8fcc2a5f59 in Python::ContextBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:320
    #10 0x7f8fcc2becee in Python::DeclarationBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:345
    #11 0x7f8fcbe7e035 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:41
    #12 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #13 0x7f8fcc2a30e6 in Python::ContextBuilder::startVisiting(Python::Ast*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:145
    #14 0x7f8fcc2b2329 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:127
    #15 0x7f8fcc31bf76 in KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
    #16 0x7f8fcc2ae70f in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:106
    #17 0x7f8fcc2a2485 in Python::ContextBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:77
    #18 0x7f8fcc2be13b in Python::DeclarationBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:105
    #19 0x7f8fcc2bdbe4 in Python::DeclarationBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:98
    #20 0x7f8f8552f9b3 in Python::ParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) /home/jenkins/kdev-python/pythonparsejob.cpp:168
    #21 0x7f8fc6ada2e7 in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/iddecorator.cpp:51
    #22 0x7f8fc6adc9c0 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executor.cpp:34
    #23 0x7f8fc6ad97b6 in ThreadWeaver::Private::DefaultExecutor::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/job_p.cpp:51
    #24 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #25 0x7f8fc6ad96a6 in ThreadWeaver::Private::DebugExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/job_p.cpp:39
    #26 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #27 0x7f8fc6adce74 in ThreadWeaver::ExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:39
    #28 0x7f8fc6adcf76 in ThreadWeaver::ExecuteWrapper::executeWrapped(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:46
    #29 0x7f8fc6adce74 in ThreadWeaver::ExecuteWrapper::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) /home/jenkins/workspace/Administration/Dependency Build KDevelop kf5-qt5 SUSEQt5.14/threadweaver/src/executewrapper.cpp:39

previously allocated by thread T51 (Queue(0x6040001) here:
    #0 0x7f8fccc63a67 in operator new(unsigned long) (/usr/lib64/libasan.so.6+0xafa67)
    #1 0x7f8fcc31330a in KDevelop::ClassMemberDeclaration* KDevelop::AbstractDeclarationBuilder<Python::Ast, Python::Identifier, KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder> >::openDeclaration<KDevelop::ClassMemberDeclaration>(KDevelop::Identifier const&, KDevelop::RangeInRevision const&, KDevelop::AbstractDeclarationBuilder<Python::Ast, Python::Identifier, KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder> >::DeclarationFlags) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractdeclarationbuilder.h:149
    #2 0x7f8fcc305b91 in KDevelop::ClassMemberDeclaration* Python::DeclarationBuilder::openDeclaration<KDevelop::ClassMemberDeclaration>(Python::Identifier*, KDevelop::AbstractDeclarationBuilder<Python::Ast, Python::Identifier, KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder> >::DeclarationFlags) /home/jenkins/kdev-python/duchain/declarationbuilder.h:264
    #3 0x7f8fcc2fe68e in KDevelop::ClassMemberDeclaration* Python::DeclarationBuilder::visitVariableDeclaration<KDevelop::ClassMemberDeclaration>(Python::Identifier*, KDevelop::Declaration*, KDevelop::TypePtr<KDevelop::AbstractType>, Python::DeclarationBuilder::VisitVariableFlags) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:279
    #4 0x7f8fcc2d98aa in Python::DeclarationBuilder::assignToAttribute(Python::AttributeAst*, Python::DeclarationBuilder::SourceType const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1211
    #5 0x7f8fcc2dc5ed in Python::DeclarationBuilder::assignToUnknown(Python::ExpressionAst*, Python::DeclarationBuilder::SourceType const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1324
    #6 0x7f8fcc2dcbe2 in Python::DeclarationBuilder::visitAssignment(Python::AssignmentAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1341
    #7 0x7f8fcbe7e365 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:47
    #8 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #9 0x7f8fcbe7746c in void Python::AstVisitor::visitNodeList<Python::Ast>(QList<Python::Ast*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc246c)
    #10 0x7f8fcbe72568 in Python::AstDefaultVisitor::visitExceptionHandler(Python::ExceptionHandlerAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:256
    #11 0x7f8fcc2bf095 in Python::DeclarationBuilder::visitExceptionHandler(Python::ExceptionHandlerAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:356
    #12 0x7f8fcbe7fe4d in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:97
    #13 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #14 0x7f8fcbe78624 in void Python::AstVisitor::visitNodeList<Python::ExceptionHandlerAst>(QList<Python::ExceptionHandlerAst*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc3624)
    #15 0x7f8fcbe71d9b in Python::AstDefaultVisitor::visitTry(Python::TryAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:202
    #16 0x7f8fcbe7e833 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:56
    #17 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #18 0x7f8fcbe7746c in void Python::AstVisitor::visitNodeList<Python::Ast>(QList<Python::Ast*> const&) (/home/jenkins/install-prefix/lib64/libkdevpythonparser.so+0xc246c)
    #19 0x7f8fcbe70a44 in Python::AstDefaultVisitor::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/parser/astdefaultvisitor.cpp:91
    #20 0x7f8fcc2a5f59 in Python::ContextBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:320
    #21 0x7f8fcc2becee in Python::DeclarationBuilder::visitCode(Python::CodeAst*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:345
    #22 0x7f8fcbe7e035 in Python::AstVisitor::visitNode(Python::Ast*) /home/jenkins/kdev-python/parser/astvisitor.cpp:41
    #23 0x7f8fcc2ec6bd in Python::DeclarationBuilder::visitNode(Python::Ast*) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:1868
    #24 0x7f8fcc2a30e6 in Python::ContextBuilder::startVisiting(Python::Ast*) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:145
    #25 0x7f8fcc2b2329 in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:127
    #26 0x7f8fcc31bf76 in KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild(Python::Ast*, KDevelop::DUContext*) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:84
    #27 0x7f8fcc2ae70f in KDevelop::AbstractContextBuilder<Python::Ast, Python::Identifier>::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/install-prefix/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:106
    #28 0x7f8fcc2a2485 in Python::ContextBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/contextbuilder.cpp:77
    #29 0x7f8fcc2be13b in Python::DeclarationBuilder::build(KDevelop::IndexedString const&, Python::Ast*, KDevelop::ReferencedTopDUContext const&) /home/jenkins/kdev-python/duchain/declarationbuilder.cpp:105
Comment 4 Justin Zobel 2022-10-12 03:50:11 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-10-27 05:03:41 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2022-11-11 05:20:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 7 Sven Brauch 2023-01-23 10:12:06 UTC
@Francis: Is the ASAN trace reproducible? In that case, we should leave this open and investigate at some point.
Comment 8 Francis Herne 2023-01-23 14:07:41 UTC
I haven't seen this again.

To the original reporter (or anyone else): please reopen or file a new bug if you find a similar case that's reproducible.